• Resolved Rob

    (@rob70)


    Hello, Running WP 5.2.2

    I migrate mywebsite.eu to test.localhost.
    All working fine only except my widget_text.
    I import test.localhost in phpMyadmin.
    I check, all widget_text is in place.
    When I run my wordpress program (first run).
    My widget_text is replace by “a:1:{s:12:”_multiwidget”;i:1;}”.
    I lost all my widget_text during the first run
    I try to found why this happend, can’t find

    QST Can somebody help me out why my widget_text is replace?

    Thx Rob
    PS There is NO difference between localhost or a real domain / address
    It happend when I migrate mywebsite.eu to a other domain

    • This topic was modified 5 years, 6 months ago by Rob.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Sometimes that just happens. The widget data you are seeing is serialized data so something clobbered whatever mechanism should have rendered that or should have interpreted that data into the result.

    The quick fix is to just manually repair that text by copying from the old site and then pasting it to the new.

    Sometimes the old site is gone though… Let me introduce you to the Wayback Machine…

    https://archive.org/web/

    The Wayback Machine can be a real lifesaver. Use it when you can.

    Another option is Google cache. I seldom need that but others have used it also. I’ll leave it up to you to explore that and see if it helps if you ever need it.

    Thread Starter Rob

    (@rob70)

    Hello jnashhawkins, thx for your reply

    >Sometimes that just happens
    Yes, thanks for your explanation, agree

    >The quick fix is to just manually repair that text by copying from the old site and then pasting it to the new.

    Yes, I copy the SQL widget_text line with all there components and it works well.

    The removing of the widget_text is done by wordpress files.php

    wordpress\wp-admin\includes\upgrade.php
    wordpress\wp-includes\class-wp-widget.php
    wordpress\wp-includes\widgets.php

    Witch one is responsible for it I don’t know

    >Wayback Machine, I use Notepad++ works for perfect.

    Att: When I use the better search and replace plugin.
    It don’t happend, it is I ok, all widget_text is preserved

    Thx Rob, Poland

    • This reply was modified 5 years, 6 months ago by Rob.
    • This reply was modified 5 years, 6 months ago by Rob.
    Thread Starter Rob

    (@rob70)

    Final solution 3 steps

    01 WordPress, better search and replace
    https://mywebsite.eu to https://test.localhost

    02 Notepad++ Find and replace
    https:\\/\\/mywebsite.eu to https:\\/\\/test.localhost

    03 Notepad++ Find mywebsite.eu
    IF exist find a solution

    Working fine and keep my widget_text in place

    Thx Robert, Poland

    • This reply was modified 5 years, 6 months ago by Rob.
    • This reply was modified 5 years, 6 months ago by Rob.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Migration to Localhost I lost my _widget_text’ is closed to new replies.