Skip to main content

Home/ Wordpress/ Group items tagged 5 wordpress upgrade

Rss Feed Group items tagged

Vernon Fowler

WordPress 3.5 And WPDB Prepare - 0 views

  • “Warning: Missing argument 2 for wpdb::prepare()” How do I fix it? If you are seeing an error after upgrading to WordPress 3.5 that says something like this, you need to upgrade your theme. We have fixed this with all of our themes and they are ready to download and re-install from your account page. What if I have customized my theme’s code and don’t want to upgrade? For those of you who have customized your theme’s code and don’t want to do a full upgrade, you’ll need to take a look at the warning message. Here’s a sample error we have fixed from the Biznify Theme: Warning: Missing argument 2 for wpdb::prepare(), called in /home/mintthem/public_html/demo/wp-content/themes/Biznify/products-pagetemplate.php on line 39 and defined in /home/mintthem/public_html/demo/wp-includes/wp-db.php on line 990 Step 1: Open the file it tells you to open. In this case, it is products-pagetemplate.php and Go to the line it refers to. In this case it is line 39 Step 2: Find the code that looks like this: $wpdb->prepare(“SELECT price FROM $table_name WHERE item_number = ‘$item_number’;”) Step 3: Replace $item_number with %d Step 4: Add $item_number after the last quotation mark. Also, make sure to put a comma before it. (notice the comma before $item_number below) Example: $wpdb->prepare(“SELECT price FROM $table_name WHERE item_number = ‘%d‘;”, $item_number)
  • $price = $wpdb->get_var($wpdb->prepare(“SELECT price FROM $table_name WHERE item_number = ‘%d‘;”, $item_number));
  • WordPress 3.5 And WPDB Prepare
John Pratt

How to check server requirements for WordPress 3.2 upgrade - 6 views

  •  
    This is a tutorial on how to check your server requirements to make sure you can upgrade to wordpress 3.2, and a review of the new features, and new default 2011 theme that will be released with this new WP udpate.
anekanttruagency

Supercharge your wordpress website file management with File Manager Plugin - 0 views

  •  
    File manager provide you the ability to manage your files and folder with extensive features which can also be upgraded later according to your requirement via File Manager Pro (File type, shortcode, private folder access, Addons/Integrations and many to go) accordingly. Proudly powering 1+ million websites and achieving a 5-star rating!
1 - 3 of 3
Showing 20 items per page