example – fix which serialized number of text widget after moving site
-
Via these forums I am getting the idea that if I replace a certain number in the serialized database field: options, widget_text, I can recover functionality of my text widgets, as the website has moved to a new directory thus changing the path length.
Two questions:(1) Which number(s) do I replace in the below serialized string to match the new path length? (and/or what else could I do?):
a:5:{i:2;a:3:{s:5:”title”;s:0:””;s:4:”text”;s:996:”
<div style= …text widget code…</div>
“;s:6:”filter”;b:0;}s:12:”_multiwidget”;i:1;}(2) At the least, I can copy/paste the text/html code from this db field into a new widget so I don’t have to rebuild from scratch, which is great! However — before adding the rebuilt widgets — can I safely delete all data currently in Options, widget_text, considering it will never display and thus is worthless baggage? (A precautionary question – still kinda new in WP db).
I did not know to backup text widgets to a notepad before moving!
Thank you!
- The topic ‘example – fix which serialized number of text widget after moving site’ is closed to new replies.