Bobcares

PrestaShop back office error 500 or blank page – How to fix

by | Apr 26, 2021

Wondering how to fix PrestaShop back office error 500 or blank page. We can help you.

Generally, the error occurs when we access the Back-office while Debug mode is active or while production mode active. The characteristic of this error is that it only occurs in one of the modes and not in both.

Here at Bobcares, we handle requests from our customers using Prestashop to fix similar issues as a part of Server Management Services.

Today, let us see how our Support techs resolve this issue for our customers.

What causes PrestaShop back office error 500 or blank page

Usually, this error is seen in PrestaShop Stores Version 1.7 and that makes it impossible for us to enter the Back-office, showing an error 500 or the page goes blank.

Following are some of the most common error messages seen:

1. “Error 500 (Internal Server Error)”

2. “Error 500 – Internal server error”

3. “Internal server error”

4.  “HTTP ERROR 500”

5. “Error 500”

6. “HTTP Error 500”

Common causes for this error are given below:

1. Permission error

2. Incorrect configuration of the .htaccess file

3. Waiting time has expired

4. Obsolete modules

How to detect this 500 error

In PrestaShop 1.7 stores, unlike version 1.6, a series of cache files are created located in two “prod” (production mode) and “dev” (Debug mode) folders, depending on the PrestaShop mode being used.

These cache files help to speed up PrestaShop in each of the chosen modes.

We can find these files in the following two directories depending on the Version of PrestaShop:

/app/cache/
/var/cache/

If a programming code error exists, it will be written to the cache files corresponding to the mode that is currently being used.

General troubleshooting

We can activate our web host’s FTP or CPanel error reports in the PrestaShop shop.

There are 2 ways to enable these reports, depending on the version we are using:

PrestaShop v1.4 to v1.5.2

1. Firstly, open config/config.inc.php

2. And find the line: @ini_set(‘display_errors’,’off’);

3. We need to replace it with: @ini_set(‘display_errors’,’on’);

PrestaShop v1.5.3 and later versions (including 1.6 and 1.7)

1. Firsly, open config/defines.inc.php

2. And find the line: define(‘_PS_MODE_DEV_’, false);

3. Replace it with: define(‘_PS_MODE_DEV_’, true);

Finally, we can browse our store’s front or back office to find out the issue.

Once the source of the problem is known, basically the solution is to clean and delete all PrestaShop cache files that contain the two folders “dev” and “prod”.

Generally, these files do not get automatically deleted from the “Empty cache” ” option. Hence we need to remove or clean it manually.

How to fix PrestaShop back office error 500

We will see the methods that our support engineers follow to fix the PrestaShop back office error 500.

1.  Fixing Permission error

In many cases, this error occurs due to wrong folder permissions.

To correct this error, we need to set the folder authorization to 755 instead of 777 (or vice versa).

2. Correcting configuration of the .htaccess file

Internal server problems like 500 errors often arise when we configure the .htaccess file wrongly.

In PrestaShop, the problems are generally will be related to URL re-writing options and activating “friendly URLs”.

We can back up the .htaccess file and restore it from the back office or disable friendly URLs.

A .htaccess file’s format is very strict and even an incorrect character or command could cause an internal 500 server error.

Therefore, from the “friendly URLs” option, indicating “NO” could be a solution (do not forget to save the changes).

3. How to fix ‘Waiting time has expired’

Each server has its own waiting time, which determines how long a script will run.

If the function or script exceeds this time limit, we will receive a 500 error.

Here are the PrestaShop scripts that may take too long to load:

1. Importing CSV files
2. Backup files
3. Loading translations
4. Import/export
5. Regenerating miniature views

Generally, the server time limit is 30 seconds, which is not enough for these scripts.

If it is not so, we can ask our hosting provider to change this setting at least temporarily.

4.  Reviewing addons to fix Obsolete modules

While updating the shop from version 1.6 to version 1.7, we may encounter obsolete modules or modules that are incompatible with this new version of PrestaShop.

This may also generate 500 errors. We need to review all the Addons we have previously installed or at least those that are available in a more recent version. So that we can find out what causes the incompatibility.

[Need assistance? We can help you]

Conclusion

In short, we saw how our Support Engineers fix Prestashop back office error 500 for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF