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 with activate-deactivate.inc.php

s2Member Plugin. A Membership plugin for WordPress®.

Error with activate-deactivate.inc.php

Postby HollowMac » August 16th, 2010, 4:10 pm

Hello,

After installing s2Member, i activate this, but i get this error :
Code: Select all
Fatal error: Call to a member function add_cap() on a non-object in /......../wp-content/plugins/s2member/includes/functions/activate-deactivate.inc.php on line 61


Now, i get this error on my admin panel on my main blog (i use WordPress with MultiSite and BuddyPress) : i can't access to my control panel.

But, if i go to the control panel of another blog, i can see the menu of s2Member, but i can activate the support with Multisite because it is not my main blog.

How can resolve this problem ?

Thank you :)

N.B : excuse me if my english is bad, but i am a french guy ;)
User avatar
HollowMac
Registered User
Registered User
 
Posts: 2
Joined: August 16, 2010

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » August 17th, 2010, 4:48 pm

Hi there. Thanks for reporting this important issue.

While I can't be sure, it sounds like you have a plugin installed on your (Main Site) that is creating a conflict with WordPress Roles/Capabilities. I would try disabling other plugins ( delete them temporarily from the plugins folder ) until you get it working.

If all else fails, you can regain access to your Main Site, by deleting the /s2member/ folder from your /wp-content/plugins/ directory. Please report back on this topic if you can. I'm curious to see why this is happening; which plugin is causing a conflict, or which version of WordPress/BuddyPress is not working with Multisite Networking enabled.

If you'd like to email me a Dashboard login with Administrative access; I'll be happy to have a look for you.
~ 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

Re: Error with activate-deactivate.inc.php

Postby HollowMac » August 18th, 2010, 4:40 am

Hello,

Thank you for your attention.

I desactived all my plugins except S2MEMBER, and i still have the same problem.

I can delete S2MEMBER by going on the admin panel of another of my blogs : the admin panel of my principal blog is the only one that i can't go.

I can give you an Administrative Access on my blog if it can help you to solve this problem ;)

N.B : i turn under WordPress 3.0.1 and BuddyPress 1.2.5.2
User avatar
HollowMac
Registered User
Registered User
 
Posts: 2
Joined: August 16, 2010

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » August 24th, 2010, 10:56 am

Yes, please do.
This is a very strange issue, and I'm curious to see what's causing it on your installation.
Please use this form to send in your Dashboard login. I'll have a look for you.
http://www.s2member.com/contact/
~ 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

Re: Error with activate-deactivate.inc.php

Postby Yifat » August 27th, 2010, 9:59 am

I have the exact problem.
I can't access the site at all when I upload the new s2Member 3.2.2 files. When I rename the activate-deactivate.inc.php then I can access my dashboard but I get these errors all over the place:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'ws_plugin__s2member_check_activation' was given in /homepages/44/d231709856/htdocs/mlmmillionaireclub.com/membership/wp-includes/plugin.php on line 395

If you've solved the problem, can you post your solution here?

Thank you.
Yifat
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » August 30th, 2010, 7:52 am

Yifat wrote:I have the exact problem.
I can't access the site at all when I upload the new s2Member 3.2.2 files. When I rename the activate-deactivate.inc.php then I can access my dashboard but I get these errors all over the place:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'ws_plugin__s2member_check_activation' was given in /homepages/44/d231709856/htdocs/mlmmillionaireclub.com/membership/wp-includes/plugin.php on line 395

If you've solved the problem, can you post your solution here?

Thank you.

Hi there. Thanks for reporting this important issue.

OK, yea.. don't remove any files, that will cause more problems. If you can please send me a Dashboard login, I'll be happy to have a look for you. I'd like to find out what the root cause of this is.
~ 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

Re: Error with activate-deactivate.inc.php

Postby bessmccarty » August 30th, 2010, 12:37 pm

OK, I'm sending my dashboard login now on your form: http://www.s2member.com/contact/

Thank you,
Bess McCarty, (owner of www.mlmmillionaireclub.com that Yifat Cohen is working on.)
bessmccarty
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » August 31st, 2010, 9:57 am

Hi Bess. I just took a look at your installation.

Your installation of WordPress® was corrupted upon logging in. It appears that you attempted an automatic upgrade at some point, and that upgrade never completed.

Your WP installation has been repaired, and now I suggest re-installing the s2Member plugin.

1. Log in via FTP, and delete this directory:
/wp-content/plugins/s2member/

2. Grab the latest version of s2Member ( v3.2.3 at this time )
http://wordpress.org/extend/plugins/s2member/
Upload the newest version to:
/wp-content/plugins/s2member/

3. Re-activate the plugin using the Plugins Menu in WordPress®.
~ 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

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » August 31st, 2010, 9:58 am

NOTE. I also noticed that you have a call to:
session_start() inside your /wp-config.php file.

You might have a good reason for this, but just to note: this can have negative side effects, depending on your server configuration. If you continue to have trouble, try removing the session_start() line from your /wp-config.php file.
~ 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

Re: Error with activate-deactivate.inc.php

Postby bessmccarty » August 31st, 2010, 6:01 pm

Thank you, Jason, I'll send this info to Yifat. She may understand it. ~ Bess McCarty
bessmccarty
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » August 31st, 2010, 6:16 pm

You're very welcome Bess.
Best of luck to you.
~ 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

Re: Error with activate-deactivate.inc.php

Postby Yifat » September 1st, 2010, 6:59 am

Jason Caldwell wrote:Hi Bess. I just took a look at your installation.

Your installation of WordPress® was corrupted upon logging in. It appears that you attempted an automatic upgrade at some point, and that upgrade never completed.

Your WP installation has been repaired, and now I suggest re-installing the s2Member plugin.

1. Log in via FTP, and delete this directory:
/wp-content/plugins/s2member/

2. Grab the latest version of s2Member ( v3.2.3 at this time )
http://wordpress.org/extend/plugins/s2member/
Upload the newest version to:
/wp-content/plugins/s2member/

3. Re-activate the plugin using the Plugins Menu in WordPress®.



Thanks for fixing the WP installation. I've uploded the newest version of S2member, and when I activated the plug in I got this error:
Fatal error: Call to a member function add_cap() on a non-object in /homepages/44/d231709856/htdocs/mlmmillionaireclub.com/membership/wp-content/plugins/s2member/includes/functions/activate-deactivate.inc.php on line 61

And was no longer able to access the backend, so I renamed the folder through FTP as to not prevent the site from being seen.
I've also commented out session_start() inside my /wp-config.php file, thinking it might help, but it didn't.

Thanks for your support.
Yifat
Yifat
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby bessmccarty » September 2nd, 2010, 1:18 pm

Thanks for your help, Jason, I have people waiting on the site. ~ Bess McCarty
bessmccarty
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » September 2nd, 2010, 1:40 pm

Very welcome Bess. Do me a favor please. Can you send the login details for your site, as well as FTP access to your /wp-content/ directory? I believe you sent them over before, but I no longer have them.

Please use this private contact form:
http://www.s2member.com/contact/
~ 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

Re: Error with activate-deactivate.inc.php

Postby bessmccarty » September 2nd, 2010, 3:25 pm

Thanks, Jason, I sent them now via your form.
bessmccarty
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » September 2nd, 2010, 5:37 pm

Hi Bess. Thank you.

s2Member has been installed on your blog successfully.

Steps taken to resolve the issue:
1. Repaired your WordPress® database.
2. Repaired your WordPress® Roles/Capabilities.
( you had a Role Manager plugin installed, and it appears your Roles got corrupted )
3. Re-installed s2Member.

Please let us know if you need further assistance. * Note. It's fine to use Role Managing plugins with s2Member. However, please be sure that you don't delete any of the default WordPress Roles, as this would be unexpected to s2Member; and could result in fatal errors.
~ 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

Re: Error with activate-deactivate.inc.php

Postby bessmccarty » September 2nd, 2010, 9:02 pm

Thank you very much, Jason for your fast help! It seems to all work except:

In my Wordpress dashboard, the Home page permalink is:
http://www.mlmmillionaireclub.com/membership/

But "preview page" and the site itself Home page send you to:
http://www.mlmmillionaireclub.com/membe ... -e-lesson/

How can I get my Home page back?

And how can I prevent corruption in the future? Just follow your cautions you mention in the forum? Did I corrupt S2 when I tried to auto-update it, and it just ran endlessly? That's when I then asked Yifat to do a manual upgrade. Should I never attempt an auto-upgrade of S2?

Thank you,
Bess
bessmccarty
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » September 7th, 2010, 4:30 pm

Hi Bess. It's difficult to say exactly how it became corrupted. I suspect most of the problems were related to the memory_limit setting in your web host configuration. Your installation of PHP is somewhat limited in terms of memory consumption, and as a result, this is probably what caused partial completion of the WordPress® upgrade itself, and possibly with s2Member as well.

As for your Home Page, please have a look in your Dashboard, under:
Settings -> General

To prevent future corruption, I would add this line to your /wp-config.php file, and/or contact your host and ask them to increase your memory limit in PHP scripts, specifically for WordPress.
Code: Select all
define("WP_MEMORY_LIMIT", "128M"); 
~ 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

Re: Error with activate-deactivate.inc.php

Postby bessmccarty » September 8th, 2010, 3:51 pm

Thank you, Jason, I'll pass this on to Yifat, my web person. ~ Bess McCarty
bessmccarty
Guest User
Guest User
 

Re: Error with activate-deactivate.inc.php

Postby Jason Caldwell » September 10th, 2010, 1:36 am

You're very welcome.
~ 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: Exabot [Bot] and 2 guests

cron