maximusimo Posted September 20, 2012 Share Posted September 20, 2012 (edited) Hi, within Backoffice > Orders > Invoices I try to get all invoices in a specified date range (just over one day) generated. SO I put in the date range and hit 'Generate PDF file'. After a while I get the following error: Fatal error: Maximum execution time of 30 seconds exceeded in /home/domain/public_html/tools/fpdf/fpdf.php on line 615 (line number changes on each try) So I change max_execution_time = 30 to max_execution_time = 60 but this just results in this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /home/domain/public_html/tools/fpdf/fpdf.php on line 1093 Anyone got any ideas on how to resolve this? Edited September 20, 2012 by maximusimo (see edit history) Link to comment Share on other sites More sharing options...
netmechanics Posted September 20, 2012 Share Posted September 20, 2012 If you have access to your php.ini try upping the php memory limit.. 64mb is reccomended and 128mb possibly better (note in php.ini you don't need 64MB but only the M as below)... memory_limit = 64M Link to comment Share on other sites More sharing options...
maximusimo Posted September 20, 2012 Author Share Posted September 20, 2012 memory_limit is currently set at 128M Link to comment Share on other sites More sharing options...
maximusimo Posted September 20, 2012 Author Share Posted September 20, 2012 Response from hosting company: The reason why you are receiving this error is because PrestaShop is trying to allocate 128mb of memory to your script fpdf.php. The maximum amount of memory allowed on a shared hosting account is 32mb. If you require more memory than this you will need to upgrade your account to a VPS server. Makes sense so I think I'll be printing the invoices out one by one if I need to. 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