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™

Where are s2member settings saved

s2Member Plugin. A Membership plugin for WordPress®.

Where are s2member settings saved

Postby totomobile » April 28th, 2011, 2:33 pm

When I dump the database and move all the files from the plugin folder, all my settings are still lost.
Is there a special procedure for moving s2 around? I want to set it all up locally and then safely move all of the settings up to production.

thanks
T
User avatar
totomobile
Registered User
Registered User
 
Posts: 20
Joined: September 22, 2010

Re: Where are s2member settings saved

Postby Cristián Lávaque » April 28th, 2011, 3:52 pm

Hi Toto.

Have you enabled the deactivation safeguards? WP Admin -> s2Member -> General Options -> Deactivation Safeguards
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Where are s2member settings saved

Postby totomobile » April 28th, 2011, 4:23 pm

Activated that safeguard, but still not working.

After a little more digging I found the ws_plugin__s2member_options field in the wp_options table.

All the settings are still there, but they are just not being picked up..

The only change to the database has been to search and replace host1.com to host1.local, and this seems to be breaking all the settings

thanks
T
User avatar
totomobile
Registered User
Registered User
 
Posts: 20
Joined: September 22, 2010

Re: Where are s2member settings saved

Postby Cristián Lávaque » April 28th, 2011, 4:57 pm

Did you replace every host1.com with host2.com for every setting and still have the problem?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Where are s2member settings saved

Postby totomobile » April 28th, 2011, 4:59 pm

I've narrowed it down to the serialized arrays in the options. When you replace host1.com with host1.local you are changing the string length, and thus the un-serialize method fails. Once I fixed the string length it works, but it's pretty tedious. I don't think there is much you guys can do about this particular issue, although a nice import/export options function would be great!

thanks for your help
T
User avatar
totomobile
Registered User
Registered User
 
Posts: 20
Joined: September 22, 2010

Re: Where are s2member settings saved

Postby Cristián Lávaque » April 28th, 2011, 5:17 pm

I'm glad you figured it out. Thanks for the update. :)

Yeah, changing hosts is not something people normally do, but I agree that a tool for such an event would be nice. I'll forward your suggestion to Jason. Thanks!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Where are s2member settings saved

Postby totomobile » April 28th, 2011, 5:29 pm

Thanks Cristián. My company just purchased the Dev License for S2 Pro so it would make a good addition to that I think :)
User avatar
totomobile
Registered User
Registered User
 
Posts: 20
Joined: September 22, 2010

Re: Where are s2member settings saved

Postby Cristián Lávaque » April 28th, 2011, 5:41 pm

Awesome! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Where are s2member settings saved

Postby Jason Caldwell » April 29th, 2011, 6:27 pm

Thanks for the great suggestion.
~ I'll see what we can do about this in a future release.
@TODO ( possibly ): options import/export ( specific to s2Member )
This is now possible with s2Member Pro v110815+.
~ 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: Where are s2member settings saved

Postby highfive » August 9th, 2011, 6:58 pm

I would think trying to move a setup from a demo environment to a production environment would benefit from this. It is very tedious to reset things up. I've given up and had to start working directly on my production environment to avoid this issue with Wordpress in general to some degree.

My question is this. I have Network install going and was testing stuff on a separate blog. How likely am I going to be able to copy this setup by copying the data from this field to the same field in the other blog?

Eventually, I am hoping that the New Blog Template plugin will handle this automatically for me, but I don't know if it will given some of the issues mentioned above.
User avatar
highfive
Registered User
Registered User
 
Posts: 14
Joined: August 8, 2011

Re: Where are s2member settings saved

Postby Jason Caldwell » August 9th, 2011, 9:12 pm

Thanks for your vote on this feature.
My question is this. I have Network install going and was testing stuff on a separate blog. How likely am I going to be able to copy this setup by copying the data from this field to the same field in the other blog?
I don't think you'll have any trouble doing that, just be sure to change the paths leading to any images/media, just so they reflect the proper instance of the blog you're setting up. Otherwise, you should be fine.
~ 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: Where are s2member settings saved

Postby highfive » August 10th, 2011, 6:43 pm

Well for whatever reason it wouldn't work. I tried putting in the contents of the field unchanged as well as with the URLs modified and neither got picked up. It did work when I set it back to the original string at least. This was just through pasting it in through Webmin's MySQL tool.

The New Blog Template did copy the settings across, at least the ones I checked. It didn't correctly update things where the name of the blog was used directly. I'm not sure why anyone would want to use this on a blog farm when every single one has to be manually configured. You can't even write something to go into the database and copy or fix stuff because everything is these crazy serialized arrays or whatever.
User avatar
highfive
Registered User
Registered User
 
Posts: 14
Joined: August 8, 2011

Re: Where are s2member settings saved

Postby Jason Caldwell » August 10th, 2011, 6:52 pm

I'm sorry to hear that. Well, hopefully this will become easier once option import/export is provided by WordPress, or by s2Member itself, which we ARE planning to make possible. ~ Thanks for your patience.
~ 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: Where are s2member settings saved

Postby Cristián Lávaque » August 17th, 2011, 1:43 am

Jason just added a new feature to s2Member Pro in the latest release, to export/import s2Member's settings. WP Admin -> s2Member -> Import/Export -> s2Member Options

From the changelog:
(s2Member Pro) Options Import/Export. s2Member Pro now makes it possible to export your s2Member options, in their entirety, and then import them into another instance of WordPress®. For further details, please check your Dashboard, under: s2Member -> Import/Export.


I hope it helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Where are s2member settings saved

Postby highfive » August 22nd, 2011, 4:59 pm

Cool, I'll check it out. Thanks!
User avatar
highfive
Registered User
Registered User
 
Posts: 14
Joined: August 8, 2011

Re: Where are s2member settings saved

Postby sguk2011 » September 7th, 2011, 6:35 am

HI, I'm trying to move my site from localhost to the server by exporting the database and changing localhost to the domain. WE are suffering big problems, s2member loses all the settings. Using the export function from the local copy and uploading to the server still won't load the settings. Such as shame when the site is completed and looks awesome, I'm nearly having a heart attack, the client needs the site live today.... I"m also having problems with simplepress, I don;t normally get these problems when moving the database
User avatar
sguk2011
Registered User
Registered User
 
Posts: 28
Joined: September 2, 2011

Re: Where are s2member settings saved

Postby sguk2011 » September 7th, 2011, 6:36 am

strangely enough, if i move the database from one mamp localhost to another, it's fine so it must be something to do with changing the domain
User avatar
sguk2011
Registered User
Registered User
 
Posts: 28
Joined: September 2, 2011

Re: Where are s2member settings saved

Postby Cristián Lávaque » September 8th, 2011, 12:39 am

Do you have Deactivation Safeguards enabled? WP Admin -> s2Member -> General Options -> Deactivation Safeguards

If you have s2Member Pro, you can try the options export tool. WP Admin -> s2Member -> Import/Export -> Options

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Where are s2member settings saved

Postby sguk2011 » September 8th, 2011, 12:48 am

Thanks Cristian, yep I did exactly that and all up and running now. I think it was something to do with the "serialised string length" as the same thing also affected Simplepress config settings. Unfortunately they don;t have an export/import!!
User avatar
sguk2011
Registered User
Registered User
 
Posts: 28
Joined: September 2, 2011

Re: Where are s2member settings saved

Postby Cristián Lávaque » September 9th, 2011, 12:41 am

Ah yes, the serialized arrays are the tricky part. I'm glad the export/import tool helped! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron