Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-12T10:33:00-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1589 2011-08-12T10:33:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=30589#p30589 <![CDATA[Re: Just one problem]]>
Please let me know if there's anything else I can provide you with, and thanks for the help!

Statistics: Posted by MarketerMatt — August 12th, 2011, 10:33 am


]]>
2011-08-08T07:16:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=30164#p30164 <![CDATA[Re: Just one problem]]>
Thanks for your help so far.

Statistics: Posted by MarketerMatt — August 8th, 2011, 7:16 am


]]>
2011-08-07T14:11:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=30100#p30100 <![CDATA[Re: Just one problem]]> Statistics: Posted by Jason Caldwell — August 7th, 2011, 2:11 pm


]]>
2011-07-27T17:41:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=29355#p29355 <![CDATA[Re: Just one problem]]> Statistics: Posted by MarketerMatt — July 27th, 2011, 5:41 pm


]]>
2011-07-27T17:36:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=29353#p29353 <![CDATA[Re: Just one problem]]>
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!
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/

Statistics: Posted by Jason Caldwell — July 27th, 2011, 5:36 pm


]]>
2011-07-27T17:23:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=29351#p29351 <![CDATA[Re: Just one problem]]> Statistics: Posted by Cristián Lávaque — July 27th, 2011, 5:23 pm


]]>
2011-07-27T17:04:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=29343#p29343 <![CDATA[Re: Just one problem]]>
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!

Statistics: Posted by MarketerMatt — July 27th, 2011, 5:04 pm


]]>
2011-07-27T16:42:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=29333#p29333 <![CDATA[Re: Just one problem]]> Thanks for the heads up on this thread Cristián.
~ and thanks for reporting this important issue.

This sounds like a plugin conflict, or possibly a corrupted wp_users table to me. The error you reported is referring to this section of the code for s2Member, which depends upon the core WP_User property allcaps, which apparently is not present on your installation, for at least one Member. Thus, the error is being generated. This would also explain the error you reported in /user-access.inc.php too.

Code:
foreach ($user->allcaps as $cap => $cap_enabled)
    if (preg_match ("/^access_s2member_ccap_/", $cap))
        $ccaps[] = preg_replace ("/^access_s2member_ccap_/", "", $cap); 
* What other plugins are you running in concert with s2Member please?

Statistics: Posted by Jason Caldwell — July 27th, 2011, 4:42 pm


]]>
2011-07-25T14:37:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=29058#p29058 <![CDATA[Re: Just one problem]]>
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.


Hey Cristián, I appreciate your help but this still hasn't solved my problem. WP is at the latest version already and I'm still getting the error. The errors that I get from the admin page are concerning the same thing but are from the users-list-in.inc.php page rather than the user-access.inc.php page.

Code:
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


Code:
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


Like I said, this is where the "Update Profile" button should be on my theme.

Statistics: Posted by MarketerMatt — July 25th, 2011, 2:37 pm


]]>
2011-07-14T21:24:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=28404#p28404 <![CDATA[Re: Just one problem]]> 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.

Statistics: Posted by Cristián Lávaque — July 14th, 2011, 9:24 pm


]]>
2011-07-14T13:11:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=28382#p28382 <![CDATA[Re: Just one problem]]>
Cristián Lávaque wrote:
Hi Matt. Could you please re-install s2Member v110710 following these instructions? viewtopic.php?f=36&t=247


Thanks for the response Cristián, but I'm still getting the same errors... My guess is that there is some conflict with the user membership level.

Any other ideas?

Thanks for the help

Statistics: Posted by MarketerMatt — July 14th, 2011, 1:11 pm


]]>
2011-07-13T18:12:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=28329#p28329 <![CDATA[Re: Just one problem]]> viewtopic.php?f=36&t=247

Statistics: Posted by Cristián Lávaque — July 13th, 2011, 6:12 pm


]]>
2011-07-13T11:04:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=28291#p28291 <![CDATA[Re: Just one problem]]>
Cristián Lávaque wrote:
Is this problem present in the latest version of the plugin?


I'm getting the same issue as the above where I'm getting this error where the Update Profile button should be.

Code:
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


The only thing is, I'm using the new version of the plugin that already has the following by default:

Code:
(user->allcaps ("access_s2member_level" . $n))


Help please.

Statistics: Posted by MarketerMatt — July 13th, 2011, 11:04 am


]]>
2011-03-18T14:10:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=7985#p7985 <![CDATA[Re: Just one problem]]> Statistics: Posted by Cristián Lávaque — March 18th, 2011, 2:10 pm


]]>
2011-03-18T13:49:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=7984#p7984 <![CDATA[Re: Just one problem]]>
It can be fixed by modifying the plugin source. Open the file that has the error and go to the line indicated y the error.
change each occurance of the function as follows:
Code:
$user->has_cap ("access_s2member_level0")

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


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

Peace,
Steve

Statistics: Posted by sfraser657 — March 18th, 2011, 1:49 pm


]]>
2011-02-19T10:04:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=6901#p6901 <![CDATA[Re: Just one problem]]> Statistics: Posted by mignonkm — February 19th, 2011, 10:04 am


]]>
2011-01-23T15:02:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=5947#p5947 <![CDATA[Re: Just one problem]]>

Statistics: Posted by jamesg — January 23rd, 2011, 3:02 pm


]]>
2011-01-13T05:23:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=5544#p5544 <![CDATA[Re: Just one problem]]>
The full error code is below if you have any other thoughts.

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

Statistics: Posted by mrbigstock — January 13th, 2011, 5:23 am


]]>
2011-01-12T18:52:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=5522#p5522 <![CDATA[Re: Just one problem]]>
It never hurts to let the folks at s2 know about the incompatibility issue, as they are easily fixed once in awhile.

Statistics: Posted by idreia — January 12th, 2011, 6:52 pm


]]>
2011-01-12T12:50:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1589&p=5511#p5511 <![CDATA[Just one problem]]>
I have managed to get s2member working on my site but one page (internal profile page) shows an error like this:

Fatal error: Call to undefined method stdClass::has_cap() in /home/content ********etc.

there would normally be an 'update profile' button where this code appears

Any ideas or help would be appreciated.

Thanks

John

Statistics: Posted by mrbigstock — January 12th, 2011, 12:50 pm


]]>