FPDF Fatal error: Allowed memory size of 33554432 bytes exhausted (PHP)
This is a often discussed issue but so far no solution seems to fit for my problem.
Running the whole thing again I receive the error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 77 bytes) in /..blabla/yourPDFclassName.php on line 16
Does anyone have an idea why this error occurs when I call the child class? I mean it works with the parent class… And btw, 77 bytes are much smaller than the 33554432 bytes … hmm
The line 16 is in the constructor of REPORTSPDF. There are no other lines before line 16. It just crashes when $pdf = new REPORTSPDF() is called.
Without the Footer function I have the same error. The weird thing is that when I change line 16 to
everything works fine (with the exception that I don’t have a footer).
sounds like you have an infinite loop in you code. try to do a simple hello-world-test ans see what happens and check all loop in your code.