Support

Home Forums Event Espresso Premium All Events Have Warning Messages!

All Events Have Warning Messages!

Posted: January 2, 2013 at 1:51 pm

Viewing 4 reply threads


Native Plant Salvage

January 2, 2013 at 1:51 pm

After installing the 3.1.29.1 update, ALL of the events have this warning message-

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

I have no idea how to resolve this issue-help!

Thanks in advance!


Josh

  • Support Staff

January 2, 2013 at 1:59 pm

Hi there,

Which method did you use to update the plugin? Can you check to see what it says on line 81 of wp-content/plugins/event-espresso/templates/registration_page.php? It should read:

$data->event = $wpdb->get_row( $wpdb->prepare( $sql, NULL ), OBJECT);


Native Plant Salvage

January 2, 2013 at 2:20 pm

Hello!

This is what it currently reads-

$data->event = $wpdb->get_row( $wpdb->prepare( $sql ), OBJECT);
$num_rows = $wpdb->num_rows;

Perhaps I didn’t install the update correctly? When I try to upload the .zip file it says the upgrade has failed.


Native Plant Salvage

January 2, 2013 at 2:54 pm

I figured out what I did wrong, I didn’t install the update correctly. Everything is running smoothly now! Thanks !


Josh

  • Support Staff

January 2, 2013 at 2:56 pm

Hi there,

In this case, the update did not run, and the code you posted confirms that you’re still on the older version of Event Espresso.

In order to upload the zip file for the new version, you’ll need to deactivate and delete the old version first. Please see this guide for step by step updating instructions:

https://eventespresso.com/wiki/updating-event-espresso/

and please review this post about updating to Event Espresso 3.1.29:
https://eventespresso.com/2012/12/what-you-need-to-know-about-upgrading-wordpress-and-event-espresso/

Alternatively, you can use the auto update feature as well.

Viewing 4 reply threads

The support post ‘All Events Have Warning Messages!’ 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