Title: do_rename() Array to String Conversion Error
Last modified: May 7, 2025

---

# do_rename() Array to String Conversion Error

 *  Resolved [TheNerdCave](https://wordpress.org/support/users/thenerdcave/)
 * (@thenerdcave)
 * [1 year ago](https://wordpress.org/support/topic/do_rename-array-to-string-conversion-error/)
 * I was getting an Array to String conversion error in _/wp-includes/class-wp-query.
   php on line: 1115_. Once I was able to recreate the error I traced it back to**
   line 703** `post_types['revision'] = array('post_type' => $post_types);`, in 
   the** Phoenix Media Rename Version 3.12.8 class-media-rename.php** files `do_rename()`
   method. Changing this to `post_types['revision'] = 'revision';` fixed the problem.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [crossi72](https://wordpress.org/support/users/crossi72/)
 * (@crossi72)
 * [1 year ago](https://wordpress.org/support/topic/do_rename-array-to-string-conversion-error/#post-18460892)
 * Hi [@thenerdcave](https://wordpress.org/support/users/thenerdcave/),
   I just released
   version 3.12.9 that fixed the issue.
 * Thank you for reporting
   C.
 *  Thread Starter [TheNerdCave](https://wordpress.org/support/users/thenerdcave/)
 * (@thenerdcave)
 * [1 year ago](https://wordpress.org/support/topic/do_rename-array-to-string-conversion-error/#post-18461675)
 * Thank you and no problem.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘do_rename() Array to String Conversion Error’ is closed to new replies.

 * ![](https://ps.w.org/phoenix-media-rename/assets/icon-256x256.png?rev=3120623)
 * [Phoenix Media Rename](https://wordpress.org/plugins/phoenix-media-rename/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/phoenix-media-rename/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/phoenix-media-rename/)
 * [Active Topics](https://wordpress.org/support/plugin/phoenix-media-rename/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phoenix-media-rename/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phoenix-media-rename/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [TheNerdCave](https://wordpress.org/support/users/thenerdcave/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/do_rename-array-to-string-conversion-error/#post-18461675)
 * Status: resolved