Page 1 of 2

Upgrading to the latest version ( instructions )

PostPosted: June 19th, 2010, 6:26 pm
by Jason Caldwell
Inside your WordPress Dashboard, go to:
`s2Member -> General Options -> De-Activation Safeguards`

Turn Safeguards `on`, and click Save. This tells s2Member NOT to remove any existing data/options; should WordPress try to de-activate it inadvertently.

It is always a good idea to backup your files and database before upgrading any aspect of your WordPress® installation. Now, you can either (upgrade automatically) by going to `WordPress® -> Plugins` and clicking "upgrade automatically". Or, if that fails with memory errors, you can upgrade manually by following these instructions:

1. Backup files and database ( always a good idea ).
2. Enable De-Activation Safeguards ( as instructed above ).
3. Login via FTP, and delete the entire `/wp-content/plugins/s2member` directory.
You can leave `/plugins/s2member-logs/` and `/plugins/s2member-files/`.
4. Now upload the latest `/s2member` folder to `/wp-content/plugins/`.
5. That's it. All existing options will remain intact.


* If you're running s2Member Pro, repeat steps #3 and #4 for the /s2member-pro directory.

s2Member is different than most plugins, in that, s2Member is capable re-activating itself automatically. So even with a manual upgrade, everything will load back up safely after the upload is completed.

* It is always a good idea to take your site offline during an upgrade.
We use this plugin for that: http://wordpress.org/extend/plugins/wp- ... ance-mode/


= Why would I get memory errors during automatic upgrade? =
This depends on your hosting provider and/or server configuration. Some web hosting companies impose very low limits on the amount of memory available to WordPress® during the execution of a single script. Since s2Member is a larger plugin, WordPress® may exceed conservative limits set forth by shared hosting companies. The solution is to upgrade manually. Memory limits only affect the WordPress® auto-installation/upgrade routine, not the actual functionality of WordPress® or s2Member.

Re: Upgrading to the latest version ( instructions )

PostPosted: July 21st, 2011, 9:10 am
by hapke
Can I use the automatic upgrade function within WordPress plugins?

Re: Upgrading to the latest version ( instructions )

PostPosted: July 21st, 2011, 3:30 pm
by Jason Caldwell
Thanks for the excellent question.
hapke wrote:Can I use the automatic upgrade function within WordPress plugins?

Absolutely. It's still a good idea to follow steps 1 and 2 though.
1. Backup files and database ( always a good idea ).
2. Enable De-Activation Safeguards ( as instructed above ).

Re: Upgrading to the latest version ( instructions )

PostPosted: July 21st, 2011, 3:48 pm
by hapke
Thank you, I will do so.

Re: Upgrading to the latest version ( instructions )

PostPosted: July 21st, 2011, 4:28 pm
by Cristián Lávaque
Another tip for Step 4 above:

Instead of uploading the directories via FTP, you can upload the s2Member zip file using WP's form. WP Admin -> Plugins -> Add New -> Upload

After uploading s2Member, activate it. After uploading s2Member Pro, don't activate it, s2Member will do it automatically.

Re: Upgrading to the latest version ( instructions )

PostPosted: August 20th, 2011, 10:23 pm
by tokyoterri
Hi Jason:

Hope this finds you well - I am trying to upgrade s2member pro via ftp as it's too large to upgrade automatically via my WP dashboard.
the site I'm working on is: express yourself-japan.com
I'm getting prepared to actually use the site, so I have installed s2. I've done this before - I usually delete both folders and download the free and the paid modules to re-instal.
Usually it goes without a hitch, but this time, I'm getting a 'Some files could not be deleted' error when I try to delete s2member.

Please see the attached screenshots. What do I need to do?

thanks,

best,
Terri

Re: Upgrading to the latest version ( instructions )

PostPosted: August 21st, 2011, 12:09 am
by Jason Caldwell
Thanks, hope you're doing well also.

Is that a hosting control panel you're working in? If so, try deleting all of the files inside the /images/ directory and *then* delete the images directory once it's empty. Either that, or log in via FTP and delete the folder. In some cases, you may need to modify the settings in your FTP client to allow the deletion of non-empty directories. In either case, this limitation has to do with server configuration and/or client/control panel limitations. The ability to delete non-empty directories needs to be allowed, otherwise you'll work yourself to death trying to delete the files inside each directory and sub-directory. In the case of Linux/Unix, the command line function is: rm -r, for a recursive deletion.

Re: Upgrading to the latest version ( instructions )

PostPosted: August 21st, 2011, 2:49 am
by tokyoterri
Hi Jason:

Okay, I was able to delete both folders after following your advice. I've ftp'd them both into the plugin folder, and I do have S2Member wiring on the site, but I still have the pink upgrade message.

Is there anything else I can do?

thanks,

Terri

Re: Upgrading to the latest version ( instructions )

PostPosted: August 21st, 2011, 11:26 am
by Jason Caldwell
Thanks for the follow-up.
What does the upgrade message say exactly?

If you're still getting notices about needing to update s2Member Pro, make sure that you've got the proper directory structure. For instance, I've seen some site owners do this by mistake:

These are bad:
Code: Select all
/wp-content/plugins/s2member/s2member/s2member.php
/wp-content/plugins/s2member-pro/s2member-pro/pro-module.php
( notice the double nesting of s2member, not good )

This is how it should be:
Code: Select all
/wp-content/plugins/s2member/s2member.php
/wp-content/plugins/s2member-pro/pro-module.php

Re: Upgrading to the latest version ( instructions )

PostPosted: August 21st, 2011, 1:30 pm
by tokyoterri
Hi Jason:

It's the same error message I've gotten all along (see screenshot)
No, my file structure seems normal (see screenshot). Also, S2 member is working as well. It's just the updating that isn't.

Thanks for your fast responses!

best,
Terri

Re: Upgrading to the latest version ( instructions )

PostPosted: August 22nd, 2011, 12:43 pm
by Jason Caldwell
Thank you for the follow-up.
Those screenshots show /plugins/s2member/ and /plugins/s2member-pro/.
Do you have: /plugins/s2member-pro/pro-module.php

You might also want to be sure that all files were uploaded in ASCII and/or Auto mode via FTP. Be sure not to upload PHP files in binary format, ASCII format only when you upload via FTP please.

Re: Upgrading to the latest version ( instructions )

PostPosted: August 25th, 2011, 4:55 am
by markzdemetrez
Thank you for this informative discussion.

Re: Upgrading to the latest version ( instructions )

PostPosted: August 31st, 2011, 7:27 pm
by tokyoterri
Hi Jason:

Hmm, not sure why, but I deleted and reinstalled both folders again, and it works. Which rocks!

Thanks,

Best,
Terri

Re: Upgrading to the latest version ( instructions )

PostPosted: September 1st, 2011, 1:33 pm
by Cristián Lávaque
That's great, Terri! :)

Re: Upgrading to the latest version ( instructions )

PostPosted: September 28th, 2011, 12:00 pm
by rainbowsurfer
Hi Jason

I've just tried upgrading to v 119027, thought I done everything ok and when going back to the plugins page got this message:

"The plugin s2member/s2member.php has been deactivated due to an error: Plugin file does not exist."

The whole of the s2 plugin has gone from my dashboard. Is there a way to recover my settings and any ideas why this might have happened.

Thanks

Re: Upgrading to the latest version ( instructions )

PostPosted: October 1st, 2011, 9:37 pm
by Jason Caldwell
Thanks for your inquiry.
rainbowsurfer wrote:Hi Jason

I've just tried upgrading to v 119027, thought I done everything ok and when going back to the plugins page got this message:

"The plugin s2member/s2member.php has been deactivated due to an error: Plugin file does not exist."

The whole of the s2 plugin has gone from my dashboard. Is there a way to recover my settings and any ideas why this might have happened.

Thanks
Hmm, this looks like you may have uploaded s2Member before decompressing the ZIP file, or perhaps you decompressed s2Member's ZIP file distribution into a separate sub-folder. In either case, your settings should be fine, you just need to get the files back in the right location.

Be sure you have this:
/wp-content/plugins/s2member/s2member.php
and NOT this by mistake: /wp-content/plugins/s2member/s2member/s2member.php
( notice the extra sub-directory? )

Re: Upgrading to the latest version ( instructions )

PostPosted: October 2nd, 2011, 10:06 am
by rainbowsurfer
Thanks for getting back Jason.

I think the problem was caused by a Mailchimp update because once I deleted the Mailchimp plugin I was able to do an automatic update of s2 member pro. Luckily I'd followed your advice and done backups so all data remained intact.

Re: Upgrading to the latest version ( instructions )

PostPosted: October 3rd, 2011, 8:39 am
by Drakensberg Express
Jason Caldwell wrote:Thanks for your inquiry.
rainbowsurfer wrote:Hi Jason

I've just tried upgrading to v 119027, thought I done everything ok and when going back to the plugins page got this message:

"The plugin s2member/s2member.php has been deactivated due to an error: Plugin file does not exist."

The whole of the s2 plugin has gone from my dashboard. Is there a way to recover my settings and any ideas why this might have happened.

Thanks
Hmm, this looks like you may have uploaded s2Member before decompressing the ZIP file, or perhaps you decompressed s2Member's ZIP file distribution into a separate sub-folder. In either case, your settings should be fine, you just need to get the files back in the right location.

Be sure you have this:
/wp-content/plugins/s2member/s2member.php
and NOT this by mistake: /wp-content/plugins/s2member/s2member/s2member.php
( notice the extra sub-directory? )


Hi everybody,

Thanks for the lovely plugin. Now here is the thing, I have the same error as quoted with some slight exception. I saw that there was an update so I auto updated the s2member plugin without knowing about the instructions to De-activate the fail-safe thingy-majig. So all I was getting is a very bright white screen that almost destroyed my eyesight due to the fact of my LED screen on the Dashboard and on any page of my blog. So cleaver as I thought to be, I opened my FTP client and renamed the s2folder to something other than s2member. So now I was stuck the the above dilemma and had an error. Tried to reactivate the **** thing and was blinded again. Now you see, I like to think of myself as a bight spark and I deleted all s2member plugin content from my server. And by now I used Google to confirm my know-how and found out about the fail-safe stuffs. Thinking, well I deleted everything, I can just install a fresh copy and I should be sorted. Ha but no, I was fooled by my ignorance and was force to ask the pros what I am doing wrong.

1. So in short I upgraded without De-activating the step in the above instructions.
2. Re-named the s2member folder to gain access to my dashboard and received an error due to my renaming.
3. I deleted all s2member folders from the plugin folder.
4. I installed a fresh copy of s2member
5. Renamed it again to have access to my entire blog.
6. Posted this :)

So if any of you kind coders out there have a solution to me endeavor, please let me know.
It will be gracefully appreciated.

PS. I have my files all in the correct locations. Not like above.

Re: Upgrading to the latest version ( instructions )

PostPosted: October 3rd, 2011, 11:49 am
by SocialCowgirl
Got a fatal error when upgraded to v111002. Then when I downgraded to the previous version now I get a new error "In order to load the s2Member Pro Module, you need the s2Member Framework, v111002+". In the meantime my membership site is not functioning. Anyone else a Pro member or getting this?

Re: Upgrading to the latest version ( instructions )

PostPosted: October 3rd, 2011, 3:53 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: Upgrading to the latest version ( instructions )

PostPosted: October 3rd, 2011, 3:57 pm
by SocialCowgirl
Awesome Jason!!! Thanks!

Re: Upgrading to the latest version ( instructions )

PostPosted: October 4th, 2011, 2:35 am
by Drakensberg Express
Thanks so much for attending to the errors in you wonderful peace of software.
I am back in the world of members. mow all I need is a few more of them I then I'll get the Pro version

Re: Upgrading to the latest version ( instructions )

PostPosted: October 4th, 2011, 2:46 am
by Cristián Lávaque
Glad you got it back to work. Thanks for the kudos! :)

Re: Upgrading to the latest version ( instructions )

PostPosted: October 7th, 2011, 8:00 pm
by Jason Caldwell
SocialCowgirl wrote:Awesome Jason!!! Thanks!

Thank you, and we ARE very sorry for the issue. We'll try very hard not to let this happen again.

Re: Upgrading to the latest version ( instructions )

PostPosted: October 31st, 2011, 5:19 pm
by luthimir
Edit:

I couldn't find a spot to just delete my post so I'll just say that I was victim of uploading s2Member to
Code: Select all
wp-content/plugins/s2member/s2member
e.g. I had the folders listed twice in my FTP directory. It's an easy mistake to make when installing manually, as the folders unzip to s2member/s2member/etc.

Feel free to delete this post if you see fit, I was perplexed before, but now I have solved my own problem.