Installing cck or views modules produces blank admin and or modules pages.

Apache error log:
[Sat Apr 14 18:00:53 2007] [error] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /Users/myname/Sites/drupal-5/includes/install.inc on line 41
[Sat Apr 14 18:00:53 2007] [error] [client 10.0.1.201] File does not exist: /Library/WebServer/Documents/favicon.ico

Looks like a PHP memory error, but I don't know how to fix it. I have increased the memory allotment in php.ini with no result.

Any ideas?

Thanks.

Comments

timatlee’s picture

I'm experiencing the same issue...

It seems to crop up when installing Views.

After using Drupal on many many sites, trying to install and demo it for a client is producing this error (on a different hosting provider).

A few refreshes later, navigating to the home page and going to the Admin section, kicks up an error in cck.install (which has already been installed, and is working well):

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /var/www/d5/sites/all/modules/cck/content.install on line 450

After a refresh, I get:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /var/www/d5/sites/all/modules/cck/content.install on line 494

If I go into the system table and delete the entry for views, everything works fine. Go back to admin/modules, re-enable views, I get:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /var/www/d5/includes/install.inc on line 41

It seems that I am getting prompted to enable another module when this error comes up - the URL is http://demo.domain.com/admin/build/modules/list/confirm when this error comes up.

I am using Drupal 5.1, freshly downloaded earlier this week. Other modules enabled are:
- Content (and Text)
- Color
- Content
- Forum
- Help
- Menu
- Path
- Search
- Statistics
- Taxonomy
- Tracker
- (omitting core required modules)
- Image
- Image Gallery
- Pathauto
- Taxonomy Access Control
- Update Status

And trying to install Views, Views_ui, etc.. version 5.x-1.6-beta5 (fresh off the site, again).

All modules are at whatever version that is currently available from the site, or that Update Status has advised me to install.

There are no updates to complete as well.

Incidentally, if I disable/remove CCK, the errors are showing up in different places - menu.inc seems to be a big hitter..

I'm anxious to find a fix for this .. any help, direction, or suggestions are greatly appreciated.

Thanks!

neema’s picture

I am having this same problem. Anybody find a fix for it yet?

Anonymous’s picture

As suggested by daringtakers (http://drupal.org/node/163573) you need to up the memory allowed for PHP scripts.

In PHP.INI set memory_limit to something greater than 8M. I went with 20M using MAMP on OSX.

jptaranto’s picture

I was having the same issue (views and cck being enabled at the same time was causing a blank page). Thanks whoiskevin - that worked. I'm using MAMP and upping the memory_limit to 20M in php.ini solved the issue.

Olav007’s picture

Im having the same problem at 16M with the cck module.
Is there anything I can do when I dont have access to the PHP.ini (hosting).

Olav