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™

Fatal error: Call to undefined method stdClass::has_cap()

s2Member Plugin. A Membership plugin for WordPress®.

Fatal error: Call to undefined method stdClass::has_cap()

Postby mignonkm » February 21st, 2011, 12:02 pm

Hello, I am getting the following error on my 'edit user profile' page...the page and all the options shows up, but where the submit/update button should be the following error shows up instead:

Fatal error: Call to undefined method stdClass::has_cap() in /home/****/wp-content/plugins/s2member/includes/functions/user-access-level.inc.php on line 38

Any clue as to how I can fix this error? Thanks!!
User avatar
mignonkm
Registered User
Registered User
 
Posts: 4
Joined: February 14, 2011

Re: Fatal error: Call to undefined method stdClass::has_cap(

Postby sfraser657 » March 18th, 2011, 1:49 pm

Hey,

It can be fixed by modifying the plugin source. Open the file that has the error and go to the line indicated.
change each occurance of the function as follows:
Code: Select all
$user->has_cap ("access_s2member_level0")

Code: Select all
$user->allcaps["access_s2member_level0"]


You'll have to change it 5 times, one for each access level.

Peace,
Steve
User avatar
sfraser657
Registered User
Registered User
 
Posts: 2
Joined: March 18, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron