Home › Forums › Calendar Products › Community Events › Getting this: Warning: max(): Array…
- This topic has 7 replies, 4 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
December 10, 2015 at 9:31 pm #1039330
ridinggravel
ParticipantI’m getting the following error on some events after installing the latest update:
“Warning: max(): Array must contain at least one element in /home/content/p3pnexwpnas07_data01/36/2533636/html/wp-content/plugins/the-events-calendar/src/Tribe/Cost_Utils.php on line 296
Warning: array_merge(): Argument #1 is not an array in /home/content/p3pnexwpnas07_data01/36/2533636/html/wp-content/plugins/the-events-calendar/src/Tribe/Cost_Utils.php on line 307
Warning: Invalid argument supplied for foreach() in /home/content/p3pnexwpnas07_data01/36/2533636/html/wp-content/plugins/the-events-calendar/src/Tribe/Cost_Utils.php on line 309”
When I add a new event, it seems to work. I’ve deactivated all plugins and it’s still happening. Only to some events. What’s happening here? Please help.
December 11, 2015 at 12:31 pm #1039825Josh
ParticipantHey Ben,
Thanks for reaching out to us!
On initial view of those warnings, my first assumption would be that there is a customization that exists (possibly within your theme or another plugin) that is manipulating the cost display of the events. Are you aware of any changes that may have been made in the past in this regard?
If so, you can add those snippets here and we can take a quick look at them to see what the potential conflict could be.
Thanks!
December 11, 2015 at 1:57 pm #1039883ridinggravel
ParticipantNo customizations. I’ve tried testing other themes, with all other plugins disabled and still showing this. I’ve tried 5 totally unrelated themes and also tried from zero other plugins and added back one by one. All same – still shows that.
December 13, 2015 at 9:31 pm #1040571Douglas
ParticipantI’m having the same problem at http://tabletalknorthwest.com/events/
December 15, 2015 at 7:41 am #1041693Josh
ParticipantHey,
A couple of quick questions:
- To verify, are you using any of the ticketing solutions ( or were they being used on the site?) or are you using the default “Price” field available with core plugin?
- Have you tried switching to a default theme? Although no additional customizations may have been manually added, there could be some customizations built into the theme that may need to be addressed.
Thanks!
December 15, 2015 at 8:48 am #1041737Douglas
ParticipantIn my case, I discovered that one of the site managers had entered “free” instead of “0” for an event, which caused the array errors. Correcting this caused the event to render fine.
December 16, 2015 at 4:39 pm #1042572Josh
ParticipantHey Douglas,
Thanks for following up here! We’re working on correcting some limitations that were created with that field in upcoming releases. Glad you were able to figure out what was causing that specific issue on your site.
Ben,
Would that be a possible solution for the events that you’re experiencing this issue with?
Thanks!
February 18, 2016 at 8:33 am #1076263Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Getting this: Warning: max(): Array…’ is closed to new replies.
