Title: error when uploading image
Last modified: August 18, 2016

---

# error when uploading image

 *  [ko0pa](https://wordpress.org/support/users/ko0pa/)
 * (@ko0pa)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/error-when-uploading-image-2/)
 * 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](https://wordpress.org/support/users/pj0tr/)
 * (@pj0tr)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/error-when-uploading-image-2/#post-526368)
 * Bump! Got the same error, someone has a workaroud for it?
 *  [markus2143](https://wordpress.org/support/users/markus2143/)
 * (@markus2143)
 * [19 years ago](https://wordpress.org/support/topic/error-when-uploading-image-2/#post-526386)
 * 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](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](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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [markus2143](https://wordpress.org/support/users/markus2143/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/error-when-uploading-image-2/#post-526386)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
