• Deborah

    (@ssar17)


    I am using Interconnectit.com search and replace to change the links in my db on my localhost so I can run a local copy of my site for development. I cannot get past an error.
    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Error:
    icit_srdb::recursive_unserialize_replace(): The script tried to execute a method or access a property of an incomplete object.

    The code appears to be:
    elseif ( is_object( $data ) ) {
    // $data_class = get_class( $data );
    $_tmp = $data; // new $data_class( );
    $props = get_object_vars( $data );
    foreach ( $props as $key => $value ) {
    $_tmp->$key = $this->recursive_unserialize_replace( $from, $to, $value, false );
    }

    $data = $_tmp;
    unset( $_tmp );
    }

    I am not a php programmer (yet), so I do not know what I need to change here to get this to work. I have searched on the internet and found that Yoast can cause these issues (maybe?) and turned off the xml site maps before exporting my database. I uploaded this newly exported database into my localhost db but still get this problem. I have fixed three other problems but cannot get past this one. Please give me clear instruction as I am a newbie and need the extra help. Thank you for your help and patience.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Try using the plugin “better search replace” instead. It’s basically the same code, but may work better for you. Or, if you have command line access, use wp-cli’s search-replace command.

Viewing 1 replies (of 1 total)
  • The topic ‘icit_srdb::recursive_unserialize_replace()’ is closed to new replies.