Page 1 of 1

Error with activate-deactivate.inc.php

PostPosted: August 16th, 2010, 4:10 pm
by HollowMac
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 ;)

Re: Error with activate-deactivate.inc.php

PostPosted: August 17th, 2010, 4:48 pm
by Jason Caldwell
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.

Re: Error with activate-deactivate.inc.php

PostPosted: August 18th, 2010, 4:40 am
by HollowMac
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

Re: Error with activate-deactivate.inc.php

PostPosted: August 24th, 2010, 10:56 am
by Jason Caldwell
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/

Re: Error with activate-deactivate.inc.php

PostPosted: August 27th, 2010, 9:59 am
by Yifat
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.

Re: Error with activate-deactivate.inc.php

PostPosted: August 30th, 2010, 7:52 am
by Jason Caldwell
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.

Re: Error with activate-deactivate.inc.php

PostPosted: August 30th, 2010, 12:37 pm
by bessmccarty
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.)

Re: Error with activate-deactivate.inc.php

PostPosted: August 31st, 2010, 9:57 am
by Jason Caldwell
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®.

Re: Error with activate-deactivate.inc.php

PostPosted: August 31st, 2010, 9:58 am
by Jason Caldwell
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.

Re: Error with activate-deactivate.inc.php

PostPosted: August 31st, 2010, 6:01 pm
by bessmccarty
Thank you, Jason, I'll send this info to Yifat. She may understand it. ~ Bess McCarty

Re: Error with activate-deactivate.inc.php

PostPosted: August 31st, 2010, 6:16 pm
by Jason Caldwell
You're very welcome Bess.
Best of luck to you.

Re: Error with activate-deactivate.inc.php

PostPosted: September 1st, 2010, 6:59 am
by Yifat
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

Re: Error with activate-deactivate.inc.php

PostPosted: September 2nd, 2010, 1:18 pm
by bessmccarty
Thanks for your help, Jason, I have people waiting on the site. ~ Bess McCarty

Re: Error with activate-deactivate.inc.php

PostPosted: September 2nd, 2010, 1:40 pm
by Jason Caldwell
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/

Re: Error with activate-deactivate.inc.php

PostPosted: September 2nd, 2010, 3:25 pm
by bessmccarty
Thanks, Jason, I sent them now via your form.

Re: Error with activate-deactivate.inc.php

PostPosted: September 2nd, 2010, 5:37 pm
by Jason Caldwell
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.

Re: Error with activate-deactivate.inc.php

PostPosted: September 2nd, 2010, 9:02 pm
by bessmccarty
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

Re: Error with activate-deactivate.inc.php

PostPosted: September 7th, 2010, 4:30 pm
by Jason Caldwell
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"); 

Re: Error with activate-deactivate.inc.php

PostPosted: September 8th, 2010, 3:51 pm
by bessmccarty
Thank you, Jason, I'll pass this on to Yifat, my web person. ~ Bess McCarty

Re: Error with activate-deactivate.inc.php

PostPosted: September 10th, 2010, 1:36 am
by Jason Caldwell
You're very welcome.