• hi

    everytime I try to upload an image via the upload-tab under the editor (when I write a post) it says:

    Warning: imagejpeg() [function.imagejpeg]: Unable to access /var/www/…/wp-content/lp-map2.thumbnail.jpg in /var/www/…/wp-admin/admin-functions.php on line 2200

    Warning: imagejpeg() [function.imagejpeg]: Invalid filename ‘/var/www/…/wp-content/lp-map2.thumbnail.jpg’ in /var/www/…/wp-admin/admin-functions.php on line 2200

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/…/wp-admin/admin-functions.php:2200) in /var/www/…/wp-includes/pluggable.php on line 275

    When I reload the page, I can click on <b>browse</b> and find the image there. Does anybody know how to avoid the annoying error message?

    Thanks
    BTW: I’m using WP2.1 without any add-ons and the CHMOD of my wp-content folder is 777

Viewing 2 replies - 1 through 2 (of 2 total)
  • pj0tr

    (@pj0tr)

    Bump! Got the same error, someone has a workaroud for it?

    Hi,

    I’ve got a similar error message.

    My server:
    – safe mode on
    – according to my provider the files created by the server
    will have another user account as that under which
    php runs (I haven’t checked this)

    My solution:
    in admin-functions.php I have added the following code everywhere where imagejpeg, imagepng and imagegif is called:
    //workaround: soruce: http://de.php.net/manual/de/function.imagejpeg.php#58375
    $fhDummyXX=fopen($thumbpath,’w’);
    fclose($fhDummyXX);

    Not tested for png-files and the crop-function

    Is there a bugtracking-system for wordpress? I would like to report the solution to the developers.

    I have found the above solution at http://de.php.net/manual/de/function.imagejpeg.php#58375

    bye,
    Markus

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘error when uploading image’ is closed to new replies.