Forums » Installing WordPress » Upgrade to 3.5 using the auto update – error message
Upgrade to 3.5 using the auto update – error message
-
Hi
Just tried to upgrade to 3.5 using the auto update – error message below comes up
Fatal error: require_once() [function.require]: Failed opening required ‘/var/www/vhosts/mercurystone.com/httpdocs/mercurystone/wp-content/upgrade/version-current.php’ (include_path=’.:’) in /var/www/vhosts/mercurystone.com/httpdocs/mercurystone/wp-admin/includes/update-core.php on line 640
Any ideas as to why this is happening and possible suggestions for a resolution.
Thank you
-
I got something different:
Warning: Missing argument 2 for wpdb::prepare(), called in /home/ianc1499/public_html/blog/wp-content/plugins/category-icons/category_icons.php on line 1047 and defined in /home/ianc1499/public_html/blog/wp-includes/wp-db.php on line 990
Now it’s all crap… no admin panel or dashboard, no widgets…@ichadwick I responded to your own topic.
@amanuensis
– reading the troubleshooting 3.5 master list to see if any of your problems is listed there: http://wordpress.org/support/topic/troubleshooting-wordpress-35-master-list– flushing any caching plugins you might be running, as well as server and/or browser caches.
– deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the default theme to rule out any theme-specific problems.
– re-uploading all files & folders – except the wp-content folder from a fresh download of WordPress. by using FTP or whatever file management application your host provides (Manual Update).
– re-running the upgrade via wp-admin/upgrade.php
Too much work to fix what should not have been broken. My fix: FTP 3.4.2 over the new files. Seems stable again now once that finished. Will wait until the bugs are fixed before trying again.
I get the same error for Category Icons plugin.
That plugin is not compatible with WordPress 3.5
Unfortunately I am desperate to find out a solution, as I need that plugin a lot.Warning: Missing argument 2 for wpdb::prepare(), called in /home/username/public_html/wp-content/plugins/category-icons/category_icons.php on line 1361 and defined in /home/username/public_html/wp-includes/wp-db.php on line 990
Maybe someone knows?
thanks
Re-uploaded all files & folders – except the wp-content folder from a fresh download of WordPress and seems to be ok – having a child theme in place has helped.
Any further glitches I will let you know – bit of a ball ache having to do this manually to all my WP upgrades though. Sort of defeats the ease of use idea.why should I reupload all files and folders? this problem is related to the querry that the plugin uses, not anything else.
you can howeve hide the errors by adding:
error_reporting(0);
@ini_set(‘display_errors’, 0);
to /wp-includes/class-wp-error.phpit will not solve the problem, but it will hide it, and the plugin will work normally
in category_icons.php on line 1047
from:
$wpdb->query($wpdb->prepare(“CREATE TABLE IF NOT EXISTS$wpdb->ig_caticons
(cat_id
INT NOT NULL ,priority
INT NOT NULL ,icon
TEXT NOT NULL ,small_icon
TEXT NOT NULL , PRIMARY KEY (cat_id
))”));to:
$wpdb->query($wpdb->prepare(“CREATE TABLE IF NOT EXISTS %s (cat_id
INT NOT NULL ,priority
INT NOT NULL ,icon
TEXT NOT NULL ,small_icon
TEXT NOT NULL , PRIMARY KEY (cat_id
))”, $wpdb->ig_caticons));on line 1338
from:
$datas = $wpdb->get_results($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon FROM $wpdb->ig_caticons”));i couldn’t get this to work:
$datas = $wpdb->get_results($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon FROM %s”, $wpdb->ig_caticons));but this worked:
$datas = $wpdb->get_results($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon FROM $wpdb->ig_caticons”, $result));it just passes a useless second variable…
Thanks veteze, changing just the first line made the error go away. I’m not sure what changing the second line does, but I made the changes anyways. I’m back up and running 🙂 Happy New Year!
- The topic ‘Upgrade to 3.5 using the auto update – error message’ is closed to new replies.