Cancel this! My apologies. Something went wrong with the upload of the files and the files were not actually saving in the directory. Looks like a server permissions glitch or something. Anyway….this is RESOLVED.
Oh hallelujah!!! That did it. Thank you SOOOO much!!!
Can someone please have a look at this? it is ruining my users’ mobile experience. Thanks in advance…. ๐
Ok, thanks. I was really looking for more of a “why” because I know this has happened at least once in the past, and it’s a really scary risk to take every time I update this plugin. I would prefer to solve the problem vs just put a bandaid on it. If you have any ideas, please let me know.
….unless you have tweaked the caps and roles so much that people who aren’t admins have manage_options for other reasons……lol ๐
Thanks so much, that’s very helpful. Now I know where to look for the solution.
That fixed it. Thank you!!! ๐
This might help add some context. Here are a couple of screenshots from my production site, which mirrors what the dev site was at just before I updated WPDM. On production, the plugin has not yet been updated, and WP core is still at 5.0.4.
Hi Timothy,
Which problem are you having? Did you resolve it? This thread morphed into more than one issue, so it’s a bit confusing. Ultimately I used handcrafted screenshots as thumbnails instead of the generated PDFs. And the javascript problem…I honestly can’t remember where that ended up. If that was your issue, and you haven’t sorted it out, let me know and I’ll try to dig a little deeper.
No, didn’t have any effect. I opened the javascript console, and it’s giving an “unexpected token” error. Here’s a screenshot, but you can go see it yourself at:
I am server support. ๐
I have ImageMagick 6 installed. This is the policy.xml file. I don’t see anything like what you suggested – no domain called “modules”. Am I in the wrong place? (This is in my /etc/ImageMagick-6 dir) Or do I need to add that line? (or update to v7?)
?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
<!ELEMENT policymap (policy)+>
<!ELEMENT policy (#PCDATA)>
<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED>
<!ATTLIST policy name CDATA #IMPLIED>
<!ATTLIST policy rights CDATA #IMPLIED>
<!ATTLIST policy pattern CDATA #IMPLIED>
<!ATTLIST policy value CDATA #IMPLIED>
]>
<policymap>
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
<!-- <policy domain="resource" name="memory" value="2GiB"/> -->
<!-- <policy domain="resource" name="map" value="4GiB"/> -->
<!-- <policy domain="resource" name="area" value="1GB"/> -->
<!-- <policy domain="resource" name="disk" value="16EB"/> -->
<!-- <policy domain="resource" name="file" value="768"/> -->
<!-- <policy domain="resource" name="thread" value="4"/> -->
<!-- <policy domain="resource" name="throttle" value="0"/> -->
<!-- <policy domain="resource" name="time" value="3600"/> -->
<!-- <policy domain="system" name="precision" value="6"/> -->
<policy domain="cache" name="shared-secret" value="passphrase"/>
<policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="URL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="MVG" />
<policy domain="coder" rights="none" pattern="MSL" />
<policy domain="coder" rights="none" pattern="TEXT" />
<policy domain="coder" rights="none" pattern="SHOW" />
<policy domain="coder" rights="none" pattern="WIN" />
<policy domain="coder" rights="none" pattern="PLT" />
<policy domain="path" rights="none" pattern="@*" />
<!-- disable ghostscript format types -->
<policy domain="coder" rights="none" pattern="PS" />
<policy domain="coder" rights="none" pattern="EPS" />
<policy domain="coder" rights="none" pattern="PDF" />
<policy domain="coder" rights="none" pattern="XPS" />
</policymap>
Nice! Works great. Any chance we can use # of words instead of # of characters? (to get a clean cut-off in cases where the description happens to be long — I have discovered a few!)
Unfortunately I cannot — we don’t allow regular FTP and setting up credentials for external users is not a trivial exercise. However, I can execute any changes you would suggest. I just changed that folder to 777 (it was 755) and it didn’t change the result. Is there something else I can try?
Yeah, probably modified the template by accident. Sorry. I have now set up a test template (and titled it appropriately) so that won’t happen again.
Please check the same page. It now has nothing on it at all besides the shortcode
[wpdm_package id='417' template='5be4caa63d5e9']
OK, I am trying to work with [pdf_thumb]
but it’s giving me a broken image. Imagick is installed.
http://dev.nrocnetwork.org/resources/courses/nroc-math-2-2/ — go to the bottom of the page, before the footer. (you can click on the X in the popup box to get rid of it)
For testing purposes, the template contains nothing but the [pdf_thumb]
shortcode
Nope, didn’t work. I’m sure it’s close, but it broke the layout pretty bad. Something about the quotes?
Thank you. This is all helpful, as we may go with our own generated images. But one last stab at letting WPDM do the heavy lifting as we had intended it to do….
Does WPDM have the quality setting defined in the code for ImageMagick PNGs, as per the following link?
http://www.imagemagick.org/Usage/thumbnails/#formats
This setting seems to be something specified on the fly in the script, not something I can just “set” in a config file. Thoughts?
Yes, I wanted to override the page template based on the link the user has clicked, without changing the package settings (because those are global, and this is a one-off where I want to use a different page template). But it sounds like that’s not how it works, so that’s good to know. Thanks!
This is a reasonable workaround, but if the true problem is indeed that filtering is not working, then I would like some assurance that will be addressed as a bug fix if WPDM is not filtering correctly. It has always filtered just fine in the past, so something has changed that is causing the problem.
There is no [pdf_thumb] listed in the template variables, so I was using [thumb_WxH] — how is this different?
What do you mean by “use a higher resolution”? Are you referring to the PDF file itself? Or a setting….where would I set that?
If we decide to upload a special high res thumbnail of our own, what template variable would be used to pull the “featured image” (assuming that’s the best method)?
bump — really could use some help with this if possible — thanks
Ah, yes that was it! Thank you.