Category Menu Save Errors
2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 3, 2022 (RSS)
By rez - December 17, 2021
I am getting the following errors when saving an item in a category editor. Please advise.
v3.54 (Build 2280)
PHP v7.4.26
#167 - E_USER_ERROR: setPrefixedCookie: Can't set cookie(loginsession, 9BDOykTO3kzM2EjOiM3clN2YBR3chxmIsISYmRTN3QWwgDZwADN4gDOzUWZygjZmVDZjZzN4EGOiBzMykDZ3YWMkETYoNHJiojIoNXYIRmcvd3czFGciwiIDlnbvRlI6ISZtFmbyV2c1Jye), headers already sent! Output started in /home2/site/public_html/cmsb/lib/menus/default/save.php line 208.
/home2/site/public_html/cmsb/lib/http_functions.php (line 292)
http://server.temp.domains/~site/cmsb/admin.php
#166 - E_NOTICE: Trying to access array offset on value of type null
/home2/site/public_html/cmsb/lib/menus/default/save.php (line 208)
http://server.temp.domains/~name/cmsb/admin.php
By daniel - January 3, 2022
Hi rez,
This appears to be a PHP compatibility issue that has been resolved in the latest release of CMSB: https://www.interactivetools.com/forum/forum-posts.php?CMSB-v3.55-Released---November-10th-2021-82478
If this is the only error you're experiencing, you can also patch it relatively simply by editing line 208 in the file /cmsb/lib/menus/default/save.php from this:
if (preg_match("/:$recordNum:/", $parentCategory['lineage'])) {
To this:
if ($parentCategory && preg_match("/:$recordNum:/", $parentCategory['lineage'])) {
But there may be additional compatibility issues fixed in v3.55, so a full upgrade would be preferable if possible.
Let me know any other questions!
Thanks,
Technical Lead
interactivetools.com