News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[Solved] Out of Memory Error Apparently Related to SEO

Started by cmb, November 27, 2012, 20:29:55 PM

Previous topic - Next topic

cmb

I have installed VirtueMart 2.0.14 on a Joomla 2.5.8 Website. I have one category and one product. There are no images and no custom fields. Caching is disabled.

When I select a link to a category layout in the front end, I encounter this and similar errors:

Fatal error: Out of memory (allocated 29622272) (tried to allocate 7680 bytes) in /home/sgenetic/public_html/sitetest/al/libraries/joomla/application/categories.php on line 100

In various tests that I have run, the "tried to allocate" value, the file name and the line number may vary. If I change the menu item to link to the product detail, the results are similar.

I have verified that the PHP setting for memory_limit is 128M.

If I disable the Joomla and the VirtueMart SEO, the menu links work occasionally. At other times I see:

Fatal error: Out of memory (allocated 29622272) (tried to allocate 76 bytes) in /home/sgenetic/public_html/sitetest/al/libraries/joomla/base/object.php on line 194 or similar messages.

How can I repair this Website?

VirtueMart 2.0.14, Joomla 2.5.8, Apache server, PHP Version 5.3.15
Charles

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

cmb

Quote from: bytelord on November 27, 2012, 21:49:06 PM
Increase you php memmory limit...
How high should I go? I'm already at 128 megabytes and the error is at fewer than 30 megabytes.
Charles

bytelord

Hello,

Are you sure you have increase your memory? Did you restart apache? is local host or on a live server? did you try the .htaccess file?

If you use a live server and you cannot change your php limits please ask your provider to do it for you (may be is locked).

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

cmb

Quote from: bytelord on November 27, 2012, 22:09:50 PM
Are you sure you have increase your memory?
Yes, I verified it by changing it in .htaccess. I can see the change in phpinfo(). It is really at 128 megabytes. The error occurs way down at 29+ megabytes.
Charles

bytelord

This one related to joomla libraries, but did you restart your apache?
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

cmb

Charles

bytelord

Strange, but you could change your php.ini file ...
If you use a VPS you could restart your node through whm/cpanel or ask your hosting provider to increase it for you.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

cmb

Quote from: bytelord on November 28, 2012, 00:27:04 AM
Strange, but you could change your php.ini file ...
My host requires changes in the PHP configuration to be made through the .htaccess file. Any php.ini files are not recognized. The former works great, though.

The strange part is that the failure is intermittent. I thought I traced it to the SEO settings. It worked once or twice. Now I get the fatal error with all the SEO disabled.
Charles

bytelord

Try to ask from your hosting provider to increase the memory size and the the timeout limits for your PHP

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

cmb

Quote from: bytelord on November 28, 2012, 00:32:47 AM
Try to ask from your hosting provider to increase the memory size and the the timeout limits for your PHP
I can easily set it myself. The memory limit is set to 128 megabytes and the maximum execution time is at 30 seconds. The fatal error occurs well below those limits. About 30 megabytes and 2 or 3 seconds.
Charles

bytelord

#11
Not sure, your error related to joomla category library ... try also under joomla forum...

http://forum.joomla.org/viewtopic.php?p=2591157#p2753608

try also .htaccess file is everything is ok, also check the mod_rerwite under joomla configuration
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

cmb

Quote from: bytelord on November 28, 2012, 00:41:08 AM
Not sure, your error related to joomla category library ...
The errors are reported in various libraries. Sometimes it's categories. Sometimes elsewhere. It depends on what Joomla is doing when it runs out of memory. It only happens when I'm trying to get to the VirtueMart page, though.
Charles

bytelord

I don't know

I still think that is related to your PHP memory size, even joomla standard installation need 128mb, please contact your hosting provider, you may see that the allocated memmory is 128mb but maybe the server configuration block's it.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

cmb

Quote from: bytelord on November 28, 2012, 01:21:42 AM
...please contact your hosting provider, you may see that the allocated memmory is 128mb but maybe the server configuration block's it.
My hosting company reports that memory_limit is set to 256M, so there's no blockage on that score.
Charles