Support » Plugin: Better Search Replace » Plugin failure on wp_options table

  • bojanjosifoski



    So I’ve been using this plugin for ages now and it’s been super cool all the time. So thank you for that.

    However, there seems to be an issue on one site that I am trying to change URLs on.

    When I run the plugin against the wp_options table that is around 1.5MB in the plugin outputs a 500 error. So I dug into the plugin and I was able to output the data in an error txt file to locate why the issue is happening.

    So I changed the Max Page Size to only 1 and also edited the /includes/class-bsr-db.php file on line 220 to insert my debugging code:

    if($row[‘option_name’] == ‘uninstall_plugins’){
    $file = plugin_dir_path( __FILE__ ) . ‘/errors.txt’;
    $current = file_get_contents($file);
    $ott = ob_get_clean();
    $current .= $ott.”\n”;
    file_put_contents($file, $current);

    So this code above outputs the rows that are processed by the plugin for example:

    array(4) {
    string(6) “105296”
    string(30) “_transient_w3tc.verify_plugins”
    string(1) “1”
    string(2) “no”

    But when the plugin gets to this option name “uninstall_plugins” it basically is unable to process the data, now I overcome the issue by skipping just that option.

    Here is the data that is in that table

    O:8:”stdClass”:3:{s:9:”lastCheck”;i:1572007478;s:14:”checkedVersion”;s:6:”3.2.10″;s:6:”update”;O:8:”stdClass”:9:{s:2:”id”;i:0;s:4:”slug”;s:7:”aioseop”;s:7:”version”;s:6:”3.2.10″;s:8:”homepage”;s:26:””;s:6:”tested”;s:5:”5.2.4″;s:12:”download_url”;s:78:”″;s:14:”upgrade_notice”;s:26:”Improvements and bug fixes”;s:8:”filename”;s:47:”all-in-one-seo-pack-pro/all_in_one_seo_pack.php”;s:12:”translations”;a:0:{}}}

    I just want to know why its craching only on this, is there something wrong in the serialized data?


  • You must be logged in to reply to this topic.