Illegan string offset 'state' errorThis topic has 2 replies, 3 voices, and was last updated 10 years, 4 months ago by Pie Register.Viewing 3 posts - 1 through 3 (of 3 total)AuthorPosts June 12, 2015 at 8:11 pm #10003634 christiParticipantI’m getting this at the top of my registration form. All of the functions are still working correctly that I can tell but this appears.Illegal string offset ‘state’ in /home/mwpageants/public_html/wp-content/plugins/pie-register/classes/registration_form.php on line 412Apply Now April 2, 2016 at 11:31 am #10004441 Murtaza BasraiParticipantHi Christi, I’m facing the same error. However I used the following solution:Replaced Line 412 in registration_form.php from$selectedoption = ($address_values[‘state’])?$address_values[‘state’]:$this->field[‘us_default_state’];toif (isset($address_values[‘state’])) { $selectedoption = ($address_values[‘state’])?$address_values[‘state’]:$this->field[‘us_default_state’]; } April 4, 2016 at 3:51 pm #10004462 Pie RegisterParticipantHi,Here’s the appropriate way:if (isset($address_values[‘state’])) { $selectedoption = $address_values[‘state’]; }else{ $selectedoption = $this->field[‘us_default_state’]; }ThanksAuthorPostsViewing 3 posts - 1 through 3 (of 3 total)The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.