White Screen of Death in Mamp--Memory set at 32

sambtaylor - December 16, 2007 - 12:42

I have no problems using Drupal online, but I am having trouble using Drupal locally using MAMP. I am getting the WHITE SCREEN of DEATH whenever I add a module. THe admin page will disappear, and sometimes other pages. The only way I can get the page back is by uninstalling the module manually in phpmyadmin by setting the status to 0. Then the admin page returns. I have memory set to 32 MB and I have also tried it higher.

Can anyone help me out with what might be causing this. Using Drupal 5.5 in Mamp 1.7.1 on OS X 10.5.

Same Problem

tonymiceli - December 16, 2007 - 14:49

i'm having the same problem with mamp. my site works fine online. i can install a new installation on mamp and all works fine, however when i bring the new database up, i have problems.

i haven't been keeping track carefully of what i was doing, just trying things to get it work. in my mind, i keep wondering if it could have anything to do with the theme? otherwise things seemed weird when i messed with the audio or video module. and also i noticed that when i set the same modules up on mamp as on my online site, there were less tables then online. so the next thing i was going to try was to do a new installation and use the same modules and then copy the tables over one at a time, until i had the problem.

mine doesn't do it unless i bring my online stuff over.

is this at all similar to your problem? not the i reread yours it sounds a little different?

phew i hope others have solved this problem!

tony

oops

tonymiceli - December 17, 2007 - 02:42

i forgot i reinstalled mamp. my problem was my memory limit.

How do you change memory?

ygg - December 29, 2007 - 16:13

Ok...I am having the exact same problem sambtaylor.

I am extremely new to Mamp, but very excited about its potential in my development process. How do you change the Memory?

It is probably something simple I should know, but I am primarily a designer not a developer. Drupal is just too awesome not to use for...well...anything.

PHP Memory

HotDrupal.com - December 29, 2007 - 17:42

You might be able to bump your PHP memory limit in your .htaccess file. Figure out how much memory is allocated by default, then bump it a *small* amount. If your provider lets you do this, they will get really mad if you do something like "256MB" :P

What do I mean by small amount? If it is currently 8MB, try 16MB. If it's 16MB, try 24MB or 32MB. If it's 64MB or higher, the chance of the problem being PHP memory related is getting smaller .....

Try:

<FilesMatch "\.(php|html?)$">
       php_value memory_limit 20M
</FilesMatch>

or just plain:

     php_value memory_limit 20M

in your .htaccess file.

You can check your PHP memory limit by creating a small PHP file with phpinfo() call. Try this before changing .htaccess, and then after changing .htaccess.

To create a file, open or upload this code into a file named example.php:

<?php
   phpinfo
();
?>

Let me know what you find.

Steve
HotDrupal

Thanks for the help

ygg - December 30, 2007 - 04:55

I actually finally figured it out from another source. Using MAMP I had to set it in my php.ini file if I remember right.

However, now I know what I will have to do if i run issues on my host.

I am curious as to why you say not too much. I am not extremely familiar with mySQL like I would like to be. However, I am developing a large community based site with many many features and many modules. Should I be concerned w/ the amount of space my database is using or does it matter?

I'll be running modules like...
Organic Groups
CCK
Views
eCommerce
OG Forums
CAPTCHA
and many others.

Is there a point I should get concerned at?

Thanks

=-=

VeryMisunderstood - December 30, 2007 - 05:09

The more modules you run the more memory you will need.
The more users on your site that are logged in the more MySQL resources are needed.
Therefore the larger your community grows the more of a necessity a VPS or dedicated server will become.

If you have shell access there are resources you should seek out that will help you benchmark drupal on your server. Though if you are on a shared server, I don't suggest this as you can bring the server to a grinding halt and have your account blocked.

The point at which you should get concerned is dependant on your host.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

 
 

Drupal is a registered trademark of Dries Buytaert.