• Hi All.

    I am on 4.2.1 but would like to update it to the latest version. But when I click on update wordpress it will download the package and then say

    Enabling Maintenance mode

    And then get stuck. It wont proceed further than that. I can then click on another option on the front end and it will go to that section. Ie I can click on posts and it will go to the post section, then I click on updates and it goes to the updates page, and I see the update still in there for me to update it.

    I can update themes and plugins fine, install new plugins just not update it to the latest version.

    I am unsure by downloading the latest software and then uploading it via FTP if it will screw anything up.

    Thanks for any help in advance.

    Lionel

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    try MANUAL updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old copies of files & folder on your server before uploading the new ones. Read the Manual Update directions first.
    If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter leo2099

    (@leo2099)

    Hi Tara.

    Ok I have uploaded the wordpress files and didnt copy the wp-content folder or the wp-config.php file.

    But now when I go to the website.co.za/wp-admin i get the option to update the database and I click on update, but it goes to a blank screen.

    So not to sure how long I am supposed to wait before I can go to the wordpress front end panel as I have tried to update it in chrome, firefox and IE but it still goes to a blank page

    https://www.isoftnet.co.za/wp-admin/upgrade.php?step=1&backto=%2Fwp-admin%2F

    It just displays that.

    I have backed up the website though.

    I overwrote the files when I uploaded via FTP.

    I will give it a little while before I maybe remove those files and try again, or I will restore them from the backup.

    Thanks again for your help.

    Lionel

    Moderator t-p

    (@t-p)

    Try:
    – resetting the plugins folder by FTP or PhpMyAdmin (read How to deactivate all plugins when you can’t log in to wp-admin”” if you need help). Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – If that does not resolve the issue, try switching to the unedited default Twenty Fifteen theme for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP or whatever file management application your host provides. Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If all the above steps do not resolve the issue, then try MANUALLY re-uploading all files & folders. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old copies of files & folder on your server before uploading the new ones. Read the Manual Update directions first.
    – running the upgrade manually via wp-admin/upgrade.php

    Thread Starter leo2099

    (@leo2099)

    Hi Tara.

    It is quite weird. I renamed the plugins folder to plugins.old and changed the theme to the standard theme, and ran the update but I get this message in the error logs.

    [Thu May 14 11:18:26 2015] [error] [client 41.164.31.178] PHP Fatal error:
    Allowed memory size of 268435456 bytes exhausted (tried to allocate 523800 bytes)
    in /var/www/sites/devel.co.za/wp-admin/includes/file.php on line 159,
    referer: https://www.isoftnet.co.za/wp-admin/update-core.php?action=do-core-upgrade

    I then look at that file on line 159

    file.php (159)
    return wp_tempnam( dirname( $filename ), $dir );
    }

    So not to sure what that means.

    I also then removed everything from the server besides the wp-content folder and wp-config.php file and copied 4.2.2 via ftp upload. But when I tried to access the site the page is just white.

    So I am not to sure what went wrong there.

    I just recovered from a backup.

    Not to sure what that error message says though…

    Thanks again for all your help.

    Moderator t-p

    (@t-p)

    Try increasing memory available for php.

    Thread Starter leo2099

    (@leo2099)

    Hi Tara.

    I put this command in the wp-config.php file

    define( ‘WP_MAX_MEMORY_LIMIT’ , ‘512M’ );

    But that didnt work…not to sure if that is the right file or right command?

    Thanks

    Lionel

    Moderator t-p

    (@t-p)

    – first, if your site is hosted on a remote server, then you need to talk to your hosting provider, because, many hosts set the PHP limit. Implication is that you may increase the memory as much you want in your config.php, but may not do anything because of the limit set by your host!

    So, get in touch with your hosting provider and sort this out. If the let you increase, then try the other command:
    define( ‘WP_MEMORY_LIMIT’, ’96M’ );

    Play with the “96” figure depending on how much the host let you increase.

    – Second, if you are on a local server, then it’s different. Read the manual of your server how and where to increase the memory.

    Thread Starter leo2099

    (@leo2099)

    Hi Tara.

    I spoke to the hosting company and they increased it to about 800mbs on their side.

    I then edited .htaccess
    php_value memory_limit 1024M

    I then also edited wp-config.php
    define(‘WP_MEMORY_LIMIT’, ‘1024M’);

    I also created a file in wp-admin\php.ini
    memory_limit = 1024M ;

    Ive played around with the limit size…dont know how big to make it or what to change.

    As I still get the same error.

    Thanks for all the help so far.

    Lionel

    Moderator t-p

    (@t-p)

    That’s a lot of memory!

    Probably something else going on too.

    Check if you see a file called .maintanence file where wordpress is installed with your ftp client or host’s file manager? yes? delete it.

    Also check the ‘Update” folder in the wp-content directory.

    WordPress will dump a load of files in there during an upgrade. If the process is interrupted you will end up with files that may be interfering with your site.

    By default this folder is empty, its just a temporary space WordPress uses during an update cycle.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Not Updating,..Stuck on Enabling Maintenance mode’ is closed to new replies.