Support

Home Forums Event Espresso Premium EE4 – Peopleaddon – Trouble with last wordpress (4.8.3)

EE4 – Peopleaddon – Trouble with last wordpress (4.8.3)

Posted: November 2, 2017 at 11:01 am

Viewing 17 reply threads


JacquesMivi

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
Event Espresso – Version 4.9.49.p
Event Espresso – People Addon (EE 4.5+) – Version 1.0.6.p
Theme : Genesis framework (the father framework theme with no custom code).

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,


Tony

  • Support Staff

November 2, 2017 at 11:29 am

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.


JacquesMivi

November 2, 2017 at 11:39 am

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


Tony

  • Support Staff

November 2, 2017 at 12:02 pm

Have you altered the People add-on at all?

Or have any custom code hooking into FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks?


Tony

  • Support Staff

November 2, 2017 at 12:14 pm

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.


JacquesMivi

November 2, 2017 at 12:16 pm

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.
https://gist.github.com/Pebblo/dc011b43b461064a831d#file-tw_add_promo_shortcode-php-L42-L46


Tony

  • Support Staff

November 2, 2017 at 1:27 pm

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?


JacquesMivi

November 3, 2017 at 3:35 am

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 ?
How can I avoid this ?


Tony

  • Support Staff

November 3, 2017 at 3:50 am

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


JacquesMivi

November 3, 2017 at 4:30 am

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 ?
Cause even if i set the php.ini to 3000 it could be not enough next year.


Tony

  • Support Staff

November 3, 2017 at 5:39 am

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.


JacquesMivi

November 3, 2017 at 5:48 am

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 ?


Tony

  • Support Staff

November 3, 2017 at 5:55 am

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.


JacquesMivi

November 3, 2017 at 6:13 am

So with 3 plugins and a ‘basic’ theme you’re getting the above max_input_vars errors?

Yes exactly and on this event, I have one datetime and one ticket.
So I think I have too much people on people-addon.

Maybe on the backend event I can switch from “The full list of people” displayed to a “Search input to find the people”.
I’m just trying to find solution viable in time.


Tony

  • Support Staff

November 3, 2017 at 6:18 am

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?


JacquesMivi

November 3, 2017 at 6:24 am

Actually I have 180 peoples. But they are displayed 6 times (for each category I have created). So I got 1080 lines of people.


JacquesMivi

November 3, 2017 at 6:25 am

Not 6 category but 6 types on PeopleAddon.


Tony

  • Support Staff

November 3, 2017 at 8:32 am

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.

Viewing 17 reply threads

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.

Event Espresso