Jump to content
Latest News: (loading..)

Recommended Posts

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 49

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 52

Warning: session_set_save_handler(): Cannot change save handler when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 62

Warning: session_name(): Cannot change session name when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 148

Warning: session_save_path(): Cannot change save path when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 175

Warning: 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 144

Warning: session_start(): Cannot start session when headers already sent in xxx/xx/xx/xx/catalog/includes/functions/sessions.php on line 101

Warning: extract() expects parameter 1 to be array, null given in xxx/xx/xx/xx/catalog/includes/application_top.php on line 199

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/functions/html_output.php on line 25
 

Merci de votre aide

Bobbee

Share this post


Link to post
Share on other sites

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);

 


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (2.3.4.1 CE) here: https://github.com/gburton/Responsive-osCommerce/archive/2341-Frozen.zip

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

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.


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get (stable) Frozen or (unstable) Edge. See also the naming convention and the latest community-supported responsive "Edge" release

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×