After upgrading to 1.5.37, I get an error after a booking is submitted which causes the RSVP page to fail to appear.
The error (which pops up briefly) is:
WARNING: invalid argument supplied for foreach() in eme_rsvp.php on line 888
The problem was fixed for me by downgrading this eme_rsvp.php with the file from the 1.5.36 version of EME.
For anyone that experiences this problem, downgrading the file involves:
– Downloading the pack https://downloads.wordpress.org/plugin/events-made-easy.1.5.36.zip
– Unpack the zip file
– FTP the events-made-easy/eme_rsvp.php file to your site at:
wp-content/plugins/events-made-easy/eme_rsvp.php
For reference, in case it is helpful, I am using multibooking functionality.
The change in code is from:
$booking = eme_get_booking ($booking_ids[0]);
to
foreach ($booking_ids_done as $booking_id) {
$booking = eme_get_booking ($booking_id);
The foreach argument seems to be invalid.