General Question

manuel_alarcon's avatar

Why do i get a memory allocation error in Joomla 1.5?

Asked by manuel_alarcon (242 points ) December 15th, 2010

Hi, Im developing locally a site in joomla 1.5, and when I try to install any image component, everytime I preview a page with images where this component are the server returns me a memory allocation error. I tried the last component, didnt work, so i uninstalled it, but now, when i try to go to the article manager page, the system throws me the infamous memory allocation error that is this:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 266241 bytes) in C:\AppServ\www\futbol\libraries\joomla\environment\response.php on line 176

Why am I getting this Joomla allocation error? Maybe its some variable i didnt check in the installation process.
I recently reinstalled Joomla (i wanted a clean install for order purposes) and i restored tons of articles and tags info from the database and, you see, I really dont want to do this again… The entire system works fine, only the article manager is… fryed. how can i search and fix the problem?

Observing members: 0 Composing members: 0

2 Answers

funkdaddy's avatar

The error is generated by PHP, so the variables would be there instead.

Here’s an article for Drupal specifically

From that:

—————————————

That indicates that Drupal needed more memory than PHP was allowed to give it.

Increase PHP’s memory limit, e.g. to increase it to 32M you could try adding:

* memory_limit = 32M to your server’s main php.ini file (recommended, if you have access)
* memory_limit = 32M to a php.ini file in the Drupal root
* ini_set(‘memory_limit’, ‘32M’); in your sites/default/settings.php file
* php_value memory_limit 32M in your .htaccess file in the Drupal root

—————————————

On your own box, for development, probably go with the top option.

manuel_alarcon's avatar

Yes, I realized something like that going on… but I didnt wanted to upload nothing to another server until I get this right; maybe online I wont have that problem. Ill try fixing it locally, but anyway Ill upload Joomla to a remote server just to see if it runs.
Thanks!
PD: woops! I have 128MB in my php.ini file…

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther