VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: dixonzhai on January 01, 2014, 02:37:27 AM

Title: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 01, 2014, 02:37:27 AM
Hi, I have this error come up when I am trying to update the currency setting in the shop. It happen everytime when I click save when I change the currency.
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 523800 bytes) in /home2/allinauc/public_html/libraries/loader.php on line 366

that happen when I have memory limit set to 64m, if I change it to 512m will be

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 523800 bytes) in /home2/allinauc/public_html/libraries/loader.php on line 366

and if I change it to 1024m:

Fatal error: Out of memory (allocated 1001390080) (tried to allocate 523800 bytes) in /home2/allinauc/public_html/libraries/loader.php on line 366

Please help. thanks
Title: Re: Error message: memory exhausted tried php.ini
Post by: jenkinhill on January 01, 2014, 13:11:42 PM
Which VM version?
Title: Re: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 02, 2014, 01:10:36 AM
Quote from: jenkinhill on January 01, 2014, 13:11:42 PM
Which VM version?

VM 2.0.26a  and Joomla 2.5.17.

I have modified the PHP.ini file already.
Title: Re: Error message: memory exhausted tried php.ini
Post by: AH on January 02, 2014, 13:45:44 PM
There are other posts on here recently with an issue relating to 2.0.26a and memory.

http://forum.virtuemart.net/index.php?topic=121213.0 (http://forum.virtuemart.net/index.php?topic=121213.0)

VM team have not agreed that this is an issue and thus no solutions yet

Title: Re: Error message: memory exhausted tried php.ini
Post by: jenkinhill on January 02, 2014, 13:50:45 PM
So far it has not been possible to reproduce this, except for unpublished related products: http://forum.virtuemart.net/index.php?topic=121213.msg413641#msg413641
Title: Re: Error message: memory exhausted tried php.ini
Post by: AH on January 02, 2014, 13:55:28 PM
So what Jenkin appears to be saying is that "it has been possible" to show a memory leak in VM 2.0.26a

And that the specific instances when this occurs have not been identified or resolved


Title: Re: Error message: memory exhausted tried php.ini
Post by: jenkinhill on January 02, 2014, 15:02:19 PM
I have been able to reproduce it only for unpublished related products only, not for the other couple of reports.
Title: Re: Error message: memory exhausted tried php.ini
Post by: jenkinhill on January 02, 2014, 17:40:12 PM
Right, the site with the memory issue I saw has now been moved to a better server using Akeeba Backup and the memory error is gone.

@dixonzhai where is your site hosted?
Title: Re: Error message: memory exhausted tried php.ini
Post by: AH on January 02, 2014, 18:32:04 PM
Jenkin

I cannot imagine that this issue  is related to a server as it started appearing in vm 2.0.26a on sites already running.

I had the issue when updating on localhost in the frontend when trying to complete an order using paypal

Got the loader.php error

After much messing, the error no longer showed, I put this down to dodgy cache etc, as I never really tracked it down.

It seemed pointless wasting time trying to isolate my configuration etc.

Better that the devs look at what they changed between the versions and let them work from there??
Title: Re: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 03, 2014, 05:07:05 AM
Quote from: jenkinhill on January 02, 2014, 17:40:12 PM
Right, the site with the memory issue I saw has now been moved to a better server using Akeeba Backup and the memory error is gone.

@dixonzhai where is your site hosted?

It is hosting by crazydomains which is one of the largest domain and web hosting company in Australia. The web link is http://www.crazydomains.com.au. Cheers
Title: Re: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 03, 2014, 05:17:15 AM
I only have one product in the shop at the moment as I am testing the site. The product is published and it happen when I am trying to save the currency settings. I cannot change currency. I have disable all the currency except for AUD and RMB. I am not sure if this cause the problem. But I only need these two on the site anyway.
Title: Re: Error message: memory exhausted tried php.ini
Post by: jenkinhill on January 03, 2014, 10:26:43 AM
Did you unpublish the non-required currencies or delete them? The code for Chinese renminbi yuan in VM2  is CNY - if you try to use RMB you will get an error.
Title: Re: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 03, 2014, 11:34:17 AM
Quote from: jenkinhill on January 03, 2014, 10:26:43 AM
Did you unpublish the non-required currencies or delete them? The code for Chinese renminbi yuan in VM2  is CNY - if you try to use RMB you will get an error.
I only unpublished them. I didn't delete them. Do I need to delete them?
Title: Re: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 03, 2014, 12:07:12 PM
I just published all the currency, and pick any one of the currency as the main one but still come up the same problem. I also published all the categories and product (only 1) as well. Please Help
Title: Re: Error message: memory exhausted tried php.ini
Post by: shopper999 on January 03, 2014, 12:58:33 PM
Could you please create a blank file
"/logs/com_virtuemart.log.php"

and try again?
(Problem described in detail: http://forum.virtuemart.net/index.php?topic=121130.msg413744#msg413744)  (link updated by mod)
Title: Re: Error message: memory exhausted tried php.ini
Post by: Milbo on January 03, 2014, 13:06:07 PM
We found it, please look here http://forum.virtuemart.net/index.php?topic=121130.msg413744#msg413744
Title: Re: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 04, 2014, 11:41:14 AM
Quote from: Milbo on January 03, 2014, 13:06:07 PM
We found it, please look here http://forum.virtuemart.net/index.php?topic=121130.msg413744#msg413744

Thanks. However, I have another error message come up now
vmError: VmTable #__virtuemart_vendors_zh_cn Check not passed. Neither slug nor obligatory value at vendor_store_name for auto slug creation is given

what should I do with that? Thanks again
Title: Re: Error message: memory exhausted tried php.ini
Post by: dixonzhai on January 04, 2014, 11:46:37 AM
I think it maybe something to do with the multi language stores. When I change the setting from chinese back to english(GB) it comes up this error
vmError: VmTable #__virtuemart_vendors_en_gb Check not passed. Neither slug nor obligatory value at vendor_store_name for auto slug creation is given

thanks.