404 Error
-
Using WordPress 5.8.1 and ColorMagPro theme; the embed looks good but it’s throwing a 404 error and not displaying the PDF from the URL. Any suggestions? Need more info? Thanks.
-
If you get a 404 then the URL to the PDF isn’t correct. What’s the URL to your site and what’s the URL to the PDF it’s trying to load?
Thanks for your reply. I have just updated all plugins and themes.
Testing URL: https://savetheirl.org/uncategorized/excepteur-sint-occaecat-cupidatat-non-proident/
PDF URL: https://savetheirl.org/wp-content/uploads/help-plant-mangroves.pdf
Raw Code (Classic Editor):
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[pdfjs-viewer url=”https%3A%2F%2Fsavetheirl.org%2Fwp-content%2Fuploads%2Fhelp-plant-mangroves.pdf” viewer_width=100% viewer_height=800px fullscreen=true download=true print=true]
Thee issue is something is encoding the URL The URL should be https://savetheirl.org/wp-content/uploads/help-plant-mangroves.pdf
Someone else had this same issue and it was a different plugin causing the conflict.
If enough people have this issue, I’ll see if I can work around it, but my plugin is not encoding the URL.
Wow, not sure how that url got malformed. I deleted the shortcode and added the same pdf link again and it didn’t swap out the characters. But still getting the error. Must be a conflict w/ another plugin. The file has been updated if you want to revisit this. Thanks.
Has this plugin worked for you before? It seems that the server is preventing the plugin from loading the necessary PDF to view it in full screen.
No, this is the first installation. We don’t have any other PDF viewers either; usually just link to the file and it’ll open in a new tab if we set a target. I don’t recall any restrictions on the server for loading files; the PDF in the link is not very large so it shouldn’t be a file size block.
There’s a thread that may be related to what you have going on. The hosting company prevents direct access to PHP files so even though the path is correct, it fails to load.
Conversation starts here: https://ww.wp.xz.cn/support/topic/403-forbidden-help/#post-14865004
I don’t have a solution to this at the moment.
There is now an Alternative PDF Loading option on the settings page that tries to load the PDFs via a custom URL rather than directly via a PHP file. You can give that a try. Let me know how it works.
Of note, all the options are not yet built in, it just loads the PDF.
The topic ‘404 Error’ is closed to new replies.