I had a perfectly working Drupal 6.1 site. After upgrade through Fantasico (which was without problems, except for the loss of my images folder and all the contributed moduls and themes. I put everything back, but some features are not working.

The colorable themes do not apply the color changes, although it shows in the preview and it is saved (the code is created). I can't install any new theme - i upload them to the themes folder, but they don't display in the "theme list" so i can't choose it! I therefore can not create a new template, because it is not being read.

I am logged in as an administrator and i have enabled all the modules for administrator to use. Therefore i don't think it is a permission issue. All the functions were working properly in my original version 6.1. (except for the Tiny MCE - which was just a mess).

Tiny MCE is still a mess after my Drupal core 6.2 upgrade, so i disabled it and downloaded FCK editor. This editor doesn't stretch the window sideway like Tiny MCE, but doesn't work either. The fancy changes made to the text are not saved, images are not inserted, it all disappears after pressing the "save" or "preview" button. So i keep turning off the editor and using the HTML together with Image Assist (didn't let me down yet).

What worries me now is that the Image Import stopped working and keeps coming up with "Fatal errors"!!
It complains that the memory is exhausted! (so i deleted few images from the image gallery folder, thinking i would free some space). The error always appear on different line (not that i would know what to do with it if i could allocate it).

Here is my Error log:

[14-May-2008 14:08:39] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19 bytes) in /home/housebuy/public_html/dru/includes/theme.inc on line 591
[14-May-2008 14:09:07] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 43 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 2198
[14-May-2008 14:13:28] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 131 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 2173
[14-May-2008 14:45:13] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 176 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 2173
[14-May-2008 15:41:05] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 47 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 1996
[14-May-2008 15:55:34] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 50 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 1996
[14-May-2008 16:01:04] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/housebuy/public_html/dru/includes/theme.inc on line 553
[14-May-2008 16:02:33] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 2161
[14-May-2008 16:43:33] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 40 bytes) in /home/housebuy/public_html/dru/includes/theme.inc on line 591
[15-May-2008 07:03:53] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 44 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 2161

Does anyone have a clue what this is and how to go about sorting it??
This is my Dissertation project and it's due in less than a week!!
I'm not doing any more upgrades or downgrades as the site must be on the web (working), I'm hoping for some quick fix if that's possible. I can't upload any more images to work with, that's the biggest of my worries.

Thanx for any suggestions.

Am using Mac OSX and Windows XP,
Apache version 2.2.6 (Unix)
PHP version 5.2.5
mySQL version 5.0.45 community

Comments

stevenpatz’s picture

Priority: Critical » Normal
ErikaC’s picture

Than you,
i tried out the suggestions to increase PHP's memory limit but:
[• memory_limit = 12M to your php.ini file (recommended, if you have access)]

i have no access to this file (it doesn't even exist in my cPannel? search hasn't found it)
- so i contacted my hosting service provider and am waiting for a reply.

i also tried:
[• ini_set('memory_limit', '12M'); in your sites/default/settings.php file]

and increased it to 12M, but i got the message saying:

Your PHP settings limit the maximum file size per upload to 2 MB.
Depending on your server environment, these settings may be changed in the system-wide php.ini file, a php.ini file in your Drupal root directory, in your Drupal site's settings.php file, or in the .htaccess file in your Drupal root directory.
---------------------------------------------------------------------------------------------------------

I still think that the problem is not my maximum file size per upload (2MB), but my max. memory allowance.
memory_limit: Maximum amount of memory a script may consume (32MB)

judging by the error message:
----------------------------------------------------------------------------------------------------------
[16-May-2008 02:48:41] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 43 bytes) in /home/housebuy/public_html/dru/includes/form.inc on line 2194

I therefore emailed to my hosting service provider and asked for the memory limit to be extended.
----------------------------------------------------------------------------------------------------------

Still, i would like to know how can i free up some memory in Drupal, because the obvious doesn't seem to work.

I tried:
I deleted some images from my image gallery
I disabled many modules
I uninstalled two modules
and i run the Cron.

None of these helped me to free up some memory!!
Are this items still being kept somewhere? where? how to get rid of them?

How do I keep my memory usage low?

Thank you for suggestions.

Anonymous’s picture

12M is very small; make it about 32M or 64M. Instead of settings.php you should add to .htaccess php_value memory_limit 64M.

I assume you executed the upgrade.php script?

Your problem with the display not changing is probably a cache somewhere. Try emptying the Drupal cache tables and the browser cache.

ErikaC’s picture

I contacted my hosting service provider and asked for a bigger memory allowance. They wrote me back saying that they extended my memory.

"We have now placed a php.ini inside your 'public_html/dru' folder. The memory_limit has been set to 64M and upload_max_filesize to 8M."

This solved the error message problem, but the "image import" is struggling to import even 18K!! In fact it is stucked!
I feel that i need to clear something somewhere. Catching - i have never enabled it, so i can work on the design and changes are showed instantly.

I emptied the Drupal cache tables like you suggested (just in case something was there, although it shouldn't).
I also emptied the browser cache (i believe it's the matter of clearing the history in Safari)
(am using Mac OSX, if this info helps anyhow)

What am i to do with the upgrade.php script?
I'm not in favor of upgrading if this is going to whip everything out like it did after my upgrade to Drupal 6.2!!
I was left with the Drupal core only and lost everything else (my images folder, my contributed themes and modules)!!
I have no time for a major repair, as this project is due in less than a week!!

thomas23@drupal.org’s picture

Hi there.

Every once in a while I have the same fatal error. But besindes this error message (which is especially enoing for visitors to my sites with no information how to get out of there) everything seams to be fine. Actions I sumitted, e.g. install module, update, upload something, whatever, seam to be carried out anyway.

So far I've had this only in drupal core modules/files like common.inc (I think it was) or image.gd.inc

By the way, I noticed requested mem always has been far less than the limit (which is 36MB here). Is that only because the error is "thrown" by the "last bit" that doesn't fit into memory or is that curious?

Cheers.

ztyx’s picture

Title: Issues after upgrade to 6.2 » Memory issues after 6.1 => 6.2 upgrade
dpearcefl’s picture

Is this still an issue using current Drupal 6? If it is, please change the issue title to reflect the new issue.

stevenpatz’s picture

Status: Active » Closed (cannot reproduce)