Page 1 of 1
Where are s2member settings saved
Posted:
April 28th, 2011, 2:33 pm
by totomobile
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
Re: Where are s2member settings saved
Posted:
April 28th, 2011, 3:52 pm
by Cristián Lávaque
Hi Toto.
Have you enabled the deactivation safeguards? WP Admin -> s2Member -> General Options -> Deactivation Safeguards
Re: Where are s2member settings saved
Posted:
April 28th, 2011, 4:23 pm
by totomobile
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
Re: Where are s2member settings saved
Posted:
April 28th, 2011, 4:57 pm
by Cristián Lávaque
Did you replace every host1.com with host2.com for every setting and still have the problem?
Re: Where are s2member settings saved
Posted:
April 28th, 2011, 4:59 pm
by totomobile
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
Re: Where are s2member settings saved
Posted:
April 28th, 2011, 5:17 pm
by Cristián Lávaque
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!
Re: Where are s2member settings saved
Posted:
April 28th, 2011, 5:29 pm
by totomobile
Thanks Cristián. My company just purchased the Dev License for S2 Pro so it would make a good addition to that I think
Re: Where are s2member settings saved
Posted:
April 28th, 2011, 5:41 pm
by Cristián Lávaque
Awesome!
Re: Where are s2member settings saved
Posted:
April 29th, 2011, 6:27 pm
by Jason Caldwell
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+.
Re: Where are s2member settings saved
Posted:
August 9th, 2011, 6:58 pm
by highfive
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.
Re: Where are s2member settings saved
Posted:
August 9th, 2011, 9:12 pm
by Jason Caldwell
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.
Re: Where are s2member settings saved
Posted:
August 10th, 2011, 6:43 pm
by highfive
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.
Re: Where are s2member settings saved
Posted:
August 10th, 2011, 6:52 pm
by Jason Caldwell
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.
Re: Where are s2member settings saved
Posted:
August 17th, 2011, 1:43 am
by Cristián Lávaque
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 OptionsFrom 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.
Re: Where are s2member settings saved
Posted:
August 22nd, 2011, 4:59 pm
by highfive
Cool, I'll check it out. Thanks!
Re: Where are s2member settings saved
Posted:
September 7th, 2011, 6:35 am
by sguk2011
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
Re: Where are s2member settings saved
Posted:
September 7th, 2011, 6:36 am
by sguk2011
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
Re: Where are s2member settings saved
Posted:
September 8th, 2011, 12:39 am
by Cristián Lávaque
Do you have Deactivation Safeguards enabled?
WP Admin -> s2Member -> General Options -> Deactivation SafeguardsIf you have s2Member Pro, you can try the options export tool.
WP Admin -> s2Member -> Import/Export -> OptionsI hope that helps.
Re: Where are s2member settings saved
Posted:
September 8th, 2011, 12:48 am
by sguk2011
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!!
Re: Where are s2member settings saved
Posted:
September 9th, 2011, 12:41 am
by Cristián Lávaque
Ah yes, the serialized arrays are the tricky part. I'm glad the export/import tool helped!