alex
alex

Reputation: 11400

Allowed memory size exhausted in both Joomla and Drupal

I am trying to set up a website using Joomla and this is the error I get after accessing localhost (right after successful installation process):

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 98304 bytes) in [...]\default_item.php on line 77

The same thing happens when using Drupal (before installation though). I have already tried changing php.ini (in location given by Joomla itself, so it's the right one. Interestingly, website on localhost does not work, while admin panel on localhost/administrator works, that's where I got the file location from) to look like this:

memory_limit = 512M

I also tried putting ini_set('memory_limit', '512M'); inside the script indicated in error and freeing some of my RAM, but still - no success.

I use WebServ, which uses Apache 2.2.6 and PHP 5.2.5.

What more can I do to overrun this problem?

Edit:

Output of phpinfo(); for Joomla

Upvotes: 0

Views: 268

Answers (1)

Techie
Techie

Reputation: 45124

ini_set('memory_limit', '-1'); overrides the default PHP memory limit.

By the way look out for never ending loops. It might be causing the error.

Upvotes: 1

Related Questions