dOnkSkie Posted November 1, 2014 Share Posted November 1, 2014 (edited) Hi All, We recently experiencing issues in payment processing using PayPal Europe module. Here is the error Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /var/sites/p/domain.com/public_html/tools/tcpdf/tcpdf.php on line 8645 Our php.ini is currently set to 256M memory limit and our website was working find until last week. I've tried setting the php.ini to 512 and 1024 but seems our server default is only up to 512. The error will display after the customer successfully logged in to their paypal account. Below is the code in tcpdf.php on line 8645 which I think is related to images and I don't have any idea why it's causing the error. // embed mask image $imgmask = $this->Image($tempfile_alpha, $x, $y, $w, $h, 'PNG', '', '', $resize, $dpi, '', true, false); Before the error happened, our last modification to the website was uploading products. So we deleted couple of products as it reached beyond 3k and now it's below 3k but still having the same error message. By the way, paying card works fine. Anyone who has experience the same error or know some fixes that might help? It's been almost 2 weeks now and we haven't found the right solution. Thanks! Using Prestashop 1.5.2 Edited November 9, 2014 by dOnkSkie (see edit history) Link to comment Share on other sites More sharing options...
Oexo France Posted November 1, 2014 Share Posted November 1, 2014 Hi, Change hosting or try to remove limite of php_memory with php.ini Regards Link to comment Share on other sites More sharing options...
dOnkSkie Posted November 1, 2014 Author Share Posted November 1, 2014 Hi, Change hosting or try to remove limite of php_memory with php.ini Regards Should I use memory_limit -1 or just remove the memory limit code in php.ini? Link to comment Share on other sites More sharing options...
Oexo France Posted November 1, 2014 Share Posted November 1, 2014 try this: memory_limit = 256M Link to comment Share on other sites More sharing options...
dOnkSkie Posted November 1, 2014 Author Share Posted November 1, 2014 That's the current memory limit we are using in php.ini. Does the error have something to do with the hosting server memory limit? Link to comment Share on other sites More sharing options...
Oexo France Posted November 1, 2014 Share Posted November 1, 2014 (edited) Try to augment: Try : memory_limit = 1024M Are you on a vps or dedicated ? The problem you get, that you tried to use 524M if you can't go up than 512 you'll need to change your host. Edited November 1, 2014 by Oexo France (see edit history) Link to comment Share on other sites More sharing options...
dOnkSkie Posted November 1, 2014 Author Share Posted November 1, 2014 Tried it, didn't work. Currently on a shared hosting. So I guess we need to upgrade and get a server hosting, is that what you think might solve the issue? Link to comment Share on other sites More sharing options...
Oexo France Posted November 1, 2014 Share Posted November 1, 2014 Iam sure at 85% Link to comment Share on other sites More sharing options...
dOnkSkie Posted November 9, 2014 Author Share Posted November 9, 2014 I requested to increase the php memory limit from our hosting provider but still not working. Solution: Disable the PDF invoice generation. Go to Orders -> Invoices -> Disable invoices. PS: This solves the issue if you are not using PDF for invoices. I think PayPal module is having issues generating PDF invoices. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now