Title: Warning: imagejpeg() [function.imagejpeg]
Last modified: August 20, 2016

---

# Warning: imagejpeg() [function.imagejpeg]

 *  Resolved [wijngaarde](https://wordpress.org/support/users/wijngaarde/)
 * (@wijngaarde)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-imagejpeg-functionimagejpeg/)
 * Hi,
 * I have a question. After moving my old WordPress network to a new domainname,
   most pictures on my subdomains stoped working. Does somebody have experience 
   with this?
 * For example see the featured slider: [http://thema1.wpwebsitebouwen.nl/](http://thema1.wpwebsitebouwen.nl/)
   
   Or news on: [http://thema2.wpwebsitebouwen.nl/category/nieuws/](http://thema2.wpwebsitebouwen.nl/category/nieuws/)
 * I also get the following error in the picture placeholders, where the picture
   should show:
 * > Warning: imagejpeg() [function.imagejpeg]: Unable to open ‘/home/username/domains/
   > wpwebsitebouwen.nl/public_html/wp-content/blogs.dir/8/files/et_temp/5040311921_f20b3122e0_b1-
   > 10915_800x447.jpg’ for writing: Permission denied in /home/username/domains/
   > wpwebsitebouwen.nl/public_html/wp-includes/media.php on line 467
 * The strange thing for me is: that the mentioned picture with “_800x447” in the
   name doesn’t exist (also didn’t exist on the old domain name). The picture 5040311921_f20b3122e0_b1-
   10915 does excist but with for example “_207x136”.
 * Also I’ve followed the moving guidelines from wordpress.
 * Your help would be apreciated a lot! Thanks!

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-imagejpeg-functionimagejpeg/#post-3252946)
 * > Also I’ve followed the moving guidelines from wordpress.
 * Which ones? 🙂
 *  Thread Starter [wijngaarde](https://wordpress.org/support/users/wijngaarde/)
 * (@wijngaarde)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-imagejpeg-functionimagejpeg/#post-3252947)
 * 🙂 The guidelines you gave somebody else in another blog post.. (thanks by the
   way!) but I can’t find the blogpost I used anymore..
 * Anyway, what I did:
 * * Copied all files to the other server
    * Backed up the database and imported
   the database into a new database on the new server. * Turned on Wildcard DNS 
   on the new server * Since the domainname also changed, I used the program you
   refered to from [http://interconnectit.com/](http://interconnectit.com/) to do
   a serialized find and replace.
 * Everything works fine on the main website of the wordpress network, even the 
   pictures.
 * But as mentioned not on the subdomains..
 * I realy hope you can help me..
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-imagejpeg-functionimagejpeg/#post-3252949)
 * Okay, step one: Did all the files get set with the right permissions? 🙂
 *  Thread Starter [wijngaarde](https://wordpress.org/support/users/wijngaarde/)
 * (@wijngaarde)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-imagejpeg-functionimagejpeg/#post-3252957)
 * > Okay, step one: Did all the files get set with the right permissions? 🙂
 * Well, I didn’t change anything myself.. just copied the files. Is there a specific
   guideline that I could follow to check if the permissions are set correct on 
   the new server?
 *  Thread Starter [wijngaarde](https://wordpress.org/support/users/wijngaarde/)
 * (@wijngaarde)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-imagejpeg-functionimagejpeg/#post-3252958)
 * Thanks Ipstenu!
 * Per accident I discovered the solution myself!
 * My webhost is running PHP 5.2 and this is giving me various permission errors
   recently on [my website](http://www.wpwebsitebouwen.nl). Especially when making
   use of auto-updates such as updates of themes or core-updates.
 * But when I pasted this code in my .htaccess file:
 *     ```
       <FilesMatch "\.php$">
   
       AddHandler x-httpd-php53 .php
   
       </FilesMatch>
       ```
   
 * I basically told my server to use PHP 5.3 instead of 5.2. This solved all right
   related issues I was facing. Also the issue mentioned in this post.
 * So this was my solution!

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

The topic ‘Warning: imagejpeg() [function.imagejpeg]’ is closed to new replies.

## Tags

 * [multsite](https://wordpress.org/support/topic-tag/multsite/)
 * [network](https://wordpress.org/support/topic-tag/network/)
 * [permissions](https://wordpress.org/support/topic-tag/permissions/)
 * [Pictures](https://wordpress.org/support/topic-tag/pictures/)
 * [rights](https://wordpress.org/support/topic-tag/rights/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 5 replies
 * 2 participants
 * Last reply from: [wijngaarde](https://wordpress.org/support/users/wijngaarde/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/warning-imagejpeg-functionimagejpeg/#post-3252958)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
