Missing Argument 2 and can’t login
-
I went to check something on my company webpage today and came across a few errors.
After several hours of extremely frustrating searching, trying, searching, etc I am posting for some help.
IF you go to webstie “www.shopstarboard.com you will see right away at the top of the page that I have the following error:
Warning: Missing argument 2 for wpdb::prepare(), called in /home3/starboar/public_html/wp-content/plugins/wp-post-thumbnail/wppt.php on line 372 and defined in /home3/starboar/public_html/wp-includes/wp-db.php on line 1285
So, I attempted to login to update a plugin and I get the following errors on the login page –
Warning: Missing argument 2 for wpdb::prepare(), called in /home3/starboar/public_html/wp-content/plugins/wp-post-thumbnail/wppt.php on line 372 and defined in /home3/starboar/public_html/wp-includes/wp-db.php on line 1285 Warning: Cannot modify header information - headers already sent by (output started at /home3/starboar/public_html/wp-includes/wp-db.php:1285) in /home3/starboar/public_html/wp-login.php on line 402 Warning: Cannot modify header information - headers already sent by (output started at /home3/starboar/public_html/wp-includes/wp-db.php:1285) in /home3/starboar/public_html/wp-login.php on line 415
Directly above the login input I get – ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.
Then I input my username and password and I get more errors at the top –
Warning: Missing argument 2 for wpdb::prepare(), called in /home3/starboar/public_html/wp-content/plugins/wp-post-thumbnail/wppt.php on line 372 and defined in /home3/starboar/public_html/wp-includes/wp-db.php on line 1285 Warning: Cannot modify header information - headers already sent by (output started at /home3/starboar/public_html/wp-includes/wp-db.php:1285) in /home3/starboar/public_html/wp-login.php on line 402 Warning: Cannot modify header information - headers already sent by (output started at /home3/starboar/public_html/wp-includes/wp-db.php:1285) in /home3/starboar/public_html/wp-login.php on line 415 Warning: Cannot modify header information - headers already sent by (output started at /home3/starboar/public_html/wp-includes/wp-db.php:1285) in /home3/starboar/public_html/wp-includes/pluggable.php on line 892 Warning: Cannot modify header information - headers already sent by (output started at /home3/starboar/public_html/wp-includes/wp-db.php:1285) in /home3/starboar/public_html/wp-includes/pluggable.php on line 893 Warning: Cannot modify header information - headers already sent by (output started at /home3/starboar/public_html/wp-includes/wp-db.php:1285) in /home3/starboar/public_html/wp-includes/pluggable.php on line 894
I have fillezilla, and I found the file – wp-post-thumbnail/wppt.php. I then went to line 372 and this is what I have –
/** * Get presets from "wppt_preset" database table * * @return array */ function getPreset() { global $wpdb; return $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $this->wppt_preset_db" ) ); }
Im stuck. I can’t find the actual source code to see how it needs to be changed. I looked up similar errors but they were for other plugins and so the code is different.
Any help is greatly appreciated!
thanks
- The topic ‘Missing Argument 2 and can’t login’ is closed to new replies.