Blog Copier
Code Change in 3.5 (1 post)

  1. Jim Camomile
    Posted 2 years ago #


    There are 3 errors when copying a blog after moving to 3.5

    Missing argument 2 for wpdb::prepare(), called in /home/xxxxx/public_html/wp-content/plugins/blog-copier/blog-copier.php on line 296

    same error for line 300 and 304.

    I checked forums and see that 3.5 updated $wpdb->prepare so that it now requires at least a second parameter.

    So, in the case of line 300:
    $query = $wpdb->prepare("CREATE TABLE IF NOT EXISTS {$newtable} LIKE {$table}");

    becomes something like:

    $query = $wpdb->prepare("CREATE TABLE IF NOT EXISTS %s LIKE %s", $newtable, $table);

    I tried several attempts to make this work with the new structure of wpdb->prepare but have not been able to get it to work.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Blog Copier
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.