WP errors, how to fix these help needed :)

stockbob55

Registered Member
Joined
Nov 5, 2011
Messages
85
Reaction score
49
When I upload the content revenge plugin to a new Wordpress install I immediately get the following or similar warning in my WP Dashboard.

Warning: Missing argument 2 for wpdb::prepare(), called in /home/marilyn3/public_html/keyword/wp-content/plugins/content-revenge/index.php on line 2322 and defined in /home/marilyn3/public_html/keyword/wp-includes/wp-db.php on line 990

Warning: Cannot modify header information - headers already sent by (output started at /home/marilyn3/public_html/keyword/wp-includes/wp-db.php:990) in /home/marilyn3/public_html/keyword/wp-includes/option.php on line 568

Warning: Cannot modify header information - headers already sent by (output started at /home/marilyn3/public_html/keyword/wp-includes/wp-db.php:990) in /home/marilyn3/public_html/keyword/wp-includes/option.php on line 569

I have tried different themes, un installing the other plugins but no good.
Anyone know how to fix this please..
 
What's your WP version?
Check which version of WP that plugin supports.
 
Reinstall WP, Choose the default theme and install plugin.
After that send results here!
 
Thanks guys.
My plugin is not supported and this is a workaround solution I found:


  1. Log into your site's control panel.
  2. Use the file manager to go to public-html/wp-includes
  3. Open the file wp-db.php for basic text editing
  4. Go to line 990. To rapidly get to line 990, do a search for "if there was something to prepare". Line 990 is the "function prepare..." line after that
  5. Copy the line 990 as it stands now and put it in a file for safe keeping. Line 990 is now supposed to be: "function
    prepare( $query, $args ) {"
  6. Replace line 990 with this text instead: "function
    prepare( $query = null ) { // ( $query, *$args )"
  7. Save the file

Seems to work but probably not for too long.
Thanks anyway
 
Remove/deactivate all plugins, and then reinstall one by one and see when the warning comes on. That plugin is causing the warning message. Use a substitute plugin if you need similar features.

The plugin you're talking about will produce more problems when it is upgraded after you've done changes to hide/remove the present problem.
 
Hope that you don't crash when you make this site authority!
Don't try editing if you don't know what you are doing.

It's just advice, don't take it personally...
 
Thanks guys.
My plugin is not supported and this is a workaround solution I found:


  1. Log into your site?s control panel.
  2. Use the file manager to go to public-html/wp-includes
  3. Open the file wp-db.php for basic text editing
  4. Go to line 990. To rapidly get to line 990, do a search for ?if there was something to prepare?. Line 990 is the ?function prepare?? line after that
  5. Copy the line 990 as it stands now and put it in a file for safe keeping. Line 990 is now supposed to be: ?function
    prepare( $query, $args ) {?
  6. Replace line 990 with this text instead: ?function
    prepare( $query = null ) { // ( $query, *$args )?
  7. Save the file

Seems to work but probably not for too long.
Thanks anyway

Not work....this is my site tempelin.com and it's happen when i try to use FB login ... any sugestion ?
(sorry for my bad english)
 
Usually when I get problems like this, a fresh install is the best option in the long run. Temporary fixes always pose the risk of messing up some other code elsewhere. It's best in my opinion, just to start from scratch. Back up your posts and styling, and then just take the plunge.
 
Back
Top