Title: Code Change in 3.5
Last modified: August 20, 2016

---

# Code Change in 3.5

 *  [Jim Camomile](https://wordpress.org/support/users/castlemediadevs/)
 * (@castlemediadevs)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/code-change-in-35/)
 * Hi,
 * 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.
 * [http://wordpress.org/extend/plugins/blog-copier/](http://wordpress.org/extend/plugins/blog-copier/)

The topic ‘Code Change in 3.5’ is closed to new replies.

 * ![](https://ps.w.org/blog-copier/assets/icon-256x256.png?rev=985730)
 * [Blog Copier](https://wordpress.org/plugins/blog-copier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blog-copier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blog-copier/)
 * [Active Topics](https://wordpress.org/support/plugin/blog-copier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blog-copier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blog-copier/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jim Camomile](https://wordpress.org/support/users/castlemediadevs/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/code-change-in-35/)
 * Status: not resolved