Page 1 of 1

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

PostPosted: February 21st, 2011, 12:02 pm
by mignonkm
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!!

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

PostPosted: March 18th, 2011, 1:49 pm
by sfraser657
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