Support

Home Forums Event Espresso Premium Warning: Invalid argument supplied for foreach() @ Gateways

Warning: Invalid argument supplied for foreach() @ Gateways

Posted: October 7, 2012 at 7:04 am


Dainius

October 7, 2012 at 7:04 am

Hi,

Last days was working with translating, custom ticket, registration display etc. After instalation I saw, that wp-admin/admin.php?page=payment_gateways section was OK. But today returned to this section and got errors:

> Warning: Invalid argument supplied for foreach() in
> /home/pza/domains/pesciujuzygiai.lt/public_html/wp-content/uploads/espresso/gateways/payment_gateways.php
> on line 27
>
> Warning: Invalid argument supplied for foreach() in
> /home/pza/domains/pesciujuzygiai.lt/public_html/wp-content/uploads/espresso/gateways/payment_gateways.php
> on line 27
>
> Warning: array_merge() [function.array-merge]: Argument #2 is not an
> array in
> /home/pza/domains/pesciujuzygiai.lt/public_html/wp-content/uploads/espresso/gateways/payment_gateways.php
> on line 36
>
> Warning: array_unique() [function.array-unique]: The argument should
> be an array in
> /home/pza/domains/pesciujuzygiai.lt/public_html/wp-content/uploads/espresso/gateways/payment_gateways.php
> on line 37
>
> Warning: Invalid argument supplied for foreach() in
> /home/pza/domains/pesciujuzygiai.lt/public_html/wp-content/uploads/espresso/gateways/payment_gateways.php
> on line 39

First line reapet as many times as many gateways I upload (now uploaded only paypal & bank). I already tryed to move back gatewas from /uploads/espress/ to /plugins/event-espresso/
also tryed reactivate plugin and change “active gateway” in DB – nothing helps :/


Dainius

October 7, 2012 at 7:38 am

Found solution byself – added extra:

        if (!is_array($gateways_glob))
            $gateways_glob = array();

The support post ‘Warning: Invalid argument supplied for foreach() @ Gateways’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso