Support

Home Forums Community Forum 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


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

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! 🙂

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