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

s2Member Plugin. A Membership plugin for WordPress®.

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


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron