Question

I have no knowledge of Wordpress (so please accept my excuse for asking weird question). I have a website built with wordpress and used Avada theme. Due to website movement, we updated all urls to the new one and everything was perfect; except one url which was in background of the theme;

We found the url and changed it directly in Database using phpmyadmin (data was serialized)

then the header was screwed up. The question is how can I bring it back as previous; I modified the data in DB and set the values as it was but still it's not showing my header.

Any idea, how can I return it back? Appreciate it in advance.

Was it helpful?

Solution

If you have backup of serialize array use base64_encode function. You can do it also online http://www.tools4noobs.com/online_php_functions/base64_encode/.

Encode it then go to wp-admin->appearance->theme options-> backup past encoded string there and click import. Will work I just checked :)

Regards.

OTHER TIPS

After serializing array php is keeping also string length , so problem is that you changed string but forgot to change string size.

For example at first you have string like this `

a:1:{s:4:"Test";s:3:"url";}

Then you changed it to

a:1:{s:4:"Test";s:3:"new_url";}

But you also should change s:3, because now php can't unserialize this string after changing it to this it will work

a:1:{s:4:"Test";s:7:"new_url";}

Regards

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top