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™

S2 custom fields don't import

s2Member Plugin. A Membership plugin for WordPress®.

S2 custom fields don't import

Postby man-O-media » August 15th, 2011, 3:55 pm

OK... so I don't get it...

I am moving my site to a new host.
Although I tried to do a full move, I could not get the site to open at the new location.

Mind you, I tried the full move more as an experiment. I had already kind of decided to somewhat manually make the move meaning rebuilding the site at the new host as the old host has been nothing but trouble with old versions of php, incompatible settings on the server causing odd behavior and just generally poor customer service and lousy features.

Anyway, I exported the pages, posts etc. using the wordpress export function
I exported the users using the S2pro export
I created the new wp install at the new host
I installed the plugins including S2 with the original Encryption Key
I made the customization changes to my theme
I edited the csv file to remove the ID numbers but kept the quotes as I understood S2 will only import non existant users if there is no ID, otherwise it wants to match IDs.

All of that went great and the users imported but none of the s2 custom fields came in…

So where did I go wrong?


Thanks, DP
User avatar
man-O-media
Experienced User
Experienced User
 
Posts: 117
Joined: February 10, 2011

Re: S2 custom fields don't import

Postby man-O-media » August 15th, 2011, 6:19 pm

OK... Under the assumption that I would have had to go in and edit the fields anyway to choose he proper field type and such, I bit the bullet and manually recreated all of the custom fields and have imported all of the users...

It would be nice if there was an easier way to do this but... Such is life I guess.

DP
User avatar
man-O-media
Experienced User
Experienced User
 
Posts: 117
Joined: February 10, 2011

Re: S2 custom fields don't import

Postby Cristián Lávaque » August 17th, 2011, 1:42 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: S2 custom fields don't import

Postby man-O-media » August 18th, 2011, 8:41 am

Cristián Lávaque wrote: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
Good timing, almost :P

So by the sound of it, the serialized export file will contain not only the user data but also the custom field functionality and formatting? So for example, if the true/false data in "my_interests" are generated by a multi check box on the registration form, when you import the serialized file, the true/false data will import along with the control type and its options?

And there is no mention about passwords so I guess they are also included in the serialized data?

Yea, I think that would have done the trick :D

  • Will the serialized import still merge with the new destination or will it be an overwrite?
  • Will pre-existing custom fields (fields in both databases) in the destination database trump incoming data fields, ie, the options at the destination out rule the incoming options?
  • Will new custom fields, fields only in the destination database, survive the import?

Thanks, DP
User avatar
man-O-media
Experienced User
Experienced User
 
Posts: 117
Joined: February 10, 2011

Re: S2 custom fields don't import

Postby Cristián Lávaque » August 18th, 2011, 2:49 pm

I was talking about options import/export, not users. And users export doesn't include passwords.

man-O-media wrote: * Will the serialized import still merge with the new destination or will it be an overwrite?
* Will pre-existing custom fields (fields in both databases) in the destination database trump incoming data fields, ie, the options at the destination out rule the incoming options?
* Will new custom fields, fields only in the destination database, survive the import?


I'll email Jason about these.
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: S2 custom fields don't import

Postby Jason Caldwell » August 18th, 2011, 7:57 pm

Thanks for the heads up on this thread.
When you import a serialized array of s2Member options, those options will override/trump any existing options that are configured on that installation, completely re-configuring all options/data/credentials/custom field configuration/etc on your new installation, and dumping anything that was configured prior. In other words, it resets your configuration to that which is provided by the export file ( i.e. the export.s2e file ) that you exported previously with s2Member Pro. s2Member does NOT do any merging.
~ 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


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests

cron