Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Error on Question section for free event | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Error on Question section for free event

Error on Question section for free event

Posted: November 29, 2012 at 7:55 pm

Viewing 7 reply threads


Ross Rhizal

November 29, 2012 at 7:55 pm

I have a free event that I want people to register for. The Personal information forms are not showing up on the registration form. On the event edit page I get the following error:

Question Groups
Add a pre-populated group of questions to your event. The personal information group is required for all events.

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/rhizal/hygeiacenter.org/wp-content/plugins/event-espresso/includes/functions/admin.php on line 1668

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/rhizal/hygeiacenter.org/wp-content/plugins/event-espresso/includes/functions/admin.php on line 1668

Here is the section of code from that file:

function espresso_get_question_groups_for_event( $existing_question_groups = array(), $limit = null, $use_filters = true, $event ) {
global $wpdb;
$event_groups = array();
$selected = $unselected = array();
$sql = “SELECT qg.* FROM ” . EVENTS_QST_GROUP_TABLE . ” AS qg “;
$sql .= $use_filters ? apply_filters(‘espresso_get_question_groups_for_event_where’, ” WHERE (qg.wp_user = ‘0’ OR qg.wp_user = ‘1’ ) “, $existing_question_groups, $event ) : ” WHERE (qg.wp_user = ‘0’ OR qg.wp_user = ‘1’ ) “;
$sql .= ” GROUP BY qg.id ORDER BY qg.system_group, qg.group_order “;

$question_groups = $wpdb->get_results( $wpdb->prepare($sql) );

//let's setup data.
$count_row = 0;  
if ( count($question_groups) > 0 ) {
    foreach ( $question_groups  as $group ) {
        if ( $group->system_group == 1 || in_array($group->id, $existing_question_groups) )
            $selected[] = $group;
        else
            $unselected[] = $group;
        $count_row++;
    }
    $event_groups = array_merge($selected, $unselected);
    $event_groups = empty($limit) ? $event_groups : array_slice( $event_groups, 0 , 2 );
}

return ($use_filters) ? apply_filters('espresso_get_question_groups_for_event_groups', $event_groups, $existing_question_groups, $event) : $event_groups;

}

Help Appreciated…


Dean

  • Support Staff

November 30, 2012 at 3:02 am

Hello Debra,

I haven’t seen that particular issue before, though I know we had an issue with questions in the version of EE you are running.

As such my first advice would be to update to the latest version of EE and see if this is still occurring.

If so please let us know, but I feel the update should resolve it.

As always, make sure you run a back up of the database before updating a plugin.


Ross Rhizal

December 3, 2012 at 8:58 am

I can’t update until my key is reset. I requested several days ago…


Ross Rhizal

December 3, 2012 at 9:02 am

It might have been over the weekend when I requested – I don’t recall… trying to request reset again.


Dean

  • Support Staff

December 3, 2012 at 11:22 pm

It is reset now


Ross Rhizal

December 5, 2012 at 3:54 pm

This didn’t fix my problem and unfortunately, it is becoming more urgent. I have an event that is being promoted but there is no way to sign up for it since the questions don’t show up on the registration page. When I edit the event I get there same error stated above at the question section.. I have the most recent version.


Dean

  • Support Staff

December 6, 2012 at 12:50 am

Hi Ross,

Is it the same error that is coming up?

Can you send login details so I can have a closer look at this please?

Go to http://staging.eventespresso.com/contact/ and choose the “I am sending in login details as requested” option. Login credentials need to be Admin level.


Ross Rhizal

December 6, 2012 at 9:19 am

Dean,

Thanks for your response. Actually, the error stopped occurring. I checked post update but maybe something in the update took some time to resolve.

Everything is working fine now. Thanks,

Ross

Viewing 7 reply threads

The support post ‘Error on Question section for free event’ 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 - Staging Server