Jump to content

Prestashop 1.6 HTTP 500 internal server error.


Recommended Posts

Greetings,

I have problem on accessing my back office :

 

HTTP 500 Internal Server Error
 The website cannot display this page

Most lilely causes
 The website is under maintenance
 The website has a Programming Error

 

I have turn on debugging on and it told me : MySQL server has gone away
 

But I can access my front office, the problem is I can't access the login page of my backoffice.

If MySQL server has gone away, it should be I may not access my front office. Are this come from time out on communicating with MySQL server ?

Can you help on what should I do about this ?

 

Thanks in advanced.

 

Regards,

Ronald

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Maybe it will be useful information for some of you:

 

I had problems with HTTP Error 500... and spend many hours reading forum topics and trying many solutions... turning on error reporting / disabling some modules / reuploding files / cheking server configuration and many more...

 

Finaly I found solution in some blog, away from PS community :) Its:

1. Turn Off and turn On the SEO friendly URLs. This will generate the a .htaccess file on your root.
2. Download the .htaccess file. Comment the line “SetEnv HTTP_MOD_REWRITE On” by putting # before the line and reuplod.
3. If the version of PHP running on your server is 5.4 (5.5 / 5.6), change it to 5.2.

 

This should solve your problem ;)

Link to comment
Share on other sites

  • 5 months later...

Hi,

 

I am havin same issue, and going nuts. First, I thought was a blue host ( hosting and domain ) service going on. But , sincerely dont know what else to do. It is showing same mistake 

 

HTTP 500 Internal Server Error
 The website cannot display this page

Most lilely causes
 The website is under maintenance
 The website has a Programming Error

 

And also cant access my front or back office. I have spent hours trying to do something and I used the cloud based option. 

 

Can anyone help me with this?

Link to comment
Share on other sites

  • 6 months later...

Hi tiku,

 

Thanks for the 

 

I am totally new to prestashop cloud and i am not technical guy. I dont have any knowledge Technology .

 

before 3 days back it is worked very fine, suddenly from since yesterday morning it has stopped working.

 

And unable to login to Back office to Manage my store.

 

I am able to see my store details after login to my account page but unable to manage my store

 

Back office login link: http://www.evafashions.in/backoffice/index.php?controller=AdminLogin?email=evafashionsin%40gmail.com (Not working)

 

 

website URL: http://www.evafashions.in/ (it is also working)

 

At least please suggest me some fixes then will try from end,.. pleaseeeeeeeee..

Link to comment
Share on other sites

  • 1 month later...
Hi,

I receive this error both in the back office that frontoffice by side but not always, are the pages that sometimes crashano ..

The problem is that I contacted my hosting but they said so:

 

With regard to its communication to inform you that in order to examine the case would have to perform a verification code of your site to search for the error that causes the behavior observed. Code debugging is entirely borne by the customer.

I suggest you visit the official website of Prestashop or plugin / theme / module that involves the failure to identify what causes it and the procedure to be able to solve.

 

Someone who can help me?

Link to comment
Share on other sites

Hi all,

The cause of Internal Server Error 500 can be too low values for activity and request timeout in FastCGI setting on IIS.

 

When using IIS you can activate Failed Request Tracing Rules for your website and define a rule for only this error to analyze the exact reason. Start IIS Manager, open server-sites-your site and click Failed Request Tracing in the actions pane. Activate it and check if the path for logfiles is ok. Now click Failed Request Tracing Rules and add a rule. Select All Content (*), next select Status Code and enter 500 (400-500 is also possible), do not select Time taken and Event severity, next select only WWW Server and Area RequestNotifications (other areas can be added later if necessary). Save the rule and try to get the 500 error.

 

If the 500 error occurs it is logged and you can view the log with your browser. You find it in the path defined in Failed Request Tracing for your site. In the Request Summary you will see the module causing the error.

 

In case FastCgiModule is the reason you can change the setting in IIS. Select the server (not your site) and there you have FastCGI setting. You can see that you can select  that this module shall generate a 500 error. Select the PHP version of your site and increase activity and request timeout. You can calculate it from the logfile or test with some values.

 

Good luck

Edited by CodeRider (see edit history)
Link to comment
Share on other sites

my hosting is REGISTER

 

these are my info 

 

Server information Linux #1 SMP Thu Jul 31 13:37:45 CEST 2014 x86_64

Server software version Apache

PHP version 5.4.4-14+deb7u2

Memory limit 140M

Max execution time 2880

Link to comment
Share on other sites

THESE ARE OTHER INFORMATIONS    DATABASE INFORMATION

MySQL version 5.5.34-enterprise-commercial-advanced-log

MySQL server hostingmysql320.register.it

MySQL name

MySQL user

Tables prefix ps_

MySQL engine InnoDB

 STORE INFORMATION

PrestaShop version 1.6.0.9

Shop URL http://www.martemodena.com/shop/

Current theme in use default-bootstrap

 MAIL CONFIGURATION

Mail method You are using the PHP mail() function.

 YOUR INFORMATION

Your web browser Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Edited by locen (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

Same issue.

When I am trying to install a fresh copy of prestashop 1.6.4 i got that error:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@... and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

 

Could anyone help with this problem?

 

Thank you

Link to comment
Share on other sites

  • 4 months later...

I, too, have tried everything suggested.  I have no known reason for the Error 500; pressing F5 didn't do a thing.  My error message comes up when I try to get to my admin login page.  There are no signs of .htaccess files in my cpanel at all.  More disturbing is that the Zen-Cart icon appears on that page, even though I'm typing in my PS admin url.  I removed ZC before installing PS. Sooo... next?

 

Doing this on Win7, by the way.

Link to comment
Share on other sites

Guest locen

but this problem, for me, is casual, not always. 

i have this problem for example if i click "show all" button if there are a lot of products..if there are few products no problems!

Link to comment
Share on other sites

My logs weren't showing anything remarkable, and, in fact, I didn't have any logs dating from the installation of this shopping cart.  I contacted my host who was able to find the errors and correct them.  (My Cpanel wasn't coming up for me, either.)

Link to comment
Share on other sites

  • 2 weeks later...

Error 500 happens me third time. And it make me mad.

  • First two times it happened when I cleaned the cash from the back office.
  • the last time it happened when just uploading category thumbnail image.  

And nothing helps me to get back my site, just restoring backup. Many hours of work gone. Why it happens in such silly actions?

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

I have the same issue. I would like to install a new site. I copied each file to the right folder, and after I got the 500 Internal Server Error.

I am not able to install the site.. 

 

I'm running an other PS on my server, I built it last year, so I don't know what is wrong now...

 

Any idea?

 

Thanks,

Barney

Edited by BarneyHU (see edit history)
Link to comment
Share on other sites

  • 4 months later...

My WEb Address : http://mbawithfun.cu.cc

 

 

<?php
class Dispatcher extends DispatcherCore
{
        'supplier_rule' => array(
            'controller' =>    'supplier',
            'rule' =>        'supplier/{rewrite}/',
            'keywords' => array(
                'id' =>                array('regexp' => '[0-9]+'),
                'rewrite' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'supplier_rewrite'),
                'meta_keywords' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_title' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
            ),
        ),
        'manufacturer_rule' => array(
            'controller' =>    'manufacturer',
            'rule' =>        'manufacturer/{rewrite}/',
            'keywords' => array(
                'id' =>                array('regexp' => '[0-9]+'),
                'rewrite' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'manufacturer_rewrite'),
                'meta_keywords' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_title' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
            ),
        ),
        'cms_rule' => array(
            'controller' =>    'cms',
            'rule' =>        'info/{rewrite}',
            'keywords' => array(
                'id' =>                array('regexp' => '[0-9]+'),
                'rewrite' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_rewrite'),
                'meta_keywords' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_title' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
            ),
        ),
        'cms_category_rule' => array(
            'controller' =>    'cms',
            'rule' =>        'info/{rewrite}/',
            'keywords' => array(
                'id' =>                array('regexp' => '[0-9]+'),
                'rewrite' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_category_rewrite'),
                'meta_keywords' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_title' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
            ),
        ),
        'module' => array(
            'controller' =>    null,
            'rule' =>        'module/{module}{/:controller}',
            'keywords' => array(
                'module' =>            array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'module'),
                'controller' =>        array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'controller'),
            ),
            'params' => array(
                'fc' => 'module',
            ),
        ),
        'product_rule' => array(
            'controller' =>    'product',
            'rule' =>        '{category:/}{rewrite}.html',
            'keywords' => array(
                'id' =>                array('regexp' => '[0-9]+'),
                'rewrite' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'product_rewrite'),
                'ean13' =>            array('regexp' => '[0-9\pL]*'),
                'category' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'categories' =>        array('regexp' => '[/_a-zA-Z0-9-\pL]*'),
                'reference' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_keywords' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_title' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'manufacturer' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'supplier' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'price' =>            array('regexp' => '[0-9\.,]*'),
                'tags' =>            array('regexp' => '[a-zA-Z0-9-\pL]*'),
            ),
        ),
        'layered_rule' => array(
            'controller' =>    'category',
            'rule' =>        '{rewrite}/filter{selected_filters}',
            'keywords' => array(
                'id' =>                array('regexp' => '[0-9]+'),
                
                'selected_filters' =>        array('regexp' => '.*', 'param' => 'selected_filters'),
                'rewrite' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'category_rewrite'),
                'meta_keywords' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_title' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
            ),
        ),
        'category_rule' => array(
            'controller' =>    'category',
            'rule' =>        '{categories:/}{rewrite}/',
            'keywords' => array(
                'id' =>                array('regexp' => '[0-9]+'),
                'categories' =>        array('regexp' => '[/_a-zA-Z0-9-\pL]*', 'param' => 'categories_rewrite'),
                'rewrite' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'category_rewrite'),
                'meta_keywords' =>    array('regexp' => '[_a-zA-Z0-9-\pL]*'),
                'meta_title' =>        array('regexp' => '[_a-zA-Z0-9-\pL]*'),
            ),
        ),
    );
    
}

Edited by singhharsh555 (see edit history)
Link to comment
Share on other sites

  • 1 month later...

In one case Smarty setting caused the error.

Check if In Advanced Parameters-Performance 'Template Compilation' is set to 'Never recompile template files'

If not, set it to this value.

My problem is solved!
 
I had the option to "force compilation"
 
Activate the option of 'Never recompile template files' and the problem is solved.
 
thank you very much!
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 1 month later...

hello

it happened to me too.

I read on another topic that i have to make a small changes to classes/tool.php

so i FIRST renamed the original file into toolsORIGINAL.php

THEN i downloaded the file and i made my changes on my pc.

After that i uploaded the changed file with the changes.

 

After that, when i refreshed the page, it gave me the error 500.

 

BOTH, THE FRONTEND AND THE BACKEND.

 

So i cannot do anything. I still have access to my cpanel (godaddy)

 

After i see the situation, i deleted the changed file and i re-named the toolsORIGINAL.php into tools.php (it was literally untouched)

BUT THE INTERNAL SERVER ERROR 500 REMAINED and until now both the sides (back and front) are not accessible.

 

I will really appreciate any help.

 

Thank you.

 

V

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...

I've solved the problem, after PS v.1.6.x update the:

 

Performance Advanced - > Performance - > DEBUG MODE:

Disable non PrestaShop modules was set on YES , i turned it NO and it works

 

The wall procedure, in my case, for update is:

- Manually Backup all Files

- Manually Backup DB MySql

- Autoupgrade

- Manually Clear Cache : 

cache/smarty/compile
cache/smarty/cache
img/tmp
delete all EXCEPT index.php
- Remove .htaccess
- Turn Off and Turn ON Friendly Url
- Check if my theme is correctly set on
 
Hope it helps
 
:)
Link to comment
Share on other sites

×
×
  • Create New...