Support

Home Forums Event Espresso Premium Pricing Hook Error (2)

Pricing Hook Error (2)

Posted: May 22, 2018 at 8:16 pm

Viewing 10 reply threads


kwg

May 22, 2018 at 8:16 pm

Intermittent Pricing Hook Error on paid event. Issue appears resolved on free events but produces the following error on paid events. Attempted to remove the event and recreate, issue persists.

Notice: Undefined index: in /home/knoxvill/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php on line 496

Fatal error: Call to a member function start_date_and_time() on null in /home/knoxvill/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php on line 497


Tony

  • Support Staff

May 23, 2018 at 2:23 am

Hi there,

Usually, that error means you are hitting your server max_input_vars limit so when the event is updated, all of the values are not being passed over to EE and it throws the above.

If you go to Event Espresso -> Maintenance -> System Information

Search for ‘max_input_vars’ and note the value set (I’m guessing 1000?).

Some host have an option to change that value in their control panel, for example – http://take.ms/z8A2E

If you have something like that try setting the value to 2000 or 3000 and retest (confirm that the value in system information updates before testing)

If you don’t have those options you can either contact your host and have them increase the limit for you, or you may be able to add something like:


php_value max_input_vars 3000
php_value suhosin.post.max_vars 3000
php_value suhosin.request.max_vars 3000

To your sites .htaccess file using FTP.


kwg

May 23, 2018 at 5:07 am

Currently max_input_vars is set to 10000.


Tony

  • Support Staff

May 23, 2018 at 5:19 am

Just to confirm, that’s not a typo and it’s set to 10,000 correct?

Unfortunately, that still does not mean that’s not the problem as we’ve seen themes add over 11,000 inputs to the page straight out of the box, see:

https://eventespresso.com/topic/max_input_vars-not-updating/#post-180794

1000 is the default value and its common for sites with multiple plugins to hit that value so we start with that.

You can check yourself for a rough idea how many inputs are on the page using Chrome Dev tools or similar.

On the event editor page open dev tools, in the elements page do CTRL+F and search for ‘input’ – http://take.ms/oaCEK

On my page there are 349, what do you get on your event editor?

Just to note, it may well be that the problem is not with max_input_vars but it’s the first place to start.


kwg

May 23, 2018 at 9:04 pm

10,000 is correct.

on my event editor there are 407 input variables.


Tony

  • Support Staff

May 24, 2018 at 1:42 am

on my event editor there are 407 input variables.

Hmm, then it’s not that.

Ok, if you go to Event Espresso -> Pricing

Do you see 2 items in the list, by default you should have a base price and tax – http://take.ms/SYHnM

Then on the price types tab, you should have 6 items – http://take.ms/aM8u3

If any of those are in the trash, restore them.


kwg

May 24, 2018 at 6:16 pm

Moved the tax back from the trash. There are six price types.

Issue persists.


Tony

  • Support Staff

May 25, 2018 at 2:08 am

Ok, then can you test EE without any other plugins active and using a default theme, you can do that using the Health Check plugin.

Install Health Check then go to Dashboard -> Health Check

On the troubleshooting tab you can enable troubleshooting mode – http://take.ms/FQky6

That will disable all plugins and switch to a default theme, just for you, the admin, not your site visitors.

Then enable EE again under Troubleshooting -> Plugins -> Enable event-espresso-core-reg – http://take.ms/q91hA


kwg

May 25, 2018 at 2:24 pm

Event saved with default theme and all plugs except for EE-Core. Now comes the fun part of figuring out where the conflict is.


Josh

  • Support Staff

May 25, 2018 at 3:32 pm

Usually a good approach is start by reactivating the theme and if the error happens with the theme activated then no need to check through the plugins.


kwg

May 25, 2018 at 7:05 pm

Error did not happen with theme activated. Testing plugins.

Viewing 10 reply threads

The support post ‘Pricing Hook Error (2)’ 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