Page 1 of 1

Problem with new update

PostPosted: October 3rd, 2011, 5:04 am
by alargeau
Hello everyone,

I just updated to the new version of S2Member and I got this on my website:
Fatal error: Cannot break/continue 1 level in /homez.332/lamicale/fr/wp-content/plugins/s2member/includes/classes/no-cache.inc.php(156) : eval()'d code on line 1

The website is down and I don't know why...

Thanks for your help.

Re: Problem with new update

PostPosted: October 3rd, 2011, 7:11 am
by halifaxious
I fixed this with the following steps:

a) turn off all plugins so Fatal Error doesn't prevent step b.
b) change permissions on ABSPATH. "wp-content/plugins/s2member/includes/classes/no-cache.inc.php so I can edit it directly if the perms are set to only allow the webserver write access.
c) edit no-cache.inc.php
d) turn plugins back on.

I use the following in my themes/functions.php file when I need to change permissions:

Code: Select all
add_action('init','ASH_fixperms');
function ASH_fixperms(){
   chmod(ABSPATH. "wp-content/plugins/s2member/includes/classes/no-cache.inc.php",0666);
}


The replacement for line 156 of can be:

Code: Select all
                        foreach (headers_list () as $header){ /* No-cache headers already sent? We need to check here. */
                           if (stripos ($header, "no-cache") !== false){ /* No-cache headers already sent? */
                              $no_cache_headers_already_sent = true;
                              break; 
                           }
                        }

Re: Problem with new update

PostPosted: October 3rd, 2011, 7:13 am
by alargeau
Thanks!!
Well, I saw you had the same problem. But I can't access the admin panel anymore. How did you turn off the plugins then?

Edit: sorry, I saw the link afterwards. Thanks!

Re: Problem with new update

PostPosted: October 3rd, 2011, 9:33 am
by alargeau
I fixed the problem by replacing the current version by the previous one. That's all. Now I'm waiting for a bug fix.

Re: Problem with new update

PostPosted: October 3rd, 2011, 9:39 am
by SocialCowgirl
Where did you get the previous version ... having same problem

Re: Problem with new update

PostPosted: October 3rd, 2011, 9:42 am
by alargeau

Re: Problem with new update

PostPosted: October 3rd, 2011, 11:40 am
by SocialCowgirl
Didn't work for me ... Now I get error "In order to load the s2Member Pro Module, you need the s2Member Framework, v111002+"

Re: Problem with new update

PostPosted: October 3rd, 2011, 12:04 pm
by Cristián Lávaque
Login to your s2Member.com account and then you can get the previous version of the Pro add-on: http://www.s2member.com/?s2member_file_ ... 110927.zip

I've emailed Jason about the problem, he'll fix this soon. Thanks for the reports and your patience, we're very sorry you had this trouble.

Re: Problem with new update

PostPosted: October 3rd, 2011, 12:15 pm
by sausalitoyachtclub
Thanks halifaxious, that worked for me.

(FTP'd to site and directly edited php file and saved it.)

Thanks, Rod

Re: Problem with new update

PostPosted: October 3rd, 2011, 12:26 pm
by SocialCowgirl
@Christian ... Thanks!!

Re: Problem with new update

PostPosted: October 3rd, 2011, 1:25 pm
by skipshean
uploading the last versions to the site aren't fixing things for me, please help! I have ftp access, but that's it.

error is:

Warning: include_once(/home/aztecs99/public_html/wp-content/plugins/s2member/includes/syscon.inc.php) [function.include-once]: failed to open stream: No such file or directory in /home/aztecs99/public_html/wp-content/plugins/s2member/s2member.php on line 123

Warning: include_once() [function.include]: Failed opening '/home/aztecs99/public_html/wp-content/plugins/s2member/includes/syscon.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aztecs99/public_html/wp-content/plugins/s2member/s2member.php on line 123

Fatal error: Call to undefined function ws_plugin__s2member_configure_options_and_their_defaults() in /home/aztecs99/public_html/wp-content/plugins/s2member/s2member.php on line 140

Re: Problem with new update

PostPosted: October 3rd, 2011, 1:47 pm
by biornt
overwriting the folder with the previous version worked for me - hoping for a fix soon.

Re: Problem with new update

PostPosted: October 3rd, 2011, 1:52 pm
by skipshean
Can I please reconfirm that the prior version number is v110927, for both pro and base?

I tried renaming the s2member and s2member-pro folders then uploading the previous version, still no luck!

Re: Problem with new update

PostPosted: October 3rd, 2011, 1:57 pm
by cabrooker1
Yeah, my site is down too and the FTP solution doesn't seem to be working. I found renaming "plugin" folder in FTP disables all plugins and allows me to get back into the admin part of WordPress. Then changing the "plugin" folder name back to "plug" allows all your plugins to show up in the back end of WP. Perhaps if Primothemes "releases" the prior version of the plugin as an "update," it would only then take a click to fix this (hopefully). Moreover, all of the people who haven't yet updated to the broken version won't have to go through all of this and have their site break completely too. Please help!

Re: Problem with new update

PostPosted: October 3rd, 2011, 2:01 pm
by skipshean
ok, it did finally work for me -- I believe the issue is that I also use the QuickCache plugin and since I couldn't get into wordpress, I couldn't flush the cache.

when it did it automatically, then the site came back up.

Re: Problem with new update

PostPosted: October 3rd, 2011, 2:49 pm
by glbrent
So I got mine back up and working again. Apparently, I lost some people that were interested in my site. How do we stop this kind of thing from happening in the future? Do each on of us need a test server or test install of s2member? I really can't afford my site to go down like this again.

Re: Problem with new update

PostPosted: October 3rd, 2011, 3:29 pm
by Jason Caldwell
Thanks for these reports everyone.

s2Member v111003 will be released shortly, for the sole purpose of correcting this fatal error.
* (s2Member v111003) **Bug fix**. Fatal `eval()` error inside: `/includes/classes/no-cache.inc.php` due to an inappropriately placed call to PHP's eval() function.
Fixed in this release of s2Member v111003.
You should receive a notice to upgrade inside your Dashboard. If not, you can grab the latest release here. s2Member Pro customers can access the latest versions of both s2Member and s2Member Pro inside their accounts at s2Member.com. See: http://www.s2member.com/

* Our sincerest apologies for this inconvenience and possible down time.

Re: Problem with new update

PostPosted: October 3rd, 2011, 5:12 pm
by cabrooker1
This worked for me. Thanks.

Re: Problem with new update

PostPosted: October 3rd, 2011, 5:24 pm
by biornt
That worked for me too, no error, and it is protecting the pages correctly now. Thanks.