scottydt
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Poster - PDF Embedder Plugin] Sudden Error on loading?Hey Guys!
Sorry, it’s not the AIO-Plugin. If you already have the 403-Error, change the following line in the pdf-poster-php:
from
$viewer_base_url= plugins_url().”/pdf-poster/pdfjs/web/viewer.php”; $final_url = $viewer_base_url.”?file=”.$file_name.”&download=”.$pdf_download.”&print=”.$print.”&openfile=”.$openfile;
to
$viewer_base_url= plugins_url().”/pdf-poster/pdfjs/web/viewer.php”; $final_url = $viewer_base_url.”?file=”.urlencode($file_name).”&download=”.$pdf_download.”&print=”.$print.”&openfile=”.$openfile;
I also had the error on previous versions and this line fixed it.
This bug in the plugin-code was already fixed here by @joneiseman: Error in Plugin Code
Forum: Plugins
In reply to: [PDF Poster - PDF Embedder Plugin] Error 403Sorry, it’s not the AIO-Plugin. You need to change the code in the pdf-poster.php from the following line
————
$viewer_base_url= plugins_url().”/pdf-poster/pdfjs/web/viewer.php”; $final_url = $viewer_base_url.”?file=”.$file_name.”&download=”.$pdf_download.”&print=”.$print.”&openfile=”.$openfile;
————to this code:
$viewer_base_url= plugins_url().”/pdf-poster/pdfjs/web/viewer.php”; $final_url = $viewer_base_url.”?file=”.urlencode($file_name).”&download=”.$pdf_download.”&print=”.$print.”&openfile=”.$openfile;
Then everything works OK.
This bug in the plugin-code was already fixed here by @joneiseman: Error in Plugin Code
- This reply was modified 4 years, 7 months ago by scottydt.