Jump to content

Prestashop 1.5.4 Login & SEO Issues


Recommended Posts

We have installed PrestaShop at 1and1 hosting. This weekend we planned to release the site. But we have noticed just now, that many parts does not work. I had to switch off SEO optimezed Urls, because of internal loop errors. I was searching and trying everything. Nothing helped.

 

But, even in the ugly index.php? mode, there are many problems. I've tried an express checkout with PayPal from my iPhone, it went fine. From PC, Chrome browser it get's to an error occured (no details!!!). On multiple machines.

 

When a custumer tries to login, he gets back to the login page, without any error message. If the password is wrong, we have error message saying that. But a correct logon does not work.

 

I have no idea what is wrong. Tried everything. It looks like some post are not correctly sent, or something very deep.

 

Please, help us! We need an urgent help, due to our deadline...

 

Thanks in advance!

Link to comment
Share on other sites

i've got questions:

  1. what prestashop you use?
  2. you installed it from official installation package? (downloaded from prestashop.com_
  3. It is an upgraded shop? (have you upgraded it?)
  4. when you turn friendly urls, does the rest of page work? (categories listing, user register etc.)

Link to comment
Share on other sites

i've got questions:

  1. what prestashop you use?
  2. you installed it from official installation package? (downloaded from prestashop.com_
  3. It is an upgraded shop? (have you upgraded it?)
  4. when you turn friendly urls, does the rest of page work? (categories listing, user register etc.)

 

1. The official one 1.5.4.0.

2. yes

3. no, a brand new

4. yes, lot of them yes

 

even the .htaccess looks right. I have an ExpressionEngine installation on the hosting also, with a different domain, and url reqrite works perfectly there.

Link to comment
Share on other sites

store.darkage.ca

 

AddHandler x-mapp-php5 .php3 .php4 .php .phtml

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^store.darkage.ca$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^store.darkage.ca$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
RewriteCond %{HTTP_HOST} ^$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"
</IfModule>

FileETag INode MTime Size
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript
</IfModule>
</IfModule>

#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

Link to comment
Share on other sites

I think the url for checkout looks weird

order?ab432cf613bf5f10e4cd11c28777c559=jM7ROzQoMSEj0YKRal2gD4hzY5A9dX2IbZO%2BV%2BNhSiRXgE87oQMmL%2B%2FBap9FreJ2xi0oMc8NQrZ%2FEY3pbgWt%2BoATihUAPtEfHg37oehzUY8zBMiHpbehhqkSwIlCG0uAwQItXsB9iEE3aONDCvjmIHon9js3e1aOyvlzHp3ALYw3Nu3F5118uzVkOtFT0N2HGcTSxW6wbBEL0coOlJ2I%2FNMElungvXAhb0yRZE08WdV6Tf7vRwTL7MY1gKxvOiwZ%2FlbNoK%2FBAhzj6XbnA%2FDL6Uy9RNHwfAFrkXvMmATXnYAuWz24h34%2FQHL0aOhrA%2BFHOpfbSuKZJdF6T5K4D%2FdaMsBcjszGEsC4DYtAq1deUlnS4weCZqV0oAXshnPf3AlAdsAHwveybpMuyJw5XGNRqdkUiO3mcZD8M5r3xXsbVJcFU24UylzU8VKt6a0A1AnZApI%2F39BM6iRVNJN38oUsdVIMXfz6bQ4HR%2F6ZIyFLpRKG2SuGfkR095fxjLlHkxUXExUlwQAmF57F96cqo6iNNw%3D%3D000391&addshoppers_com=NTE4OWU5YTVhMzg3NjQ2YjIzZTMxNzk0|1368957341|0a9266d5bd14036972bb1e71302352d6cebc364c

Looks to me like the cookies are send via get variable which I havn't seen before. Maybe that it a start for investigation?

Link to comment
Share on other sites

Well, now:

 

Warning: File /homepages/43/my-account.php is deprecated

in /homepages/43/classes/Tools.php on line 1843

 

Warning: Cannot modify header information - headers already sent by (output started at /homepages/43/classes/Tools.php:1843) in/homepages/43/classes/Tools.php on line 105

 

Warning: Cannot modify header information - headers already sent by (output started at /homepages/43/classes/Tools.php:1843) in/homepages/43/classes/Tools.php on line 108

Link to comment
Share on other sites

Lines for 1843:

protected static function throwDeprecated($error, $message, $class)

{

if (_PS_DISPLAY_COMPATIBILITY_WARNING_)

{

trigger_error($error, E_USER_WARNING);

Logger::addLog($message, 3, $class);

}

}

 

My Server information:

 

Server information

 

Server information: Linux infong 2.4 #1 SMP Fri Mar 22 18:19:29 CET 2013 i686 GNU/Linux Linux infong 2.4 #1 SMP Fri Mar 22 18:19:29 CET 2013 i686 GNU/Linux Linux infong 2.4 #1 SMP Fri Mar 22 18:19:29 CET 2013 i686 GNU/Linux

Server software version: Apache

PHP version: 5.2.17

Memory limit: 90M

Max execution time: 50000

Database information

 

MySQL version: 5.1.67-log

MySQL engine: InnoDB

Tables prefix: ps_

Store information

 

PrestaShop version: 1.5.4.0

Shop URL: http://store.darkage.ca/

Current theme in use: default

Mail configuration

 

Mail method: You are using the PHP mail function. AdminInformation.gif Check your configuration

Required parameters: OK

Optional parameters: Please fix the following error(s)

  • fopen
  • magicquotes

 

php.ini

 

; Allow external URLs to be opened

allow_url_fopen = On

; Disable PHP register globals

register_globals = Off

Link to comment
Share on other sites

Something must be here with the rediredt:

 

 

/**
* Redirect user to another page
*
* @param string $url Desired URL
* @param string $baseUri Base URI (optional)
* @param Link $link
* @param string|array $headers A list of headers to send before redirection
*/
public static function redirect($url, $base_uri = __PS_BASE_URI__, Link $link = null, $headers = null)
{
if (!$link)
$link = Context::getContext()->link;

if (strpos($url, 'http://') === false && strpos($url, 'https://') === false && $link)
{
if (strpos($url, $base_uri) === 0)
$url = substr($url, strlen($base_uri));
if (strpos($url, 'index.php?controller=') !== false && strpos($url, 'index.php/') == 0)
{
$url = substr($url, strlen('index.php?controller='));
if (Configuration::get('PS_REWRITING_SETTINGS'))
$url = Tools::strReplaceFirst('&', '?', $url);
}

$explode = explode('?', $url);
// don't use ssl if url is home page
// used when logout for example
$use_ssl = !empty($url);
$url = $link->getPageLink($explode[0], $use_ssl);
if (isset($explode[1]))
$url .= '?'.$explode[1];
}

// Send additional headers
if ($headers)
{
if (!is_array($headers))
$headers = array($headers);

foreach ($headers as $header)
header($header);
}

header('Location: '.$url);
exit;
}

 

with those cookie values in the url, what can cause this? maybe the .htaccess rewrite rule works badly?

 

I have no SSL the ssl domain is blank

Link to comment
Share on other sites

Puuuh, I have no specific idea.

First I would copy everything to a local lamp or xamp server to see if it is a server configuration problem. If the problems are reproducable on your local machine I would test it with a "virgin" unmodified download of the 1.5.4. connected to a copy of the production db. Or you install another prestashop on your server just with sample products on another subdomain and see if the same errors are there. Maybe it is a problem with the subdomain configuration? I wonder why that there are deprecated errors, why PS says

Optional parameters: Please fix the following error(s)
   fopen
   magicquotes

This definetly smells a little like a config error but imo you can only find that out with a/b tests on different installations, servers etc.pp.

Good luck, trip

Link to comment
Share on other sites

Yes, that problem listing are really annoying. If I create a standalon php file, and print our these environmental settings, all is fine. Presta itself reads those data incorrectly, I think. I think there must be some bugs there, with specific hosting scenarios. I believe I can figure this out, but such internal strange behavior should be investigated by developers, who are familiar with PrestaShop itself.

Link to comment
Share on other sites

You can not assume the PS team gives support here in the forum. They have a bug tracker but when your problem is server related I don't think they can help you with that. So far it seems you are the only one with such issues so I would strongly recommend to test your installation local to see if it is a server prob or a prestashop bug and/or misconfiguration first. The configuration possibilities on server and software side are endless. I even remember one guy who had serious problems and after that it turned out that a wordpress cache plugin that was installed on the same webspace interferred with the ps installation.

Good luck, trip

Link to comment
Share on other sites

If you search the web, there are tons of same errors, just everyone is a bit different. PrestaShop is tested - I think - on very default or similar environments. There are no detailed error messeges. It's free, yes, so I can not raise my voice. But that's why I do not like free solution, if you have problem, you're lost.

Link to comment
Share on other sites

I understand the frustration and must admit that there is, although started 5 years ago, a pinned thread http://www.prestashop.com/forums/topic/640-11-hosting-service-specific-problems/ about problems with 1&1 hosting. I asked you to test your installation on a local server to iron find out if the problem is hosting related or not. I am still waiting for an answer. If it is hosting related you better look for another partner. There are different providers specialized in PS hosting and I think migrating your shop is a matter of 1/2 hour for someone who knows what he is doing.

Also it would be nice to know if that problem appeared all of a sudden or did you never test the checkout process before?

Link to comment
Share on other sites

I do not have local php environment. I am creating a separet subdomain at 1and1, and also a new install at go daddy, at the moment. It took some time to get prestashop copied from europe to these sites using filecopy, because 1and1's unzip makes all files lowercase, and PS crash with it.

 

I never checked these functions before, this was a clean install. But not the checkout is from, but every page from the front office which is user releted. Products, categories, cms, everything else is ok, just those private stuff. Take a look. http://store.darkage.ca

 

You can register, but you can not login! These stuff does not work:

 

MY ACCOUNT

My orders

My credit slips

My addresses

My personal info

My favorite products.

Link to comment
Share on other sites

On a clean install at 1and1 can not login. It brings me back to login dialog everytime.

 

That is a red flag that there is a problem with ther server configuration. If you are looking to change hosting I suggest A2 hosting. Send Andy a PM, he will gladly help you out. http://www.prestashop.com/forums/user/419040-a2hosting-andy/

 

Also, check out this guide to move PrestaShop hosting to another provider.

Link to comment
Share on other sites

You moved your website to GoDaddy? from 1 and 1? Those are probably 2 of the hosting providers for PrestaShop that have had the most installation problems..

 

PrestaShop installs successfully on thousands of hosting accounts, big and small, domestic and international. You can read up on Google about the problems GoDaddy and PrestaShop has had in the past. Check out this post, it may help you with GoDaddy. http://creatingawebstore.com/step-by-step-guide-on-how-to-install-prestashop.html

Link to comment
Share on other sites

I would like to see what GoDaddy says if you contact their hosting. It may have to do with MagicQuotes or allow_url_fopen = On as stated in the post. Overall, a standard local host has all the bare basics that you need, and it is really basic. I don't know why some hosting providers make it more complicated than it needs to be.

Link to comment
Share on other sites

I had 1.5.4.0 installed without problems.

Now, I've installed 1.5.4.1 also without problems, without any modifications, and it is working, while the previous install of 1.5.4.0 (10 minutes ago not).

 

i have dowloaded the previous one on 22nd of April.

Link to comment
Share on other sites

Make sure to have a complete and working backup of your PrestaShop files (from FTP) and SQL Database (most likely from phpmyadmin)

 

Then, copy your current website to a localhost and test out the upgrade process, the Automatic update should be fine. This way, you can minimize the downtime of your live site if there are any errors. If there are errors , you can investigate how to fix them, or if needed, try a manual upgrade locally as well.

 

There is a guide as well here, http://doc.prestashop.com/display/PS15/Updating+PrestaShop

Link to comment
Share on other sites

Can you advice me with a little technical issue. We have configured virtual products. But when a user buys an item, he does not get email, from where he can download the products, I know, there are templates for this. But I do not know why they was not sent. From the order history it is possible to download the product, but this is not really userfriendly.

Link to comment
Share on other sites

×
×
  • Create New...