Some custom constants need to be added to the database to facilitate background settings. However, it is found that the throttling control constant set in the background is still invalid and not executed as expected. Check breadcrumb
ClassCodeNo problem. The database configuration is normal, and the script init_db_config_read.php
It's no problem to print the constant value directly. It's strange that other constant settings are running normally. When I was puzzled, I suddenly thought of breadcrumb.
The class is loaded before the database constant, and there is only one possibility. Check the execution sequence of the two files with die (). It is clear that the background settings do not work. Open
Includes/auto_loaders/config. Core. php
, You can see a variety of class
Initialization is the first, followed by other pre-loading operations.
#70
$ Autoloadconfig [0] [] = array ('autotype' => 'class ',
'Loadfile' => 'breadcrumb. php ');
#106
$ Autoloadconfig [40] [] = array ('autotype' => 'init _ script ',
'Loadfile' => 'init _ db_config_read.php ');
Solution: Set the breadcrumb loading sequence after init_db_config_read, that is, to change the subscript 0 to 40, for example, 50:
#70
$ Autoloadconfig [50] [] = array ('autotype' => 'class ',
'Loadfile' => 'breadcrumb. php ');
This may occur in other cases. It should be a small bug of Zen cart.