VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: berd27 on October 11, 2013, 18:22:44 PM

Title: Blank white page - Allowed memory size of 134217728
Post by: berd27 on October 11, 2013, 18:22:44 PM
Hi,

I have the following problem, I have about 15 categories and several subcategories added, so far so good, but now when i want to add category number 16 I get a blank white page. So i checked the logfiles what happend. The log files gives me everytime i want to add a new category the following error:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 17440 bytes)

I have set the server to 128 MB of memory which should be more than enough, after some Google search i found out that this is often caused by bad programming.

"This helps prevent poorly written scripts for eating up all available memory "
http://www.php.net/manual/en/ini.core.php#ini.memory-limit (http://www.php.net/manual/en/ini.core.php#ini.memory-limit)

So what is going on here? I can set 128 MB to 256 MB but when I raised this limit then the server from memory by running a PHP script to query several times

-- cheers --
BerD
Title: Re: Blank white page - Allowed memory size of 134217728
Post by: Maxim Pishnyak on October 11, 2013, 18:57:17 PM
Bad written scripts should be any complex scripts like shopping cart systems I must admit. Complexity is not bad thing in e-commerce you know.

Yes, you should use 256 MB.
Quote from: berd27 on October 11, 2013, 18:22:44 PM
I can set 128 MB to 256 MB but when I raised this limit then the server from memory by running a PHP script to query several times
I don't understand you.
Title: Re: Blank white page - Allowed memory size of 134217728
Post by: berd27 on October 11, 2013, 19:02:25 PM
Thanks for the reply.

What i mean is the following:

If I increase the memory then the server can run out of memory because of when the PHP script is request several times

--cheers--
Title: Re: Blank white page - Allowed memory size of 134217728
Post by: Maxim Pishnyak on October 11, 2013, 19:05:53 PM
Could I see error for 256 Mb case? Is it clean Joomla 2.5 with VM 2.0.24?
Title: Re: Blank white page - Allowed memory size of 134217728
Post by: berd27 on October 11, 2013, 20:33:21 PM
Yes, it is a clean Joomla 2.5.X with Virtuemart 2.0.24. I did not increase the memory yet, i only get this error on the 128MB.
But i think it is very strange that it uses that much amount of memory for just adding category.
Title: Re: Blank white page - Allowed memory size of 134217728
Post by: jenkinhill on October 11, 2013, 23:36:11 PM
Joomla 2.5 does work best on 256Mb even without VirtueMart. Previously a reason for memory issues while adding a product or category has been that the image file size was too big.
Title: Re: Blank white page - Allowed memory size of 134217728
Post by: berd27 on October 12, 2013, 09:27:21 AM
Quotethe image file size was too big.

Do you mean the image file of the uploaded category / product image?
Title: Re: Blank white page - Allowed memory size of 134217728
Post by: jenkinhill on October 12, 2013, 11:06:23 AM
Any of them, depending on what was being saved at the time. Otherwise, turning on Joomla error reporting and VM debug may help track the issue.