Forum
Issues With Adding PDF assets
I am running Perch 2.7.2 and previously was able to add a link to a file in a template by choosing the asset like any other. However since updating I cannot seem to get it to work.
So I click of the file link this brings up the asset manager and I add a file as usual by locating it locally and adding it. It goes through the upload procedure then the spinner just spins and nothing gets added.
It looks like its trying to create a preview? Any ideas
Code for file is
<perch:content id="file" type="file" label="File" />
Can we see your Diagnostics Report?
Here it is:
I think something strange is going on, we have 3 sister sites using the same files, all running 2.7.2 all on same host. One seems to have little graphics by the assets menus the others do not.
That could be not having the SVG mime type configured on your server.
Are you getting anything logged in your server error log?
Only a server misconfiguration error. I have tried reloading the Perch files from scratch.
When I created this version I exported the sql file from the other and changed the config and user details to the new one. Everything seems to load okay except the issue with PDFs.
I also notice the problematic site does not seem to have little graphics by the assets menus.
Have you looked at the SVG mime type as I suggested?
Could this be related to the issue I reported with PDF preview images?
https://forum.grabaperch.com/forum/10-27-2014-assets-preview-image-not-showing
I have checked and I do have SVG mime type configured on my server.
Still struggling with this. I suspect its a server issue but having a hard time getting my ISP to extract any meaningful error logs.
Can you explain why adding an svg mime type would help for a pdf? Surely thats for png etc?
Can you also explain what I need on the server to get PDF previews on uploads as on my other server that works with pdf uploads the preview is a ? mark.
I have GD and Imagick installed (on both servers).
Its like pulling teeth confirming what is/is not installed so a list of recommended elements would be useful.
Leave it with me and I'll look at it after the weekend.
Okay thanks. FYI here are two sample errors generated after trying to add a PDF:
Okay I got my ISP to move me to a different server and now I can upload PDFs, now its not a deal breaker but I cannot get a preview for a PDF asset, should I be able to see one and whats missing to stop this?
I have both Imagick and GD on the server.
This will be fixed in 2.7.3.