Hello,

I've just uploaded a load of modules (Ubercart and related ones) and enabled some of them as a next step but I got this error message when clicking save... (I can't remember the exact bytes so i've put ?? around it).

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate ?916? bytes) in /home/sites/spinninghat.com/public_html/includes/database.mysql.inc on line 41

Now everytime I try to go to the Modules list, I get this error message...

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 340538 bytes) in /home/sites/spinninghat.com/public_html/includes/database.mysql.inc on line 301

Has anyone got any ideas?

Thanks,
N

Comments

pillarsdotnet’s picture

Try increasing the PHP memory_limit value.

Assuming that your website is on shared hosting, one way to do this would be to add a line to your .htaccess file, as follows:

php_value memory_limit 32M 

The web is like usenet, but
the elephants are untrained.

Good. — Fast. — Cheap.
(Pick any two.)

monkfish4d’s picture

thanks!

I've increased it by modifying the php5.ini file...

Is there a reason when .htaccess is the better approach?

Thanks,
N

pillarsdotnet’s picture

Many shared-hosting providers will let you set php values via .htaccess but won't let you edit the php.ini file.

I always set values in the ini file myself, but some don't have that luxury.

The web is like usenet, but
the elephants are untrained.

Good. — Fast. — Cheap.
(Pick any two.)