• 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://ww.wp.xz.cn/plugins/pdfjs-viewer-shortcode/

Viewing 1 replies (of 1 total)
  • Thread Starter fedenuche

    (@fedenuche)

    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.