This is a frequently discussed issue but no problem seems to fit my problem yet $ pdf = new FPDF () I am generating a PDF; . It works fine but now I have to keep a footer with page number. After trying many things, I came to know that if you want to set up a footer, you have to make an example with $ pdf = new yourPDFclassName (); (Which increases the parents' FDF class).
Again I'm getting the error completely again: 33554432 acceptable memory size of bytes (tried to allocate 77 bytes) /..blabla/yourPDFclassName.php on Line 16
Does anyone know that when I call the baby why does this error occur? I mean that this parent works with the class ... and BTW, 77 bytes are much smaller than 33554432 bytes ... Hmm
class REPORTSPDF extends FPDF. ..} 16: $ Pdf = new REPORTSPDF ();
Line 16 is in the manufacturer of REPORTSPDF, there are no other lines before line 16. It only crashes when $ pdf = new is called REPORTSPDF ().
Without the pastor function I have only one error. Strange thing is that when I change the line 16
$ pdf = new FPDF ();
Everything works fine (with the exception that I do not have a foothold).
Looks like you have an infinite loop in code, try a simple hello-world-test ans See what happens and check all the loops in your code.
Comments
Post a Comment