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™
$user->has_cap ("access_s2member_level0")
$user->allcaps["access_s2member_level0"]
Cristián Lávaque wrote:Is this problem present in the latest version of the plugin?
Warning: reset() [function.reset]: Passed variable is not an array or object in /***/wp-content/plugins/s2member/includes/classes/user-access.inc.php on line 51
Fatal error: Call to undefined method stdClass::has_cap() in /home/scepter/***/wp-content/plugins/s2member/includes/classes/user-access.inc.php on line 107
(user->allcaps ("access_s2member_level" . $n))
Cristián Lávaque wrote:Hi Matt. Could you please re-install s2Member v110710 following these instructions? viewtopic.php?f=36&t=247
Cristián Lávaque wrote:has_cap is a WordPress function, not s2Member's. Try updating your WordPress to the latest version. If that doesn't remove the error, try re-uploading /wp-includes/capabilities.php via FTP .
I hope that helps.
Warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\wp-content\plugins\s2member\includes\classes\users-list-in.inc.php on line 145
Fatal error: Call to undefined method stdClass::has_cap() in C:\wamp\www\mysite\wp-content\plugins\s2member\includes\classes\users-list-in.inc.php on line 163
foreach ($user->allcaps as $cap => $cap_enabled)
if (preg_match ("/^access_s2member_ccap_/", $cap))
$ccaps[] = preg_replace ("/^access_s2member_ccap_/", "", $cap);
Thanks for the follow-up. Since this is a commercial theme, we don't have access to its source code. I would suggest contacting the developer and refer them to this thread. Maybe they can spot the issue on their end and get this fixed for you. Either that, or if they'd like to send us a copy of their theme for testing, we'll take a look to see if it's something s2Member can work around in some way. They can use this private contact form: http://www.s2member.com/contact/MarketerMatt wrote:Thanks for the response,
I think the conflict is actually with my theme rather than with another plugin since I still get the error even when I deactivate all my plugins. I'm using the classipress theme from http://www.appthemes.com/
Let me know if you need any of the files or code to help me get this fixed. Thanks so much for your help!
Users browsing this forum: Yahoo [Bot] and 1 guest