Jump to content

Errors when trying to create invoices


Recommended Posts

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 by maximusimo (see edit history)
Link to comment
Share on other sites

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

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...