WordPress.org

Ready to get started?Download WordPress

Forums

124

3.01 Update - Failed and stuck! PLEASE Fix your upgrade! (91 posts)

  1. dimeco
    Member
    Posted 3 years ago #

    While I appreciate the work done to keep WP free, I have to say, if you're going to roll out an upgrade - why on earth would it not be tested to make sure it actually WORKS for people??

    My site is now stuck in Maintenance mode - whatever that is!

    Here's the error that happened:

    Downloading update from http://wordpress.org/wordpress-3.0.1.zip…

    Unpacking the update…

    Verifying the unpacked files…

    Installing the latest version…

    Could not copy file.: /public_html/wp-admin/css/theme-editor.dev.css

    Installation Failed

    for the record - this is a WP Mu site, and I was JUST about to launch!!

    Help?!

    AJ

  2. This is a problem with your server setup, most likely, not WP. The most likely reason would be that your PHP setup doesn't like the way WP 3.0.1 is unzipping and copying files. It happens.

    Do a manual upgrade. It's easy :)

  3. dimeco
    Member
    Posted 3 years ago #

    Really? Half the time the updates work, half the time I have to do it manually. Absolute same server. (Dedicated from LiquidWeb).

    WP is the only script I ever have some issues with... but what bothers me is that obviously I'm not the only one.

    Here's a suggestion:

    If it fails, MAKE the system REMOVE the maintenance mode and put the site back at least!

    Now it's totally offline, and I have to wait.

  4. If it fails, MAKE the system REMOVE the maintenance mode and put the site back at least!

    Bad idea. What if it failed and was really broken? Failed mean failed. Let the user check and see what's up.

    Really? Half the time the updates work, half the time I have to do it manually. Absolute same server. (Dedicated from LiquidWeb).

    Interesting. I'm on a VPS from Liquidweb and had no issues. Check your version of PHP?

    I will say that SOMETIMES I get hung up updating images for plugins and I have to do it manually, but it's generally weird permissions errors.

    (What other scripts do you use that have automated upgrades like WP?)

  5. nextwave
    Member
    Posted 3 years ago #

    FAIL here too- including a brand new install.
    Not a good sign for 3.0.1

  6. nextwave
    Member
    Posted 3 years ago #

    And after you update manually- the message that you failed to update- stays up, and asks you to try again- even though you are up-to-date.

  7. nextwave
    Member
    Posted 3 years ago #

    delete the file .maintenance in root directory if you want to delete the annoying message.

  8. Yes, but that only works when you tell us WHAT your error is :) In the future, please include the error message and we could have told you that sooner.

    'Fail' is just too vague.

  9. gazouteast
    Member
    Posted 3 years ago #

    @ipstenu (What other scripts do you use that have automated upgrades like WP?)

    - SMF Forums
    - OpenX
    - phpLIST
    - phpBB

    Just <s>three</s> four off the top of my head

  10. John T. Folden
    Member
    Posted 3 years ago #

    I received the same error on two completely different installations of the update... (on a brand new LiquidWeb Storm server but I doubt it makes a difference).

    I don't believe this is a server issue because it's the exact same file and there's nothing particularly special about the file it fails on.

  11. flobaby
    Member
    Posted 3 years ago #

    Yep, fails on the same file for me. I never have had a problem with upgrading till this version.

  12. shootingparrots
    Member
    Posted 3 years ago #

    I can't get 3.01 to upgrade either. I get the message:

    Fatal error: Out of memory (allocated 40894464) (tried to allocate 2966269 bytes) in /mnt/web9/40/39/51978039/htdocs/blog/wp-includes/class-http.php on line 1408

    Whatever that means.

  13. Fatal error: Out of memory (allocated 40894464) (tried to allocate 2966269 bytes) in /mnt/web9/40/39/51978039/htdocs/blog/wp-includes/class-http.php on line 1408

    At a guess, it means your PHP install on your server doesn't have enough memory to allocate...?

    This advise may be dated (I think 3.0 tries some of this for you) but if you haven't done this already, here's some things to try:

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    In your wp-config.php (back up your files first. Really, not joking.) add this line before the end

    define('WP_MEMORY_LIMIT', '96M');

    If that doesn't work, see if you can locate your php.ini file and increase it there. For my installation, it's /etc/php5/apache2/php.ini and modify the memory_limit line.

    memory_limit = 96M

    And restart your web server software to make sure it takes effect.

    If you don't/can't/not sure of how to do that, ask your hosting company to increase your PHP memory.

  14. shootingparrots
    Member
    Posted 3 years ago #

    Thanks Jan,
    That sounds a) complicated and b) scary. Think I'll just stick with the installation that works and ignore the upgardes.

  15. That sounds like a plan. In the 3.0 -> 3.0.1 that should be fine as most of the fixes were apparently minor.

    Just keep in mind that if an UPGRADE OR DIE!! patch comes out, you'll need to look at how to get this done sooner or later...

  16. shootingparrots
    Member
    Posted 3 years ago #

    Didn't listen to my own advice. I changed the memory allocation in the wp-settings file. Now I can't access either my website or the dashboard even though I re-set the file to how it was. I get:

    Fatal error: Call to undefined function is_multisite() in /mnt/web9/40/39/51978039/htdocs/blog/wp-includes/l10n.php on line 39

    I've absolutely no idea what to do now. Except maybe tear my hair out or turn to drink.

  17. The drink may not be a bad idea, but let's try a couple of things first. THEN go drink. :)

    Start with the easy part, do you have a backup of your WordPress files? If so, then restore wp-config.php. Easy peezy.

    If you don't have a backup (sounds like you don't) them backup your files and database right now. That's critical.

    http://codex.wordpress.org/WordPress_Backups
    http://codex.wordpress.org/Backing_Up_Your_Database

    Get ready to restore so you can return to where you are right now. This is in case more Bad Things happen.

    http://codex.wordpress.org/Restoring_Your_Database_From_Backup

    Now rename wp-config.php to wp-config-SAVE.php and copy wp-config-sample.php to wp-config.php and put in your DB_NAME, DB_USER, and DB_PASSWORD. Change DB_HOST if you need to.

    Did that get you back to be able to admin your blog? I'm suggesting this in case the problem is in your wp-config.php file. If that doesn't get you back, let us know and more suggestions will be coming.

  18. shootingparrots
    Member
    Posted 3 years ago #

    I do have a copy of the files on my hard disk and I have updated it. I used to get a db back-up emailed to me twice a day, but that stopped on 17 July.

    I think I've back up my db from my server and have the import option.

    Finally, I tried the changes to the wp-config file and got this message when trying to acces the dashboard and the site:

    Fatal error: Call to undefined method wpdb::tables() in /mnt/web9/40/39/51978039/htdocs/blog/wp-includes/functions.php on line 1839

  19. bonniekirk
    Member
    Posted 3 years ago #

    The upgrade also failed for me, on 2 installations, for 2 different reasons, both running on the same shared host. NEITHER site is stuck in maintenance mode.

    Like for dimeco, the upgrade failled on the first site because it could not copy theme-editor.dev.css.

    The second failed because it "Could not create directory.: /public_html".

    After the first upgrade failed, I thought it would either be a permissions issue, or a function of the theme I'm using. Now I'm just baffled. Since the upgrade is for minor issues, I will probably wait to revisit this upgrade until more experienced people sort this out.

  20. cowgirlup
    Member
    Posted 3 years ago #

    I got the very same /public_html message.
    Jan, can you walk me through fixing this please?

    Thanks

  21. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    "Call to undefined method" basically means you're missing files somehow.

    Download a fresh copy of WP, install the files onto the system manually. Via FTP or what have you.

    Remember, a manual upgrade is always an option. All you really have to do to manually upgrade is to put the new files on your server, overwriting the old files, and not touching the configuration files like wp-config.php and such.

  22. shootingparrots
    Member
    Posted 3 years ago #

    I assume from this that I'm going to have to manually install WP as described if I'm to get my site working again. When you say "not touching the configuration files like wp-config.php and such" exactly what is the 'such' that I shouldn't touch?

    The original automatic install was easy enough, but all this WP3 stuff is a bit of a nightmare.

  23. change_magic
    Member
    Posted 3 years ago #

    This is my 3.01 error:

    Warning: copy(/home/*****/public_html/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: Permission denied in /home/*****/public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 200

    As there seem to be many problems with installing this version I'm sticking with 3.0 unless anyone has a *really* easy fix for the above. I'm focused on creating content for my site. (Unless there's a priority security reason for installing the lasted WP version).

  24. patdundee
    Member
    Posted 3 years ago #

    Hi Guys

    I am also gett Could not create directory.: /www

    Does anyone know the correct permissions for each of the WP folders and sub folders for WP

    ?

  25. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    When you say "not touching the configuration files like wp-config.php and such" exactly what is the 'such' that I shouldn't touch?

    Any changes you've made to the overall system, basically. Your plugins. Your themes. Your wp-config.php file.

  26. MSWD
    Member
    Posted 3 years ago #

    change_magic - did you find a fix. I am having the same exact issue. Please let me know what you found- thanks

  27. webactif
    Member
    Posted 3 years ago #

    I too have this bug ...
    I havnt quite worked a way to fix it BUT to get your site back if its stuck on site maintenance is to delete whats in the update folder in wp-content.
    This should bring things back to what they were.

    I think as this is becoming a common issue i'll wait for next WP ver to start updating all my sites !!!

  28. Tanshaydar
    Member
    Posted 3 years ago #

    Hi,
    I just uploaded new package files to my server. After everything uploaded, I tried to upgrade the database, but it gave an error (Fatal error: Call to undefined function is_multisite() in /.../wp-includes/wp-db.php on line 505).

    Now it's stuck. I can't do anything. I tried to re-upload every file but it doesn't work. My blog still gives same error and I can't reach anything.

  29. Tanshaydar
    Member
    Posted 3 years ago #

    Well I solved the problem.

124

Topic Closed

This topic has been closed to new replies.

About this Topic