Fatal error: Out of memory (allocated 81264640) (tried to allocate 80 bytes) in /xxx/xxx/zzz/whmcs/includes/tcpdf.php on line 8106
I increased memory. But still same. Like default was 128MB and I increased to 256MB and still same error .
If you are getting the same error, the same rule applies - you need to increase it further or fix your script to it doesnt require as much memory. If you are using simplexml, bear in mind it tries to load the document into memory before processing it; try an alternative method.Â
The fix your script, as I said previously. There is no need for it to take that much memory; The error isn't lieing to you, its telling you exactly what the problem is. If in doubt, throw in some error checking along the way, in case you have an infinite loop thats trying to read in data from somewhere (and check the size of whatever it is you are loading in also)Â
Is this your custom script or invoice in WHMCS? I know WHMCS very good and similar issues occurs when you are using big/too much images in tcpdf. Try to remove all images to see how it works.
I hate this error. Sometimes it is perfectly truthful, and other times seems to appear with no particularly obvious reason - primarily when dealing with other people's code. Generally just a few optimisations of the code will resolve it.