Page 1 of 1

categories error

Posted: Fri Apr 24, 2020 11:23 am
by dculley
I'm at v 1.05.8 php v 7.2.27
Not live - testing site
turned on PHP error display to check, received this on the catalog side.

Warning: Use of undefined constant MODULE_BOXES_CATEGORIES_MAX_LEVEL - assumed 'MODULE_BOXES_CATEGORIES_MAX_LEVEL' (this will throw an Error in a future version of PHP) in /home/xxxxxx/xxxxxx/xxxxxx/includes/modules/boxes/bm_categories.php on line 36

line 36 is: $max_nesting_level = (int)MODULE_BOXES_CATEGORIES_MAX_LEVEL;

Not sure how to fix.

Re: categories error

Posted: Thu Nov 05, 2020 6:37 pm
by mfleeson
Try running this sql on your phoenix installation.
SELECT * FROM configuration WHERE configuration_key="MODULE_BOXES_CATEGORIES_MAX_LEVEL";

In my phoenix 1.0.7.9 it shows up as configuration_id = 174.

If you've not got an entry, then try running this:
INSERT INTO configuration VALUES (0, "Maximum Level of Nesting", "MODULE_BOXES_CATEGORIES_MAX_LEVEL", "1", "If you increase this number, subcategories will show in the module output.", "6", "3", "", "2020-10-08 18:16:06" ,"","");