Support

Home Forums Event Espresso Premium Espresso Price Modifier Blew up

Espresso Price Modifier Blew up

Posted: April 10, 2014 at 10:12 am


Mike Tidmore

April 10, 2014 at 10:12 am

Hello!
I’ve been usign the Pre-release add on for price modifier which was working perfectly until some recent updates. (Not sure if it was other EE updates that broke it or what). Since it broke, I deactiviated it, But I am still getting this error on top of my registration pages. Is it somehow related? Or is this some other issue?
Warning: Illegal string offset ‘member_only_all’ in /home/www/fkidshop/public_html/wp-content/plugins/event-espresso/templates/registration_page.php on line 259


Josh

  • Support Staff

April 10, 2014 at 10:46 am

Hi Mike,

Can you let us know what part of the price modifier does not work? The last release fixed a bug related to the limits feature (ie. if you set an answer to only be selected for 10 tickets, it now works).

The PHP warning that you are seeing is unrelated, and doesn’t affect the functionality of the registration form. It’s best to contact your host and ask them to turn error display off because you have a live site. Or if you can, edit the wp-config.php file and add this line before where wp_debug is set to false:

@ini_set( 'display_errors', 'On' );
define( 'WP_DEBUG', false ); 


Mike Tidmore

April 10, 2014 at 10:52 am

Hey Josh.. thanks for the lighting fast response! I re-activated the price modifier plugin

Here’s an example page: https://foodie-kids.com/event-registration/?ee=135

You’ll see this error in the middle of the form
===============
Warning: Illegal string offset ‘price’ in /home/www/fkidshop/public_html/wp-content/plugins/espresso-price-modifier-pr/EE_Price_Modifier.class.php on line 569 Warning: Illegal string offset ‘price’ in /home/www/fkidshop/public_html/wp-content/plugins/espresso-price-modifier-pr/EE_Price_Modifier.class.php on line 584


Josh

  • Support Staff

April 10, 2014 at 10:56 am

Mike,

These are PHP warnings, and what that means is your server needs to have error display turned off. Along with that, I don’t believe the price modifier allows for a 0 option.


Mike Tidmore

April 10, 2014 at 10:59 am

Ok.. will ask my admin about the warnings, thanks!

But, I’m not following you on what you mean by a zero option?


Lorenzo Orlando Caum

  • Support Staff

April 10, 2014 at 11:57 am

Hi Mike,

The price modifier does not currently support a value of 0. It needs to be a positive or negative number.


Lorenzo


Mike Tidmore

April 10, 2014 at 12:04 pm

Hey Thanks Lorenzo.. but I’m not sure what you guys are even referring to?? What exactly do I have set to zero that I should not have set to zero?

-M


Lorenzo Orlando Caum

  • Support Staff

April 10, 2014 at 12:09 pm

Hi!

There is a food allergies question with a price modifier at the end of this page:

https://foodie-kids.com/event-registration/?ee=135

Do you see that the option for “no” is appearing as a zero?


Lorenzo


Mike Tidmore

April 10, 2014 at 12:24 pm

Oh.. ok… I gotcha. Sorry for being dense there… haha

Sorry. I thought I followed the documentation correctly on how to set that up. I have:
Yes|5.00,No|0.00
Should it be instead: Yes|5.00,No|

The support post ‘Espresso Price Modifier Blew up’ 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