lucsangel Posted October 31, 2018 Share Posted October 31, 2018 Hello to all, Using FROZEN, BS3 our server switched to php 7.2 and I'm getting : Warning: Use of undefined constant DIR_WS_HTTP_CATALOG - assumed 'DIR_WS_HTTP_CATALOG' (this will throw an Error in a future version of PHP) in /xxx/xx/xx/xx/catalog/includes/application_top.php on line 49Warning: Use of undefined constant DIR_WS_HTTP_CATALOG - assumed 'DIR_WS_HTTP_CATALOG' (this will throw an Error in a future version of PHP) in /xxx/xx/xx/xx/catalog/includes/application_top.php on line 52Warning: session_set_save_handler(): Cannot change save handler when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 62Warning: session_name(): Cannot change session name when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 148Warning: session_save_path(): Cannot change save path when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 175Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in xxx/xx/xx/xx/catalog/includes/application_top.php on line 144Warning: session_start(): Cannot start session when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 101Warning: extract() expects parameter 1 to be array, null given in xxx/xx/xx/xx/catalog/includes/application_top.php on line 199Warning: Use of undefined constant DIR_WS_HTTP_CATALOG - assumed 'DIR_WS_HTTP_CATALOG' (this will throw an Error in a future version of PHP) in xxx/xx/xx/xx/catalog/includes/functions/html_output.php on line 25 Merci de votre aide Bobbee Link to comment Share on other sites More sharing options...
BrockleyJohn Posted October 31, 2018 Share Posted October 31, 2018 The workaround: in catalog/includes/application_top.php change error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_DEPRECATED); to error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_DEPRECATED & ~E_WARNING); Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
MrPhil Posted October 31, 2018 Share Posted October 31, 2018 Keep in mind that adding flags to suppress errors is only a temporary workaround. It is not a permanent fix by any means. Use the time gained to fix the problem. I'm worried about the "undefined constant DIR_WS_HTTP_CATALOG" message. That string should be defined in the configure.php files -- did they get removed? Did any other defines get removed? Once you get past this one, will others pop up? I don't know why PHP 7.2 would stop processing defines. Most of the messages after that about "headers already sent" can be ignored, as they will clear up by themselves once the initial errors are resolved. Don't forget to look at the thread about known errors in Frozen and their fixes. Also, drop back to PHP 7.1 if you can easily do so. Link to comment Share on other sites More sharing options...
Mercurius Posted January 29, 2019 Share Posted January 29, 2019 Am 31.10.2018 um 17:45 schrieb BrockleyJohn: The workaround: in catalog/includes/application_top.php change error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_DEPRECATED); to error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_DEPRECATED & ~E_WARNING); Link to comment Share on other sites More sharing options...
Mercurius Posted January 29, 2019 Share Posted January 29, 2019 maybe you do it this way: if (DISPLAY_STORE_ERROR == 'true' && !substr_count($_SERVER['REQUEST_URI'], 'allerror=shopadmin')) { error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED); } elseif (DISPLAY_STORE_ERROR == 'true' && substr_count($_SERVER['REQUEST_URI'], 'allerror=shopadmin')) { error_reporting(E_ALL); } else { ini_set('display_errors', 'Off'); } If you want to see the errors, add '? allerror=shopadmin' to your URL Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.