D
D
denism3002021-09-16 15:10:47
opencart
denism300, 2021-09-16 15:10:47

How to enable error display in OpenCart 3?

Error 500 when entering the site or in the admin panel. The logs are empty, the hosting logs are also empty.
How to enable PHP error display?
If you try like this:
1) .htaccess file:

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on


2) php.ini file:
display_errors = On;
error_reporting = ~E_ALL;


3) Index.php file:
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

then just a white screen

OpenCart version 3.0.3.6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2021-09-18
@Gnanw

Look in the hosting or server logs, depending on where it is installed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question