Buy Now
Sign in

Signature Pad Image Can Not Be Displayed Because it Contains Errors

sbrant , June 22 2017
s
sbrant

Joomla! 3.7.2
PHP 5.6.30
CF 5.0.14

Using the instructions here: https://www.chronoengine.com/faqs/70-cfv5/5254-how-can-i-use-the-signature-widget-in-cfv5.html

Signature pad works great but I get a missing image icon in the submit email. Checking teh stored image on my server, the png is there, but it has 0 bytes and when viewed displays the message "Image /image path/ Can Not Be Displayed Because it Contains Errors"

Any ideas?

GreyHead

Hi sbrant,

What is the image path that you are using? Does that folder exist?

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

s
sbrant

HI Bob,

Yes, the folder exists. I used the path supplied in the tutorial and created the folder on my server accordingly. I've attached a screen capture showing images created from two attempts. Each shows 0 bytes.

Attachments
Screen_Shot_2017-06-23_at_7.28.41_AM.png
Screen_Shot_2017-06-23_at_7.28.41_AM.png
(43.23 KiB)
38 Downloads/Views
GreyHead

Hi sbrant,

Hmmm . . . then I guess that there must be something failing in the code that creates the image from the signature pad data. That then needs to be debugged. I would start by setting Site Error Reporting temporarily to Maximum to see if any error messages show. If that doesn't show anything useful the next step is to add debug code at various points in the custom code to see what is being output at each stage.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

s
sbrant

I didn't use any custom code - just what is in the tutorial. Isn't this something CE should be fixing?

s
sbrant

Ahha! I figured it out. The error is in the instructions. "The 'signature' in the first line needs " It also needs to be changed in 4 places in the code block starting with : // add the file info to the form data

Thanks!

s
sbrant

Sorry - is there a way to make the signature required in Designer? I don't see that option.

GreyHead

Hi sbrant,

There is no built in validation. You can certainly add custom Serverside validation to check that something is being submitted; and you could probably add custom JavaScript triggered by the Submit button to check before submission.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much