Jump to content

[Solved] PayPal - Europe module Fatal error: Allowed memory size of 134217728 bytes exhausted


Recommended Posts

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.




Using Prestashop 1.5.2

Edited by dOnkSkie (see edit history)
Link to comment
Share on other sites

I requested to increase the php memory limit from our hosting provider but still not working.




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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...