Signature Pad Image Can Not Be Displayed Because it Contains Errors

sbrant 22 Jun, 2017
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 22 Jun, 2017
Hi sbrant,

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

Bob
sbrant 23 Jun, 2017
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.

[attachment=48245_20170623113022_screen-shot-2017-06-23-at-7-28-41-am-png.png][/attachment]
GreyHead 23 Jun, 2017
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
sbrant 26 Jun, 2017
I didn't use any custom code - just what is in the tutorial. Isn't this something CE should be fixing?
sbrant 26 Jun, 2017
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!
sbrant 26 Jun, 2017
Sorry - is there a way to make the signature required in Designer? I don't see that option.
GreyHead 01 Jul, 2017
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
This topic is locked and no more replies can be posted.