PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

explode() expects parameter 2

  1. balloontwister
    Member

    I have a form sending a payment to PayPal, which works and gives me an error when I return from PayPal back to the page. Here's the error:

    Warning: explode() expects parameter 2 to be string, array given in /home/todd/public_html/members/heights/wp-content/plugins/gravityforms/common.php on line 1504

    Is this something I should worry about? If not, can I suppress that error from showing to end users?

    -Todd

    Posted 7 years ago on Thursday February 14, 2013 | Permalink
  2. I believe this warning has been fixed in our trunk version, so it will be in the next release. Thank you for bringing it to our attention. I'll make sure the development team sees this.

    In the meantime, until a new version is released with the fix for this warning, you should suppress PHP warnings from being shown to the visitor. This will be done in your server's php.ini or possibly in your .htaccess file if your host supports this. Please contact your host for the best way to suppress these errors, and possibly log them instead.

    Posted 7 years ago on Friday February 15, 2013 | Permalink