Page 1 of 1

Error notices on WordPress Debug Mode

PostPosted: March 13th, 2011, 2:37 am
by geekz
hi there,
i have wordpress debug mode enabled ( in wp-config.php added code : define('WP_DEBUG', true); ) and testing a few plugins and found that s2 member plugin shows many error notices. example below.
Code: Select all
Notice: Undefined index: pro_paypal_api_username in /home/user/public_html/wplab/wp-content/plugins/s2member/includes/syscon.inc.php on line 243

Notice: Undefined index: pro_paypal_api_password in /home/user/public_html/wplab/wp-content/plugins/s2member/includes/syscon.inc.php on line 246


This kind of error notices occur when we use variables with out checking if they exist or not.
Will these notices be taken care , from next version?

Re: ERROR NOTICES ON WORDPRESS DEBUG MODE

PostPosted: March 14th, 2011, 11:31 pm
by Jason Caldwell
Thanks for the excellent question.
Yes, these will be dealt with in a future release. We understand that some site owners prefer to see no notices when in debugging mode and we are planning to address the undefined indexes in various places in a future release of s2Member Pro. Thanks for your patience.

For the benefit of other readers. Please understand that PHP Notices are NOT errors. These are intended for developers only. Notices are a part of the PHP error reporting mechanism designed to assist developers in code optimization.

If you are seeing Notices, you are probably using WP_DEBUG, or you may need to adjust the settings in your /php.ini file to a production state.

Reference article:
http://php.net/manual/en/function.error-reporting.php

Code: Select all
// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);

Re: Error notices on WordPress Debug Mode

PostPosted: June 5th, 2011, 9:31 pm
by Jason Caldwell
Some additional progress has been made on this issue in the latest release of s2Member v110605+. Work on this will remain ongoing, but we ARE getting closer to having s2Member run in full WP_DEBUG mode.