WordPress.org

Support

Support » How-To and Troubleshooting » fopen(blog.pdf): failed to open stream:

fopen(blog.pdf): failed to open stream:

  • markw2006
    Member

    @markw2006

    Hi,
    im getting an error which i dont understand, i think it maybe a compatablilty issue if someone can take a look?
    The error is this:
    Warning: fopen(blog.pdf): failed to open stream: Permission denied in /home/#####/public_html/#####/fpdf.php on line 1285
    FPDF error: Unable to create output file: blog.pdf

    The line of code from the script is this:
    break;

    And nothing else.

    The script works on wp version 2.02 but not wp 2.04

Viewing 2 replies - 1 through 2 (of 2 total)
  • markw2006
    Member

    @markw2006

    Ok so an update to this problem is now with a line of code that is:
    $f=fopen($name,’wp’);

    With this error:
    Warning: fopen(archives.pdf): failed to open stream: Permission denied in /home/####/public_html/####/fpdf.php on line 1046
    FPDF error: Unable to create output file: blog.pdf

    Any help?

    davidchait
    Member

    @davidchait

    ummm, yeah, the script doesn’t have write permissions to the directory it is trying to create the output pdf into…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fopen(blog.pdf): failed to open stream:’ is closed to new replies.