Posted: November 2, 2017 at 11:01 am
|
Hello There is a trouble with “Event Espresso – People Addon (EE 4.5+)” and the last version of wordpress “4.8.3”. I can’t create/update an event in back-end with this configuration Wordpress : 4.8.3 I have an “HTTP ERROR 500”. If I desactivate “Event Espresso – People Addon (EE 4.5+)” its working. If I activate my fifty plugins and my theme but without “Event Espresso – People Addon (EE 4.5+)” its working also. Thank for your reply, |
Hi there, Can you check your server error logs and post the error that is being thrown? I’m not having any problems updating Evens with People assigned to them or not so need to narrow this down a little. If you enable WP_DEBUG mode on the site, then follow whatever steps you are taking to get the error, it should show the full error rather than just error 500. |
|
|
Here is the fatal eror displayed Fatal error: Uncaught InvalidArgumentException: The "edit_event_datetimes" array is invalid therefore the event can not be updated. in /var/www/vhosts/dev789viviarto.ovh/plateforme.dev789viviarto.ovh/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php:300 Stack trace: #0 /var/www/vhosts/dev789viviarto.ovh/plateforme.dev789viviarto.ovh/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php(279): espresso_events_Pricing_Hooks->_update_datetimes(Object(EE_Event), Array) #1 /var/www/vhosts/dev789viviarto.ovh/plateforme.dev789viviarto.ovh/wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php(1030): espresso_events_Pricing_Hooks->datetime_and_tickets_caf_update(Object(EE_Event), Array) #2 /var/www/vhosts/dev789viviarto.ovh/plateforme.dev789viviarto.ovh/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(969): Events_Admin_Page->_insert_up in /var/www/vhosts/dev789viviarto.ovh/plateforme.dev789viviarto.ovh/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php on line 300 |
Have you altered the People add-on at all? Or have any custom code hooking into |
|
Also, to confirm, you’ve tested the above with only Event Espresso and the people add-on and a default theme such as twentyseventeen? The error shows the above hooks is likely being used incorrectly, so it’s most likely some custom code somewhere. I can’t reproduce this on a couple of test sites and I’ve also tried various different PHP version (one of my test sites allows for switching on the fly) so right now it seems specific to your site. |
|
|
I just have tried to delete the plugin and reupload it with the last version and I still have the error. For the custom code, I have tried to desactivat everything, so I’m sure that I don’t have any custom code. This afternoon I have tried this code, but I d’ont think its joined. |
No, that code is unrelated, but you’d have had that de-activated anyway if you de-activated all plugins, right? Is the above error the only error you see? If you look in the servers error logs does it show any other error/notice/warning around the same time as the above? |
|
|
Hello, This morning I have desactivated all the plugins except EventEspressoCore, PeopleAddOn and DebugBar. I have switched to twentyseventeen theme. I still have the front end trouble. In my server log I have this error : AH01071: Got error ‘PHP message: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0\n’, referer: https://plateforme.dev789viviarto.ovh/wp-admin/admin.php?page=espresso_events&action=edit&post=11134&edit_nonce=e3926c2ee7 Its seems that I have to many people on my back-end, do you confirm ? |
Ok, its nothing to do with the people add-on, the people add-on is a symptom of the cause. Your server is set to allow 1000 input vars and the page is exceeding that so what happens then is the server ignores any inputs after 1000. With the people add-on activated the datetimes on your event page must be outside of that first 1000 vars so the above error is thrown. To fix this you need to increase the max_input_vars value set on your server, I’d recommend contacting your host and have them do that for you and would set it to 3000 and see if that works for you. You can also set the value yourself through your .htaccess file or php.ini file: https://stackoverflow.com/questions/10303714/php-max-input-vars/14166562#14166562 |
|
|
I will try this. On my problem the event is really simple, one datetime and one title and I have this error. Could be the array set in POST is too wide (too much vars) ? Can I reduce it ? |
Sure you can, but each of your 50 plugins may be adding additional inputs to the page, so to reduce it you need to remove those. We’ve also seen themes add over 14,000 inputs to each page (yes really). So in order to reduce the number of vars you need to reduce the amount of content being added to the event editor, even then if you add more datetimes, tickets and so one you can still hit the 1000 vars mark easy enough. |
|
|
Well right now I just have a trouble with 3 plugins and a basic theme. So I guess its more about number of inputs generated by this EE4 plugins. Can I do something, with event espresso action/filter/snipet to decrease it ? |
So with 3 plugins and a ‘basic’ theme you’re getting the above max_input_vars errors? EE doesn’t add anywhere near enough vars on that kind of install, unless you have a high number of datetimes/tickets/people that are loading on the page? And no, you can’t just remove inputs from the event editor using actions/filters/snippets as they are there for a reason, if you then remove them they can’t be used during the update calls. |
|
|
Yes exactly and on this event, I have one datetime and one ticket. Maybe on the backend event I can switch from “The full list of people” displayed to a “Search input to find the people”. |
I’ve already given you a solution that should work right now, updating your servers max_input_vars. Eventually, we may switch to a different system for loading in people (and other sections) which will work for larger datasets but that’s a long way away yet. How many people do you have setup within EE? |
|
|
Actually I have 180 peoples. But they are displayed 6 times (for each category I have created). So I got 1080 lines of people. |
|
Not 6 category but 6 types on PeopleAddon. |
Ok, so right now the only way your going to work around that is to increase max_input_vars. The other option is to remove the EE People metaboxes and create your own versions that only load the selected people, that isn’t something we can provide at this time. |
|
The support post ‘EE4 – Peopleaddon – Trouble with last wordpress (4.8.3)’ 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.