[Plugin: Events Manager] Bookings CSV Export infinite loop
-
When I export my bookings the CSV grows to a very large amount and it’s all duplicates. I only have one booking in there and there end up being hundreds of the same row. I can tell that it’s in an infinite loop, the end of the CSV file has a timeout error.
Fatal error: Maximum execution time of 30 seconds exceeded in /wordpress/wp-includes/plugin.php on line 0
I’ve edited em-actions.php and commented out the while loop I believe to be responsible:
$handle = fopen("php://output", "w"); //while(!empty($EM_Bookings->bookings)){ [...foreach loops left uncommented...] //$EM_Bookings_Table->offset += $EM_Bookings_Table->limit; //$EM_Bookings = $EM_Bookings_Table->get_bookings(); //}
and all seems to be working well. I honestly have no idea what I just did, but I’m pretty sure I’ll be missing something at some point…the offset and reassignment of $EM_Bookings looks ominous.
Using events-manager.5.2.5
- The topic ‘[Plugin: Events Manager] Bookings CSV Export infinite loop’ is closed to new replies.