Tried Updating Wordpress & It Screwed My Site Up. How To Fix?

4 replies
  • WEB DESIGN
  • |
I pressed the update button and my internet connection seemed to get stuck and not complete the update. I'm not honestly sure what happened.

But I'm getting this ugly message right up top of my website:
MMRG, Mold Remediation & Basement Waterproofing in NJ-

It says - Warning: Missing argument 2 for wpdb:: prepare(), called in /home/content/03/9748603/html/mymoldremovalguys/wp-content/plugins/ninja-forms/includes/display_functions.php on line 11 and defined in /home/content/03/9748603/html/mymoldremovalguys/wp-includes/wp-db.php on line 990

What is a "missing arguement"? Was my wordpress theme arguing with itself and this is the result of the fight? But seriously, I need to get rid of this notice.

Please help me.

-Red

update:

I found this link here: http://make.wordpress.org/core/2012/...-wpdb-prepare/ and apparently this is a security threat of some type?
#fix #screwed #site #updating #wordpress
  • Profile picture of the author johnben1444
    There are really good wordpress editors on fiverr that could do this job for you ASAP.

    Just pick top rated gig.
    Signature
    Grow your social media account, Spotify Streams, YT Views & IG Followers & More
    Software & Mobile APP Developer
    Buy Spotify, Facebook Bot & IG M/S Method
    {{ DiscussionBoard.errors[7590377].message }}
  • Profile picture of the author David V
    RedShifted,
    Assuming your WP update completed, it looks like the problem is in the plugin ninja forms.

    Since WP v3.5 this new PHP Warning:
    PHP Code:
    Missing argument 2 for wpdb::prepare() 
    . Ninja Forms has not likely updated to correct this issue which lies with calling $wpdb->prepare() with only one argument, like so:
    PHP Code:
    "SELECT COUNT(*) FROM table" ); 
    (as stated in the blog post by Andrew Nacin on Wordpress.org).
    and here's how it needs to work:
    PHP Code:
    "SELECT * FROM table WHERE ID = %d AND name = %s", ,  ); 
    The blog post you already mentioned by Andrew Nacin has the answer.
    You can suppress the error by adding
    PHP Code:
    @ini_set('display_errors'0); 
    to your wp-config.php file, then wait until Ninja Forms corrects this, or disable it until they correct it.
    If your not positive your WP update completed, I would just manually update it to be certain.
    I would not modify the plugin unless you know what your doing.
    Make sure you backup before ever doing anything.
    {{ DiscussionBoard.errors[7591091].message }}
  • Profile picture of the author David V
    Actually.... you didn't specify what you were updating.....
    WP or Ninja Forms.
    Ninja Forms just released an update 6 days ago, so it seems strange they would not notice this. (if you were updating Ninja Forms), maybe you need to re-download it again.
    {{ DiscussionBoard.errors[7591115].message }}
  • Profile picture of the author David V
    I just peaked at Ninja Forms code and it should be fine.
    {{ DiscussionBoard.errors[7591137].message }}

Trending Topics