categories error

Ask the community for help and support.
Post Reply
dculley
Posts: 3
Joined: Fri Dec 27, 2019 5:50 pm

categories error

Post 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.
mfleeson
Posts: 2
Joined: Thu Nov 05, 2020 6:33 pm

Re: categories error

Post 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" ,"","");
Post Reply