Title: PHP Warning: array_merge() &#8230;
Last modified: July 26, 2022

---

# PHP Warning: array_merge() …

 *  Resolved [askpivot](https://wordpress.org/support/users/askpivot/)
 * (@askpivot)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/)
 * Hi! We are receiving this PHP warning multiple times a day, hoping a fix can 
   be pushed soon:
 * [29-Jun-2022 12:28:14 UTC] PHP Warning: array_merge(): Expected parameter 1 to
   be an array, string given in …/public_html/wp-content/plugins/seriously-simple-
   podcasting/php/classes/controllers/class-frontend-controller.php on line 1014

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

 *  Thread Starter [askpivot](https://wordpress.org/support/users/askpivot/)
 * (@askpivot)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/#post-15909267)
 * Update, still getting multiple PHP Warnings a day, but the line number has shifted.
   Now it says
    [11-Aug-2022 05:47:15 UTC] PHP Warning: array_merge(): Expected 
   parameter 1 to be an array, string given in /home/customer/www/evangelist.global/
   public_html/wp-content/plugins/seriously-simple-podcasting/php/classes/controllers/
   class-frontend-controller.php on line 690
 * It would appear this line
    `$tag_archive_post_types = apply_filters( 'ssp_tag_archive_post_types',
   array( 'post', SSP_CPT_PODCAST ) );` is returning not an array.
    -  This reply was modified 3 years, 9 months ago by [askpivot](https://wordpress.org/support/users/askpivot/).
 *  Plugin Author [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * (@zahardoc)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/#post-15920567)
 * Hello [@askpivot](https://wordpress.org/support/users/askpivot/)!
 * Did you ask someone for any plugin customization?
    It looks like somewhere in
   your code the filter ‘ssp_tag_archive_post_types’ is misused, and returns a string
   instead of the array.
 * Please try to look for something like `add_filter('ssp_tag_archive_post_types'..."`
   in your code.
 * Also, disabling any warnings on your production sites is always a good idea. 
   To do it, please check your wp-config.php file, and make sure that WP_DEBUG is
   disabled:
 * `define( 'WP_DEBUG', false );`
 * Best regards,
 * Sergiy, development team.
    -  This reply was modified 3 years, 9 months ago by [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/).
 *  Plugin Author [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * (@zahardoc)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/#post-15923795)
 * [@askpivot](https://wordpress.org/support/users/askpivot/)
 * Anyway, thank you for bringing it to our attention. I’m going to add some additional
   checks there to prevent such warnings in the future.
 *  Thread Starter [askpivot](https://wordpress.org/support/users/askpivot/)
 * (@askpivot)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/#post-15971265)
 * Okay, I do not see any calls anywhere in our code that apply to the filter ‘ssp_tag_archive_post_types’.
 * These notices are in our error logs, not public facing.
 * Thank you! Hoping those safeguards you add remove this notice for us. 🙂
 *  Thread Starter [askpivot](https://wordpress.org/support/users/askpivot/)
 * (@askpivot)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/#post-15971282)
 * Marking resolved.
 *  Plugin Author [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * (@zahardoc)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/#post-15995613)
 * [@askpivot](https://wordpress.org/support/users/askpivot/)
 * Yes, we resolved it in our recent plugin release. Thank you for your feedback
   and enjoy the plugin!

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

The topic ‘PHP Warning: array_merge() …’ is closed to new replies.

 * ![](https://ps.w.org/seriously-simple-podcasting/assets/icon-256x256.png?rev=
   970355)
 * [Seriously Simple Podcasting](https://wordpress.org/plugins/seriously-simple-podcasting/)
 * [Support Threads](https://wordpress.org/support/plugin/seriously-simple-podcasting/)
 * [Active Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seriously-simple-podcasting/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Serhiy Zakharchenko](https://wordpress.org/support/users/zahardoc/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-array_merge-6/#post-15995613)
 * Status: resolved