[resolved] major issue (3 posts)

  1. cogmios
    Posted 3 years ago #

    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


  2. cogmios
    Posted 3 years ago #

    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) 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.

  3. Sylvain Deaure
    Plugin Author

    Posted 2 years ago #

    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 !

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP SES
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.