1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WP errors, how to fix these help needed :)

Discussion in 'Blogging' started by stockbob55, Dec 23, 2012.

  1. stockbob55

    stockbob55 Registered Member

    Joined:
    Nov 5, 2011
    Messages:
    84
    Likes Received:
    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..
     
  2. AnotherOne

    AnotherOne Senior Member

    Joined:
    Nov 28, 2011
    Messages:
    919
    Likes Received:
    187
    Occupation:
    SQA
    Location:
    JMeter & Selenium
    What's your WP version?
    Check which version of WP that plugin supports.
     
  3. rinor4ever

    rinor4ever Junior Member

    Joined:
    Jun 7, 2012
    Messages:
    103
    Likes Received:
    57
    Reinstall WP, Choose the default theme and install plugin.
    After that send results here!
     
    • Thanks Thanks x 1
  4. stockbob55

    stockbob55 Registered Member

    Joined:
    Nov 5, 2011
    Messages:
    84
    Likes Received:
    49
    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
     
  5. srb888

    srb888 Elite Member

    Joined:
    Jul 30, 2008
    Messages:
    3,260
    Likes Received:
    5,067
    Gender:
    Male
    Occupation:
    WebzSurfer
    Location:
    Sun, Mon, Tue, WTF, Sat!!! :)
    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.
     
  6. rinor4ever

    rinor4ever Junior Member

    Joined:
    Jun 7, 2012
    Messages:
    103
    Likes Received:
    57
    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...
     
  7. primus4

    primus4 Newbie

    Joined:
    Jul 22, 2013
    Messages:
    1
    Likes Received:
    0
    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)
     
  8. visualization

    visualization BANNED BANNED

    Joined:
    Jul 24, 2013
    Messages:
    52
    Likes Received:
    8
    it can be fix, try to go on wordpress forum and ask about it.
     
  9. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,373
    Likes Received:
    5,439
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    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.