Title: [Plugin: WP SES] major issue
Last modified: August 20, 2016

---

# [Plugin: WP SES] major issue

 *  Resolved [cogmios](https://wordpress.org/support/users/cogmios/)
 * (@cogmios)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-ses-major-issue/)
 * After a user uses the form it shows on my site:
 * Warning: array_merge(): Argument #1 is not an array in /site/wp-content/plugins/
   wp-ses/ses.class.php on line 613
 * for all users sending a mail
 * [http://wordpress.org/extend/plugins/wp-ses/](http://wordpress.org/extend/plugins/wp-ses/)

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

 *  Thread Starter [cogmios](https://wordpress.org/support/users/cogmios/)
 * (@cogmios)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-ses-major-issue/#post-2912310)
 * So this is about:
 * `$this->to = array_merge($this->to, $to);`
 * Apparently even though $this->to has been defined as an array() it is not recognized
   as an array.
 * On array_merge ([http://php.net/manual/en/function.array-merge.php](http://php.net/manual/en/function.array-merge.php))
   I read why: this behavior has been changed since php version 5, so i changed 
   it to:
 * `$this->to = array_merge((array)$this->to, $to);`
 * and now it works 🙂
 * POSSIBLY this should be changed in the original class
 * p.s. I also looked through that code somewhat more and there are some more changes
   you would want to do e.g. do not use curl but instead use WP build-in get request,
   als use the WP options, maybe use classes instead… etc… I think im going to fork
   this one.
 *  Plugin Contributor [Sylvain Deaure](https://wordpress.org/support/users/sylvaindeaure/)
 * (@sylvaindeaure)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-ses-major-issue/#post-2912499)
 * Thanks for the Help, Cogmios.
 * I’m back online and will release an update with the last version of the php-aws-
   ses class.
    Agree with the use of the build in WP request instead of curl. Was
   just easier to include the class without rewriting lot of it’s code.
 * Any suggest is welcome, thanks !

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

The topic ‘[Plugin: WP SES] major issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-ses/assets/icon-256x256.jpg?rev=2070048)
 * [WP Offload SES Lite](https://wordpress.org/plugins/wp-ses/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ses/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ses/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ses/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ses/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ses/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sylvain Deaure](https://wordpress.org/support/users/sylvaindeaure/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-ses-major-issue/#post-2912499)
 * Status: resolved