PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Error notices on WordPress Debug Mode

Common Questions/Problems/Tips. Posted by Administrators & Support Reps.

Error notices on WordPress Debug Mode

Postby geekz » March 13th, 2011, 2:37 am

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?
User avatar
geekz
Registered User
Registered User
 
Posts: 7
Joined: September 9, 2010

Re: ERROR NOTICES ON WORDPRESS DEBUG MODE

Postby Jason Caldwell » March 14th, 2011, 11:31 pm

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);
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Error notices on WordPress Debug Mode

Postby Jason Caldwell » June 5th, 2011, 9:31 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to Common Questions/Problems/Tips

Who is online

Users browsing this forum: No registered users and 2 guests

cron