Failed to open stream
-
Hello, I have an issue I can’t resolve myself.
When I want to download a pdf from my website ( at the moment hosted with XAMPP ), I get this message :Warning: fopen(): remote host file access not supported [my file… ] in C:\xampp\htdocs\wordpress\wp-content\plugins\waterwoo-pdf\inc\tcpdf\include\tcpdf_static.php on line 1859
Warning: fopen(my file ): failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\wordpress\wp-content\plugins\waterwoo-pdf\inc\tcpdf\include\tcpdf_static.php on line 1859
Unable to watermark this file for download. Please notify site administrator.So after some resarch I found out that the problem came from line 1855
$filename = ‘file://’.$filename;
I removed ‘file://’
So now I have
$filename = $filename;
( that is a nonsense )Now it works… But will it work when I’ll host my server ( not with localhost ) ? How can I solve the problem without changing the code ?
Thanks
- The topic ‘Failed to open stream’ is closed to new replies.