Plugin Author
YOP
(@yourownprogrammer)
Hi spankmaster79,
Please give us more details on how you make the export/import? Do you use the Vote IDs?
Regards,
YOP Team
Plugin Author
YOP
(@yourownprogrammer)
Hey spankmaster79,
The poll’s general settings are stored in wo_options as option_name = yop_poll_options
Best wishes,
YOP Team
Thx for the hint to yop_poll_options.
I move the complete wordpress code to the server. Import the data in the database via a dump. Then execute a move_wordpress.sql which changes all the wordpress hard written domain names to the correct ones.
The problem is, that the domain is saved in the options as serialized String from an Array/Object, which makes the count for the string incorrect.
I’ve added the following lines to my move_wordpress.sql and it works now
UPDATE wp_options SET option_value =
replace(option_value, ‘s:84:”http://older-differentlength-domain/wp-content/themes/twentytwelve/images/loader.gif’, ‘s::66″http://new-domain/wp-content/themes/twentytwelve/images/loader.gif’);
UPDATE wp_options SET option_value =
replace(option_value, ‘s:53:”http://older-differentlength-domain/yop-poll-archive/’, ‘s:35:”http://new-domain/yop-poll-archive/’);
UPDATE wp_options SET option_value =
replace(option_value, ‘s:42:”yop-poll@older-differentlength-domain’, ‘s:42:”yop-poll@new-domain’);