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
Add New Note to this Reply
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
Add New Note to this Reply
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
Add New Note to this Reply
Have you got debug turned on in the wp-config file?
Rob Mougey
August 25, 2013 at 2:46 pm
Add New Note to this Reply
Yes, this went away after I turned off debug…
Thanks!