I just upgraded to 3.1.34.P and am getting this error when I try to view a ticket for a user who has registered for multiple events, which combined have more than one question group:
Notice: Array to string conversion in .../wp-content/plugins/espresso-ticketing/functions.php on line 403
The problem is at line 397 where it tries to add search/replace values for event metadata:
foreach($data->event->event_meta as $k=>$v){
array_push($SearchValues,"[".$k."]");
array_push($ReplaceValues,stripslashes_deep($v));
}
In my case $data->event->event_meta->add_attendee_question_groups is not a string, it is an array with two question groups:
Created developer ticket to have it fixed in future version. Changing it to:
if (!empty($data->event->event_meta)){
foreach($data->event->event_meta as $k=>$v){
if (is_string($v)) {
array_push($SearchValues,"[".$k."]");
array_push($ReplaceValues,stripslashes_deep($v));
}
}
}
Thanks for the feedback Rob, I’ll make a note of that on the developer ticket.
Viewing 3 reply threads
The support post ‘Ticket error with multiple question groups’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.