WordPress.org

Ready to get started?Download WordPress

Forums

Upgrade to 3.5 using the auto update - error message (9 posts)

  1. amanuensis
    Member
    Posted 1 year ago #

    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

  2. ichadwick
    Member
    Posted 1 year ago #

    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...

  3. keesiemeijer
    moderator
    Posted 1 year ago #

    @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

  4. ichadwick
    Member
    Posted 1 year ago #

    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.

  5. dreamsoft
    Member
    Posted 1 year ago #

    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

  6. amanuensis
    Member
    Posted 1 year ago #

    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.

  7. dreamsoft
    Member
    Posted 1 year ago #

    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.php

    it will not solve the problem, but it will hide it, and the plugin will work normally

  8. veteze
    Member
    Posted 1 year ago #

    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...

  9. jayljohnston
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic