WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Briefly unavailable for scheduled maintenance (33 posts)

  1. joelgomez
    Member
    Posted 3 years ago #

    Briefly unavailable for scheduled maintenance. Check back in a minute.

    That's the legend I get when trying to enter into my wp site. I "accidentally" clicked the "upgrade automatically" button (wp 3.0)... and when I say "accidentally", it means I HAVE NO BACKUP of my site!!!

    Should I shot myself? Any help will be greatly appreciated. Thanks.

    http://www.joelgomez.mx/blog/

  2. joelgomez
    Member
    Posted 3 years ago #

    OK, I don't understand... now I'm seeing my site again!!! Have no idea of what happened!!!

    BUT, when I try to access the dashboard, I get the following error:

    Fatal error: Cannot redeclare wp_load_image() (previously declared in /home/abogangster/joelgomez.mx/blog/wp-includes/media.php:241) in /home/abogangster/joelgomez.mx/blog/wp-admin/includes/image.php on line 168

  3. ivank123
    Member
    Posted 3 years ago #

    The same just happened to me. Please update this post if you can fix it. Thanks!

  4. joelgomez
    Member
    Posted 3 years ago #

    My site is working fine, but I can not edit it, since I have no access to the Dashboard anymore.

    Fatal error: Cannot redeclare wp_load_image() (previously declared in /home/abogangster/joelgomez.mx/blog/wp-includes/media.php:241) in /home/abogangster/joelgomez.mx/blog/wp-admin/includes/image.php on line 168

  5. Try manually upgrading. Right now, the thought is you're missing files.

  6. joelgomez
    Member
    Posted 3 years ago #

    Ipstenu, does that mean manually uploading (ftp) and overwriting all the files? Any other prior steps or things that we should have in mind to avoid having a worst result?

  7. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    does that mean manually uploading (ftp) and overwriting all the files

    Yes

    Any other prior steps or things that we should have in mind to avoid having a worst result?

    Backup your database
    Deactivate all plugins
    Switch to the default theme

  8. joelgomez
    Member
    Posted 3 years ago #

    How can I deactivate all plugins and switch to the default theme if I do not have access to the dashboard?

    Thanks in advance Esmi.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Switch to the default theme by renaming your current theme's folder using FTP (or use whatever file management application your host provides)

    Reset the plugins folder by FTP or phpMyAdmin.

  10. joelgomez
    Member
    Posted 3 years ago #

    Thanks esmi, I'm in the process of backing up the entire site.

    Just to be sure, the order in which I should proceed is the following?

    1st step: Backup your database
    2nd step: Deactivate all plugins
    3rd step: Switch to the default theme
    4th step: Manually uploading (ftp) and overwriting all the files

    Am I right?

  11. dandick
    Member
    Posted 3 years ago #

    I don't know if I could really recommend this as a standard procedure, but since I was free to crash and rebuild my own websites, I just ripped through a couple of these upgrades fast and got stuck like this on the third upgrade, and fixing it was a piece of cake.

    I just ran

    http://save-marriages.com/wp-admin/update-core.php

    And that took care of it. (substitute your own URL)

    I could see the files for the upgrade were in my wp-content/upgrade
    directory, so when I ran update-core.php, it ran like lightening and I had a login screen.

    From there, I just had to follow the normal instructions you get when you do this upgrade--that is, edit wp-config.php and add the specified line for security, remove blogs.php, and edit .htaccess appropriately.

    Worked great. I hope this helps and does not hurt anyone.

    Dan

  12. dandick
    Member
    Posted 3 years ago #

    I have to apologize. I spoke too soon. Running the update-core.php helped, but then when I logged in, I was taken to the dashboard where I saw an error message saying the upgrade had failed.

    From there, I merely had to click the "Re-install Automatically" button. From there, things went well, and I had my installation updated and running.

    I feel a bit better about the upgrade as it involved a complete re-installation.

    All in all, the upgrade still went pretty fast and easily, even with the glitch :-)

    Dan

  13. joelgomez
    Member
    Posted 3 years ago #

    dandik, did those steps caused your site to be started from cero? I mean, did you loose everything (files, posts, etc.) or everything went back as it was before the crash?

  14. dandick
    Member
    Posted 3 years ago #

    Another note:

    Updating WPMU 2.9.2 to 3.0 was a piece of cake on Linux where I had full control. Upgrading my one site that was on a C-panel setup posed one slight pain in the rear, but it was not difficult to solve it. The only question is whether I'm really comfortable with the solution.

    Upon upgrading, I was told to install the nonce line into wp-config.php.
    The problem I ran into is that when I logged into C-panel to administer my web environment, functionally my login (internally my Linux login) was different from the login that the webserver runs under. That means files created by the wordpress-mu environment was, say, "apache" while I was logged as "dan".

    Solving the problem involved renaming wp-config.php to wp-config.old and then copying it back to wp-config.php. That made wp-config.php owned by "dan", and now I could edit it. However, that also means "apache" may not be able to edit the file later.

    Just a hiccup you might run into along the way.

    Dan

  15. cscottb
    Member
    Posted 3 years ago #

    See Manual Update toward the bottom of this page.

    http://codex.wordpress.org/Upgrading_WordPress

  16. joelgomez
    Member
    Posted 3 years ago #

    I followed last suggestion and now Im worst than ever, I can't see my site anymore!

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at mysql.joelgomez.mx. This could mean your host's database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?

  17. dandick
    Member
    Posted 3 years ago #

    Joel, it seemed to come back to normal.

    I really need to mention something very important, and that is that the flailing and hacking I do is on my own personal hobby/blogging websites and they are not on business critical production websites. So, I can afford to tangle things up without having a CEO and four VP's looking over my shoulder :-) If I were working with a business critical production site, I would be many times more cautious making sure change control policies and procedures were established and followed.

    I don't want to lead someone down a dangerous path by telling them how I hacked my way to something that worked for me. But, what I did seemed to bring me to a good, quick solution for my needs.

    Dan

  18. dandick
    Member
    Posted 3 years ago #

    Do you have a copy of your old wp-config.php file?
    If so, you should be able to find what your database settings were from that. When people have the web server and the mysql database on the same machine, they often set the server to "localhost" and even limit access to the database to localhost to keep people from hacking the database from outside.

    I hope this helps and doesn't hurt...I don't know why an automatic upgrade should clobber your wp-config.php file though. If you copied in a new one, I think it loads in as wp-config-sample.php and doesn't normally overwrite your wp-config.php file.

    If you did overwrite everything, you may end up back into a fresh install I think, and the system may ask you for all the database information as though it were going to do a new installation from scratch.

    Do you have backups where you can just quickly start from scratch and attempt the upgrade from the beginning again? Sorry, I hope I'm helping and not hurting...

  19. dandick
    Member
    Posted 3 years ago #

    Joel,

    I wonder if Step 1 of the Manual Update might have thrown you off when it said that if you copy the upgrade files into your installation that wp-config.php won't be overwritten.

    If somehow you removed the wp-config.php file, that would wipe out the file that tells wordpress how to log into your database.

    Do you have an old copy of your wp-config.php file? If not, are you able to log into your database, say, using phpmyadmin via the web or mysql from the command line? Do you have backups?

    Dan

  20. dandick
    Member
    Posted 3 years ago #

    By the way, if you try to create the file by hand, usually if your web server and database server are on the same machine, your server name may very likely be "localhost", and many people limit database access to connections from local processes to keep hackers from hacking in from the outside.

  21. dandick
    Member
    Posted 3 years ago #

    One thing I experienced many times with automatic upgrades is that if there is anything in the wp-content/upgrade directory, the upgrade will delay for a long time and then give an error. I also noticed that automatic upgrades of the whole wordpress version will often leave behind a file that won't get deleted when the upgrade is done. I also noticed that some plugins like gd press tools seems to leave behind upgrade files when it is finished upgrading. I found deleting them allows other upgrades to go through fast and successfully.

    However, I'm having a little trouble with one of my normal wordpress upgrades under C-panel again. It seems upgraded but it keeps telling me the upgrade failed and that I need to retry. Retrying leaves a failure message. Yet it says I'm already upgraded to the latest version.

    I hope your problem getting database connectivity was easily resolved for you.

  22. dandick
    Member
    Posted 3 years ago #

    One of my regular wordpress upgrades is being a bit of a pain in the butt at this time. upgrade.php said it was already updated and update-core.php gave the old "Briefly unavailable..." message. I may have to do the manual installation myself :-(

  23. dandick
    Member
    Posted 3 years ago #

    This is weird. After getting the "Briefly..." message in wp-admin and the upgrade/update programs, I just pulled up the website at
    http://save-your-marriage.org this time (sounds the same as the earlier one, but it's different.

    What happened is the site came up looking normal, and then when I went back to the wp-admin page, it seemed to work. I think I'm in the twilight zone...

  24. Do the manual, dandick. Some servers are having memory issues, and I would not be shocked to learn this is causing weird uploads.

  25. dandick
    Member
    Posted 3 years ago #

    I did the manual update and got the "Briefly..." maintenance message again and running wp-admin seemed to get that "Briefly..." message.

    I renamed my .maintenance file to .maintennceold visited
    http://save-your-marriage.org/wp-admin and I got my dashboard with no error messages. Automatic theme updates was a great idea. I still find updating atahualpa seems to take a long time and failed. Probably another C-panel vs. Apache permissions thing.

    I'm way too chatty. I'd better catch up with my wife and hit the sack.

  26. dandick
    Member
    Posted 3 years ago #

    Ipstenu, thanks. Yes, I actually did overlook setting php_value memory_limit to 64M in my .htaccess files.

    Part of the problem with the glitches in, say, upgrading the themes was that I did not empty them out and reinstall from within WordPress 3.0. Perhaps that would be a good idea. It's a little bit of a pain, but not much as I don't generally keep around many themes I don't use, and I don't generally use many themes as it is a bit of a security pain to track them all.

    But, what I seem to run into with the theme updates is that it may be running into a permission problem (or it could have hit a memory shortfall and died without an error message). But, when it failed, it sometimes left a .maintenance file in the root directory of my website, causing me to get the "Briefly..." message once again.

    I'm starting to wish I could copy the things I found along the way, summarize it, and replace all my responses with one concise summary that would be able to benefit others who may run into this problem. Sorry for all the hyper-verbosity.

  27. joelgomez
    Member
    Posted 3 years ago #

    I've tried everything:

    1) Backing up my databases and whole site
    2) Uploading the files of WP3 and overwriting over old files
    3) Didn't work, so I reversed everything, copying the old files again over the new files... and didn't work.
    4) Starting from CERO, installing a fresh copy of WP in anohter directory and is not working (tried using the old database and a new one, but din't work)!

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?

    I'm willing to pay a reasonable fee to someone who can help me with this issue.

  28. joelgomez
    Member
    Posted 3 years ago #

    Why the upgrade of WP3 is causing too much troubles to too many people? I've read several complaints ("requests of help") like mine. I've been using WP for a long time and in several web sites, and I never had this kind of problems. The automatic upgrade always worked flawlessly.

    I think that I've lost all my web site!

  29. joelgomez
    Member
    Posted 3 years ago #

    The problem was solved by a friend. Thank you very much for all your help!

  30. dandick
    Member
    Posted 3 years ago #

    Joel, thanks for the good news. Did you get an idea from your friend what the root of the problem finally was?

    Here's a concise run-down of my experiences with some of my WordPress 3.0 installations (not WordPress-mu) under C-panel in case it might be of use to anyone.

    Dan
    --------------------------------------
    Backups, of course
    I disabled my plugins
    I deleted any leftover junk in wp-content/upgrade
    I ran automatic update to WordPress 3.0. (may take several minutes)
    Sometimes it would hang and then give the "Briefly unavailable"
    I would remove the .maintenance file from the website's
    root directory.
    I would do the upgrade manually.
    I would run http://mysite.com/wp-admin
    If it worked, great. If not, I'd try to see if I failed
    to follow the instructions somehow and correct.
    Most of the time, it finished with success.

    After the core upgrade, there may be plugins or themes to update.
    Again, I delete any leftover junk in wp-content/upgrade, and for me,
    the core upgrade has always left behind some stuff there.
    About 25% of the time, I found my automatic theme updates worked.
    The rest of the time, I found they failed, so I would delete and
    reinstall.
    Upon doing any automatic update, I found a failure of any kind could
    leave behind a .maintenance file which i would remove,
    and then sometimes I would just do a shift-refresh to redo the
    update or try to bring up the desired page again without losing
    the data along the way.

    Once the plugins and themes are updated, I would attempt to
    turn the plugins back on.
    I would also clear the cache for DB Cache, Super Cache, or on my
    VPS without C-panel, I would clear the W3 Cache and turn it back on.
    I would then go to phpmyadmin and optimize any tables with overhead
    and analyze all the tables again.

    I might then go back and pre-populate the caches and log out just to see if everything runs fast and looks good.

    Does this sound like a healthy and effective approach?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.