Title: PHP Warning: array_merge()
Last modified: August 1, 2017

---

# PHP Warning: array_merge()

 *  [geez1](https://wordpress.org/support/users/geez1/)
 * (@geez1)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_merge-2/)
 * I am getting this php error
    “PHP Warning: array_merge(): Argument #2 is not 
   an array in …..wp-content/plugins/easy-watermark/classes/class-ew-settings.php
   on line 96”
 * The relevant plugin code is as follows;
    foreach($this->tabs as $name => $caption){
   $section = get_option($plugin->getSlug() . ‘-settings-‘ . $name); LN96 $this-
   >settings[$name] = array_merge(self::$defaults[$name], $section); }
 * Can you suggest a correction? Thanks.

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

 * ![](https://ps.w.org/easy-watermark/assets/icon.svg?rev=2153955)
 * [Easy Watermark](https://wordpress.org/plugins/easy-watermark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-watermark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-watermark/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-watermark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-watermark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-watermark/reviews/)

## Tags

 * [array_merge](https://wordpress.org/support/topic-tag/array_merge/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [geez1](https://wordpress.org/support/users/geez1/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-array_merge-2/)
 * Status: not resolved