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

Out of memory after checkout

Started by cr33, January 01, 2014, 00:04:13 AM

Previous topic - Next topic

cr33

On the 'confirm checkout' step I'm getting this:

Fatal error: Out of memory (allocated 364904448) (tried to allocate 523800 bytes) in /home/[removed]/libraries/loader.php on line 366

( this URL: https://buddyrest.com/component/virtuemart/cart/confirm?Itemid=0 )

I upped the PHP memory limit to 512M - the only difference is that it takes longer to run out of available memory.

This is happening after an upgrade to 2.0.26a

Server is running PHP 5.3.  I've disabled all template overrides and also any third-party plugins that integrate with VM.  I also reset the VM config from file (on the VM Tools section).

Any ideas?  Where can I look next?  Client is freaking out and I'm running out of ideas :(




reinhold

 I had a similar problem in my test environment, after I had installed the tcpdf package that is available at extensions.joomla.org ... Removing the tcpdf package and restoring the VM files (in particular the tcpdf library installed by VM) solved the issue for me.


cr33

@reinhold: I think I saw your thread, but your OOM error was coming from the tcpdf file, not loader.php correct?  And I don't have any third-party PDF extensions.

I installed 2.0.24c over 2.0.26a and the problem is now gone.

Any further ideas?  I was getting OOM on all products BTW - ones with custom fields and simple ones without.  I don't think there are any parent/children products or even related products in this site.

AH

I think the VM team are looking into the memory leaks introduced in 2.0.26a
Regards
A

Joomla 4.4.5
php 8.1

shopper999

#4
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)

James91

Quote from: shopper999 on January 03, 2014, 12:21:30 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)

I had the same problem. I updated VM to version 2.0.26a ...
I couldn't even get an out of memory error after the "confirm checkout" step. The page was just blank. Tried to find the reason for many hours.

And adding "/logs/com_virtuemart.log.php" solved the problem. Thanks !

shopper999

You often see only a blank page, but the error is still in the server logfile.

This is depending on the php settings for

error_reporting or display_errors


In productive systems, there should only be a blank page, so that an attacker can't see, what's going wrong on your server.
If you have a look into your apache/php logfiles, you can see the error.

Tey

Im having the same issue, couldnt find a solution for hours.
Creating this blank Log file didnt solve the Issue for me.

[Sat Jan -------- 2014] [warn] [client xxxxxxxxxxxxx] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated -1192755200) (tried to allocate 35 bytes) in /var/www/vhosts/xxxxxxxxxxxxxxxxxxx/httpdocs/xxxxxxxx/libraries/joomla/error/error.php on line 175, referer: http://xxxxxxxxxxx/xxxxxxx/component/virtuemart/cart?Itemid=0


Memory limit is set to unlimited, this cant really be a lack of resources ( 6GB RAM available).
Anyone has a solution for this?

shopper999

Update to 2.0.26d.
Directly download the package: http://virtuemart.net/downloads

Don't think about, why the installer in the backend, doesn't inform you about the "d" update, or tells you after the update, that "c" is newer.
Simply download the package, install, and have fun ;-)