Title: Internal Server Error
Last modified: August 22, 2016

---

# Internal Server Error

 *  [fedenuche](https://wordpress.org/support/users/fedenuche/)
 * (@fedenuche)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/internal-server-error-250/)
 * Hi, I try to use your plugin and “Internal Server Error” occurs. I think this
   is because you are using “wp-content” as a part of your “$viewer_base_url” and
   I’ve changed the “wp-content” name (for security reason). I recomend change that
   line for
 * `$viewer_base_url= plugin_dir_url( __FILE__ ).'web/viewer.php';`
 * [https://wordpress.org/plugins/pdfjs-viewer-shortcode/](https://wordpress.org/plugins/pdfjs-viewer-shortcode/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [fedenuche](https://wordpress.org/support/users/fedenuche/)
 * (@fedenuche)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/internal-server-error-250/#post-5377322)
 * Another contribution, I hope this will be helpful.
 * I have installed a security plugin (iThemes Security). So When I’m logged in,
   the plugin works great. But If I’m not, it returns 403 error (this is because
   an .htaccess rule). To fix that I just change the line “$final_url” for:
 * `$final_url = $viewer_base_url."?file=".urlencode ($file_name)."&download=".$
   download."&print=".$print."&openfile=".$openfile;`
 * (Just add the “urlencode”)

Viewing 1 replies (of 1 total)

The topic ‘Internal Server Error’ is closed to new replies.

 * ![](https://ps.w.org/pdfjs-viewer-shortcode/assets/icon-256x256.png?rev=2301161)
 * [PDF.js Viewer](https://wordpress.org/plugins/pdfjs-viewer-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdfjs-viewer-shortcode/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [fedenuche](https://wordpress.org/support/users/fedenuche/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/internal-server-error-250/#post-5377322)
 * Status: not resolved