Page 1 of 1

S2 custom fields don't import

PostPosted: August 15th, 2011, 3:55 pm
by man-O-media
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

Re: S2 custom fields don't import

PostPosted: August 15th, 2011, 6:19 pm
by man-O-media
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

Re: S2 custom fields don't import

PostPosted: August 17th, 2011, 1:42 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 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. :)

Re: S2 custom fields don't import

PostPosted: August 18th, 2011, 8:41 am
by man-O-media
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

Re: S2 custom fields don't import

PostPosted: August 18th, 2011, 2:49 pm
by Cristián Lávaque
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.

Re: S2 custom fields don't import

PostPosted: August 18th, 2011, 7:57 pm
by Jason Caldwell
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.