I've had problems with a drupal site I made for a client. The web host's php memory is a bit too low for drupal's liking. The site runs ok but when I try to do things like go to administer modules, i get a memory limit error. I've talked to the webhost and they aren't willing to work with me. Until the contract is up, I'm making this work. I have a working server at home where I first created the site before putting it online. To workaround the limits on the online site, I download the mysql backup and load it on my home server. I make the module changes or whatever I need and then export and load the mysql back on the online server. Today that quit working. My php memory limit is 64mb but all of a sudden I'm getting this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 712931 bytes) in /httpd/html/ufipcz/www/store/includes/database.mysqli.inc on line 303
That doesn't seem right to me. Headache is mounting... lol
Any help? Thanks
Comments
.
I don't think this is an untrue value. If Drupal's own admin/reports/status page says it is 32M then that is how much Drupal gets, and what you need to check is why.
1. Run a phpinfo() (http://drupal.org/node/59680) inside Drupal's directory to see which php.ini file Drupal is using.
2. PHP memory_limit can be set in three places: php.ini, .htaccess per directory, and ini_set() at runtime, usually in your settings.php (http://drupal.org/node/207036). The latter override the former. A runtime setting overrides all.
Also note that theoretically it is possible that you are right. If drupal reports 64M, you may still hit an apache limit and get a PHP "out of memory" error at a lower value. I just find it unlikely that any competent host would set an apache limit so low. See my comment in http://drupal.org/node/371789#comment-1334640
doh
Well, this kind of thing happens when I stare at my monitor too long. As it turns out, I forgot that my hosts file makes my browser show me my local site if I omit the "www" in the url. That was the problem. Sorry to trouble you.