Originally Posted by
Georgecy
Hi I applied the modifications and so far the specific errors disappeared. There is one more similar error as per log below:
[09-Mar-2024 11:08:31 UTC] Request URI: /index.php?main_page=index&cPath=304_156/, IP address:
#1 require(/includes/modules/bootstrap/category_row.php) called at [/includes/templates/bootstrap/templates/tpl_modules_category_row.php:16]
#2 require(/includes/templates/bootstrap/templates/tpl_modules_category_row.php) called at [/includes/templates/bootstrap/templates/tpl_index_categories.php:86]
#3 require(/includes/templates/bootstrap/templates/tpl_index_categories.php) called at [/includes/modules/pages/index/main_template_vars.php:232]
#4 require(/includes/modules/pages/index/main_template_vars.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:216]
#5 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant TOPMOST_CATEGORY_PARENT_ID - assumed 'TOPMOST_CATEGORY_PARENT_ID' (this will throw an Error in a future version of PHP) in /includes/modules/bootstrap/category_row.php on line 50.
That's another zc157 => zc158 change.
You can work-around the issue (while you plan your base Zen Cart upgrade) by creating a file (its name doesn't matter, as long as it's a .php file) in the /includes/extra_datafiles sub-directory, containing:
Code:
// -----
// Initialize the constant, set by Zen Cart 1.5.8, to identify the top-most category id. This module can
// be safely removed once the site is upgraded to zc158 or later.
//
define('TOPMOST_CATEGORY_PARENT_ID', '0');
Bookmarks