Hi,

I have just uploaded the Drupal 7.39 core files (except the sub folder "sites") via FTP and when I go to my website it says I need to update Drupal core. I did it twice to make sure all files were uploaded.

I cleaned the cache it didn't help and triggered a Fatal Error.

Then I tried to run the update.php script but I get a Fatal Error.

Comments

edward.radau’s picture

You said it triggered a fatal error, what was the error? I would check bootstrap.inc and look for

define('VERSION', '7.39');

to verify that at least THAT file got uploaded. Without knowing the error the first thing I would do is check whether all files were correctly uploaded and merged with the existing ones however you said you already checked that.

esmitex’s picture

Every time I run a database update, I get the following Fatal Error

Fatal error: Out of memory (allocated 62390272) (tried to allocate 40 bytes) in /homepages/5/d578771729/htdocs/smq/includes/cache.inc on line 438

I checked the bootstrap.inc file, it is correct. I also re uploaded the files via FTP and merged with the existing ones twice again.

I still see that I need to update to version 7.39

Michael-IDA’s picture

Not a Drupal issue, you're out of memory :(

If you have command line:

# php -i | grep mem

Should show something like:

memory_limit => 512M => 512M

Use your Control Panel (WHM/cPanel/webmin, etc) to up your PHP memory limit. If you have a Gig or more ram, bump it to 512M, otherwise try 256M.

Best,
Michael

Drupal Hosting

NIH Cancer Study: Supplemention with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.

esmitex’s picture

I brought the php memory_limit up to 512M with php.ini and cleaned the cache. I tried to run update.php but it says there are no updates pending and re-uploaded the drupal core files and merged files via FTP. I still see that I need to update the core. I read the release note, the .htaccess files wasn't modified. Maybe I should upload the "sites" folder too. Usually I don't and it works fine. Is there a way to update via SSH?

I got another "Fatal error: Out of memory (allocated 66060288) (tried to allocate 40 bytes) in /homepages/5/d578771729/htdocs/smq/includes/cache.inc on line 438" while opening the config menu.

edward.radau’s picture

Did you restart the server? Changes to the php.ini like that won't take effect until the server is restarted. Because 66060288 bytes is only about 66MB. You should have more than enough if you increased it. Unless the entire server itself ran out of memory which would be a separate problem. And yeah for core updates I would merge everything even though the sites folder doesn't seem to have anything anyway.

As far as update via SSH you could use either scp -r or rsync depending on what you're trying to accomplish.

Michael-IDA’s picture

Is there a way to update via SSH?

Yes, see: https://www.drupal.org/node/2569639#comment-10337763

Best,
Michael

Drupal Hosting

NIH Cancer Study: Supplemention with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.

esmitex’s picture

Somehow, I couldn't fix it for the aforementioned version. Today, I installed the 7.41 version and now everything is fine and up to date.