-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image/logo upload is not working #1
Comments
Can you be more specific about where you are uploading a .jpg file? From the line number you quoted, it looks like you're saving a logo file in the header or footer. Is that right? |
So, I just tried this (uploading a .jpg image to the left side in the PDF header section for a new webform) and encountered no error; it saved properly. Perhaps check the file permissions in your files directory? The uploaded file should be stored in files/webform2pdf. Can you add a file component to your test webform and specify that directory as the destination for the component? Then see if submitting the webform with a file component is stored properly. |
@bugfolder it's not possible to change the file component's direction from files/webform/ to files/webform2pdf/ because it is hard-coded. The permissions were set to 775 and the files are still there but nothing to see at the pdf file. |
So the logo file was uploaded fully? It's in the directory and its thumbnail shows on the Webform2PDF settings page (in the same section where you uploaded it)? |
Yes it is in that folder but no its thumbnail won't be shown. |
I've tried that again on a clean Backdrop site and the issue is still there.
|
One more thing to check (to determine whether it's a problem with mail or with PDF generation). View one of the submissions and click on the "Download PDF" tab, which should take you to a page like http://example.com/node/4/submission/1/downloadpdf, which should include the logo image. If it's showing up there but not in mail, then it's a mail problem; if it's not showing up there, then it's a problem with the PDF generation. |
The PDF doesn't contain the logo. I think the issue occurs between physical file upload and using it within the field. |
Yes. This helps to establish, though, because it's easier to debug that part of the chain. Are you comfortable using the Devel module and/or editing PHP to debug? It would be helpful to install and enable Devel, and then insert this line in webform2pdf.settings.inc just before the problematic call to
It's a puzzle because I can't reproduce this error on my test site. |
@bugfolder I've done and this is the result: |
At the Backdrop log:
|
Yup, I'd expect that based on the debug report you showed. Thanks for that, it helps. So it looks like (at liine 1267) |
I'm glad that this would help. Looking forward to test code changes :) |
While searching for the debug notice I found that issue.
I've tried but that doesn't solve this issue. So |
Hmm. Turns out I have a pending update that addresses that issue that just hadn't been applied yet. (So I've been using the dev version, which is why I'm not seeing the issue, and you are seeing it. D'oh!) Sit tight, let me get these fixes into a new release version and we'll take it up again. |
OK, I've pushed a commit that should at least get us seeing consistent things. Would you download the current development version (from here, using the green "Code" button) and give it a try? |
Great! It works! Thanks a lot! |
Great! Bugfix release to follow shortly. |
The Backdrop log file show up two messages:
|
OK, let me go check it out. |
Well, I can reproduce this. (So this gives me something to work on.) |
@djzwerg, first, apologies for letting so much time pass — I lost track of this issue being open. Just found it (again). There have been a couple of releases since this issue arose, and just trying out the current version, I'm no longer able to reproduce this issue (uploading a logo file, saving, then trying to delete it). Would you try the latest release and see if you still experience the problem? |
Since there was no further response on this, I'm closing the issue. But if it reappears (using the current release version), please do feel free to reopen or post a new issue. |
After uploading a jpg file this error occurs:
A mail will be created but does not contain the PDF (only crypted text). --> new issue #3
The text was updated successfully, but these errors were encountered: