• Resolved mcyzyk

    (@mcyzyk)


    I am finding that, in order for this plugin to continue to function post-upgrade, you must remember to create an .htaccess file for it in the following folder:

    wordpress/wp-content/plugins/pdfjs-viewer-shortcode/pdfjs/web/.htaccess

    Inside this .htaccess file:

    # Allow direct access to PDF viewer PHP file.

    # This is required for embedded PDFs to display.

    # This rule will superceed the security rule above # defined in /wp-content/.htaccess that blocks 

    # direct access to PHP files.

    <Files viewer.php>    

    allow from all

    </Files>

    Then make sure Apache owns the file: sudo chown apache:apache ./.htaccess

    If you don’t remember to do this, you’ll get a PDF Forbidden error after you’ve upgraded.

    Maybe this .htaccess file can become part of the upgrade payload?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.