This topic is locked
[SOLVED]

Signature 'View as': image - only shows signature.png (broken link)

12/16/2021 7:07:27 PM
PHPRunner General questions
I
infotech author

Problem with signature display

Capture sig just fine. Saves correctly in server (see server preview)

DB field looks good:

[{"name":"\/stores\/ebfp65p1djpsfxl.png","usrName":"signature.png","size":5223,"type":"image\/png","searchStr":"signature.png:sStrEnd"}]

I have noticed ! char in working strings for images is missing from my signature string. ??
[{"name":"\/stores\/User\/abandoned-places-3_0ih2s2o9.jpg","usrName":"abandoned-places-3.jpg","size":38466,"type":"image\/jpeg","thumbnail":"\/stores\/User\/thabandoned-places-3_ms7hajou.jpg","thumbnail_type":"image\/jpeg","thumbnail_size":2499,"searchStr":"abandoned-places-3.jpg,!:sStrEnd"}]

view only displays signature.png (broken link) instead of the proper 'garldy-randomised-string.jpg' image file ( in this case: ebfp65p1djpsfxl.png )

file size appears to extract correctly (when viewd as 'file') but display always shows (broken png link) ico. Link points to non-existent 'signature.png': parse error?

img alt

img alt

img alt

any insight would be much appreciated.
{ infotech-wonk }

fhumanes 12/16/2021

Hello:

The parameters of the plugin are:

// signature field height
$this->settings["height"] = 150;
// signature field width
$this->settings["width"] = 400;
// signature background color
$this->settings["bgcolor"] = "#ffffff";
// set it to true to make signature field required
$this->settings["required"]=true;
// folder to store signature files
$this->settings["folder"]="files";
// signature background image
// $this->settings["bgimage"] = "https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=95583&image=1&table=forumreplies";
$this->settings["bgimage"] = "";
// signature pen color
$this->settings["color"] = "#145394";
// signature line width
$this->settings["linewidth"] = 2;
// Text link Clear
$this->settings["clear"] = "Limpiar";
  • Check if the file path of the file has changed.
  • Keep in mind that it seems that it has put a file that is within the deployment of the project.
  • If you have moved, erased, etc., the project is very possible that you have lost the images of the File System.

Greetings,
fernando

I
infotech author 12/16/2021

fernando,

Thank you for the response.

those parameters are exactly correct. (I am using the default "generate initial code" result)
the only change from default is my change to server store folder. (which the server is correctly storing the catured image in the folder.)

{Check if the file path of the file has changed .} - nope even the db code shows the correct folder path.

{Keep in mind that it seems that it has put a file that is within the deployment of the project.}
it is using some generic signature.png "display name" - but that is generated by the project code - specifically when saving the record, not me.

{If you have moved, erased, etc., the project is very possible that you have lost the images of the File System.}
nope, same enviroment, no changes - this is dev - again images work perfectly in other field settings same folder, just signature not displaying (code generated for the site is obviously not right.)
this is live test: cap sig, return to list shows broken image file. DB has the png file (it is valid). [lather, rinse, repeat] :/

{infotech wonk}

Admin 12/17/2021

You need to post your proejct to Demo Account and contact support directly. This is the only way to resolve an issue like this.

I
infotech author 12/17/2021

Admin, thanks -

suggesting demo account led me to create a test db / project to upload. (my project is private)

this led me to using local files/folder (same db though)

sig "view as" works as advertised. same coding.
local server engine reads the file and displays.

this leads me to conclude something odd with my www server. file perms 644 look correct for read, but server cannot display. I will dig into my apache config and see if I can figure the flaw.

{1 hour later}
changed my storage folder from root /folder to subfolder.
all is good. darn .need.to.learn.more.about.apache.linux. rtfm :)

thank you all for helping me work through this.

Admin 12/17/2021

Awesome, thank you for the update!