Invalid argument supplied for foreach
-
We have Eventbrite API installed in our new WordPress site, we got the events listed on our page but it is showing a warning. Please below:
WARNING: INVALID ARGUMENT SUPPLIED FOR FOREACH() IN /HOME/STAGEST0/PUBLIC_HTML/RESOURCESTAGE/WP-CONTENT/THEMES/EVENTBRITE-VENUE/INC/EVENTBRITE.PHP ON LINE 88
Before this warning, we are getting undefined constant API_BASE error. To go around this error, we added a line of code in eventbrite-api/inc/class-eventbrite-api.php. See below:
static $instance;
const API_BASE = '/';
We are not sure if that is the correct base of the api, please advice.
Hoping for your response.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Invalid argument supplied for foreach’ is closed to new replies.