Support

Home Forums Event Espresso Premium Error in registration_page.pgp after upgrade to 3.1.34.P

Error in registration_page.pgp after upgrade to 3.1.34.P

Posted: August 3, 2013 at 2:29 pm


Rob Mougey

August 3, 2013 at 2:29 pm

After upgrading to 3.1.34.P I started getting this error on my [ESPRESSO_EVENTS] page:

<code>Notice: Uninitialized string offset: 0
in .../wp-content/plugins/event-espresso/templates/registration_page.php
on line 259</code>

The problem was where it was testing the value of: $member_options['member_only_all']

I was able to fix it by changing this:

( $member_only == 'Y' || $member_options['member_only_all'] == 'Y' )

to this:

( $member_only == 'Y' || ( property_exists($member_options, 'member_only_all') && $member_options['member_only_all'] == 'Y' ) )


Dean

August 5, 2013 at 12:23 am

Hi Rob,

Thanks for reporting this, it isn’t something we have come across.

What version of EE did you upgrade from and what version of WP User Integration (Members) are you using?


Rob Mougey

August 12, 2013 at 8:52 am

Hi Dean –

I just upgraded to 3.1.34.P from whatever the previous current version was… The members plugin is Version 1.9.7.2.

I found also I get the same error due to similar code at:

wp-content/uploads/espresso/templates/shopping_cart.php on line 44.

Thanks


Dean

August 13, 2013 at 1:00 am

Have you got debug turned on in the wp-config file?


Rob Mougey

August 25, 2013 at 2:46 pm

Yes, this went away after I turned off debug…

Thanks!

The support post ‘Error in registration_page.pgp after upgrade to 3.1.34.P’ 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