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
Missing argument 2 for wpdb::prepare() - at top of event pages | Event Espresso - Staging Server

Support

Home Forums Event Espresso Lite Missing argument 2 for wpdb::prepare() – at top of event pages

Missing argument 2 for wpdb::prepare() – at top of event pages

Posted: September 13, 2013 at 12:45 am

Viewing 2 reply threads


Craig Simmons

September 13, 2013 at 12:45 am

Since updating WP and EE to the latest versions, I’m now getting this message at the top of every event page:

Warning: Missing argument 2 for wpdb::prepare(), called in /home/orthopt/public_html/wp-content/uploads/espresso/templates/registration_page.php on line 81 and defined in /home/orthopt/public_html/wp-includes/wp-db.php on line 992

Line 81 of registration_page.php seems to relate to “Support for diarise”. Any ideas on how to resolve?

WordPress 3.6.1
Event Expresso Version 3.1.35.P
Calendar: Version 2.0.6.2
Members Addon: Version 1.9.7.2
Example URL: http://www.orthoptics.org.au/event-registration-2/?ee=43


Dean

  • Support Staff

September 13, 2013 at 1:27 am

Hi Craig,

It looks like an old template file in the uploads/espresso/templates is causing this.

To remedy it, please rename that folder, so that the plugin uses the default templates.

If you had modifications to the templates, you will need to apply those modifications to a copy of the new templates.


Craig Simmons

September 13, 2013 at 3:57 am

Thanks Dean – that did the trick! :)

Viewing 2 reply threads

The support post ‘Missing argument 2 for wpdb::prepare() – at top of event pages’ 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