Title: [Plugin: User Avatar] Warning: mkdir() [function.mkdir]  &#8212; and &#8212; Warning: imagejpeg() [function.
Last modified: August 20, 2016

---

# [Plugin: User Avatar] Warning: mkdir() [function.mkdir] — and — Warning: imagejpeg() [function.

 *  [mohsintheone](https://wordpress.org/support/users/mohsintheone/)
 * (@mohsintheone)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-user-avatar-warning-mkdir-functionmkdir-and-warning-imagejpeg-functionim/)
 * **Hello User Avatar Support..**
 * The Image gets upload fine, I can also see the CROP marks, but when I press the
   CROP button, the next popup shows me the following errors:
 * **\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***
   
   Warning: mkdir() [function.mkdir]: Unable to access /var/www/vhosts/domain-name/
   httpdocs/wp-content/uploads/avatars/91/ in /var/www/vhosts/domain-name/httpdocs/
   wp-content/plugins/user-avatar/user-avatar.php on line 421
 * Warning: imagejpeg() [function.imagejpeg]: Unable to access /var/www/vhosts/domain-
   name/httpdocs/wp-content/uploads/avatars/91/1314327080-bpfull.jpg in /var/www/
   vhosts/domain-name/httpdocs/wp-admin/includes/image.php on line 74
 * Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /var/www/vhosts/
   domain-name/httpdocs/wp-admin/includes/image.php on line 74
 * Warning: imagejpeg() [function.imagejpeg]: Unable to access /var/www/vhosts/domain-
   name/httpdocs/wp-content/uploads/avatars/91/1314327080-bpthumb.jpg in /var/www/
   vhosts/domain-name/httpdocs/wp-admin/includes/image.php on line 74
 * Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /var/www/vhosts/
   domain-name/httpdocs/wp-admin/includes/image.php on line 74
 * **\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***
 * The avatars folder is already present in wp-contect/uploads… But there is nothing
   inside the AVATARS folder… And it’s permission is already 777…
 * Let me know, if I need to change any code in any file 🙂
 * I look forward to your earliest reply, Thanks
 * Mohsin
 * [http://wordpress.org/extend/plugins/user-avatar/](http://wordpress.org/extend/plugins/user-avatar/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Enej Bajgorić](https://wordpress.org/support/users/enej/)
 * (@enej)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-user-avatar-warning-mkdir-functionmkdir-and-warning-imagejpeg-functionim/#post-2264098)
 * Hmm… very interesting. How do you configure your site is the uploads folder in
   a different place then standard?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: User Avatar] Warning: mkdir() [function.mkdir] — and — Warning:
imagejpeg() [function.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-avatar.svg)
 * [User Avatar](https://wordpress.org/plugins/user-avatar/)
 * [Support Threads](https://wordpress.org/support/plugin/user-avatar/)
 * [Active Topics](https://wordpress.org/support/plugin/user-avatar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-avatar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-avatar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Enej Bajgorić](https://wordpress.org/support/users/enej/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-user-avatar-warning-mkdir-functionmkdir-and-warning-imagejpeg-functionim/#post-2264098)
 * Status: not resolved