I am getting this error when submitting form:
Warning: array_push() expects parameter 1 to be array, null given in /home/leavi5/public_html/leo-rescue/administrator/components/com_chronoforms5/chronoforms/actions/tcpdf/tcpdf/tcpdf.php on line 21350
The email with the same code comes in fine -
What am I missing? I have used the tcpdf on other forms successfully and cannot find anything different.
HI Sharon,
Please set Error Reporting to System Default or None in the Site Global Configuration - that will hide these PHP Warnings. They are just warnings, not errors. My guess is that the TCPDF library included with CFv5 may now be a little bit out of date.
Bob
Yes, i have it set to None normally - turned it on to see what the problem might be. I have no content in my attached pdf file. All the content is in the email however.
There are no errors just a page of warnings and a couple of notices. This is a multi-page form, but I have another multi-page that has a correct pdf attachment. I cannot see what is different in this one except it does contain several check-box groups.
Why would my pdf be a blank file?
My setup is below and Code attached.
On load
Multi Page
HTML (Render Form)
On submit
Multi Page
Handle Arrays
TCPDF
Email
Display Message
On page2
Multi Page
HTML (Render Form)
On page3
Multi Page
HTML (Render Form)
On page4
Multi Page
HTML (Render Form)
In trying to debug this issue, I find that the Wizard does not show one of the containers correctly (see attached image).
On a reboot - the display under Design has fixed itself.
I turned on Maximum error reporting - and just get a long page of Warnings and a couple of Notices - no errors.
Can anyone tell me where to go to try to debug this? My client requires the pdf attachment.
Thank you.
This is the debug report - There is an empty array, I believe.
Can you assist me on fixing this error?
Sharon
Hi Sharon,
There's nothing here that helps diagnose the problem I'm afraid.
If you put just a couple of lines of basic HTML in the PDF does that work OK? If so try one form variable and check that . . .
Bob
Yes, if I put html above the table information it comes out on the pdf file????
But if I copy and paste the table from the email to the tcpdf - I only get the html above the table. The table info is blank?
I will add a few variables at a time outside of a table and see what happens. I will post if I find the troublesome variable.
Ha - when I removed the table and just listed the variables in html with breaks and paragraph markers, it worked.
At a loss, but happy.
Thanks for trying to help - I would have never thought that it was the table formatting??? Works on my other forms.
Hi Sharon,
It might be some odd part of the HTML or CSS. IF you want to send me a form backup plus the template you were trying to use I'll experiment once I'm back at my desk later this week.
Bob
Thank you - I am certain it is exactly that. But, I have it producing in a simple html format - the client is happy - and so am I. Not worth your nicely proffered time.
Sharon