Session errors break page in debug mode
-
We have a site that uses this plugin as well as the visual composer and some other things. When we work on a dev server where php/apache/wp are set to be verbose in error reporting, errors sometimes break pages that rely on javascript to run well.
Note: this bug does not seem to have any influence on servers instructed to silence error reporting.
The bug we found is in woo-ajax-loginregister/woocommerce-ajax-login-register.php on line 631 (in version 1.9.1):
session_start(); // outputs error if session already exist
The fix is to check if a session exists before starting one:
if(!isset($_SESSION)) session_start(); // no errors produced, no page broken!
Thanks to let me know if this makes sense and if it does, if it is going to be featured in the next update (we currently hacked the plugin files but we would rather not have to).
Best regards,
F
- The topic ‘Session errors break page in debug mode’ is closed to new replies.