Title: PHP Error
Last modified: September 14, 2019

---

# PHP Error

 *  Resolved [zigpress](https://wordpress.org/support/users/zigpress/)
 * (@zigpress)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-345/)
 * My logs show this error when the plugin is active:
 * PHP Warning: array_merge(): Argument #2 is not an array in /XXX/XXX/XXX/wp-content/
   plugins/wp-pagenavi/scb/Options.php on line 62
 * Can I suggest you check the array_merge parameters before making the function
   call?

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-345/#post-11931140)
 * That is the framework that the plugin is using. But how come the settings for
   this plugin is empty? It supposes to be created when the plugin gets activated.
    -  This reply was modified 6 years, 8 months ago by [Lester Chan](https://wordpress.org/support/users/gamerz/).
 *  Thread Starter [zigpress](https://wordpress.org/support/users/zigpress/)
 * (@zigpress)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-345/#post-11931306)
 * I have no idea. I inherited the site when I took on a new client. But there should
   always be validation before calling a function like array_merge, to avoid warnings
   like this.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-345/#post-11933592)
 * Agreed, [https://github.com/lesterchan/wp-scb-framework/commit/e0b4bc753a9bdf2da0251016267cc249418ff1d5](https://github.com/lesterchan/wp-scb-framework/commit/e0b4bc753a9bdf2da0251016267cc249418ff1d5)
   will release it for the next update.
 *  Thread Starter [zigpress](https://wordpress.org/support/users/zigpress/)
 * (@zigpress)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-345/#post-11934894)
 * That’s great, many thanks.

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

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-pagenavi/assets/icon.svg?rev=977997)
 * [WP-PageNavi](https://wordpress.org/plugins/wp-pagenavi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [zigpress](https://wordpress.org/support/users/zigpress/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-345/#post-11934894)
 * Status: resolved