Title: mkdir error when registering
Last modified: August 21, 2016

---

# mkdir error when registering

 *  [rich.or.richard](https://wordpress.org/support/users/richorrichard/)
 * (@richorrichard)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/mkdir-error-when-registering/)
 * I’m facing an issue here where, when users make an attempt to register for the
   site it’s throwing an error back:
 *     ```
       Warning: mkdir() [function.mkdir]: No such file or directory in /path/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php on line 1072
   
       Warning: copy(/path/wp-content/uploads/profiles/14/grizzly-icon-3514.png) [function.copy]: failed to open stream: No such file or directory in /path/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php on line 1074
       ```
   
 * I’ve tried the usual gammut of checking the plugins etc, but to no avail. Help?
   It just seems to have trouble writing to the directory, which is weird since 
   the permissions are totally fine.
 * It’s only happening when I try to use the xprofile image field. The weirdest 
   thing is that it was working totally fine in my local environment – is there 
   something I need to change about my server to fix this?
 * I’m hosted on Mediatemple if that makes any difference.
 * [http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/](http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/)

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

 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/mkdir-error-when-registering/#post-3837351)
 * Hi,
 * If you have 777 permissions on uploads directory and inside uploads profiles 
   directory needs to be with 777, it should work. The problem ocurrs when the plugin
   try to create the directory of the user.
 * The images are stored in this directory:
 * ‘wp-content/uploads/profiles/USERID’
 * Your problem is when I try to create the directory “USERID”.
 * Is this error happening in edit form profile too?
 *  Thread Starter [rich.or.richard](https://wordpress.org/support/users/richorrichard/)
 * (@richorrichard)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/mkdir-error-when-registering/#post-3837383)
 * You are correct – it isn’t able to create the USERID folder. I can’t count on
   a 777 permission as the solution to this problem – it’s too unsecure. As for 
   whether or not the profile update works – that does work. No problem there. I
   don’t understand! GAH!

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

The topic ‘mkdir error when registering’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-xprofile-custom-fields-
   type.svg)
 * [Buddypress Xprofile Custom Fields Type](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/reviews/)

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [xprofile](https://wordpress.org/support/topic-tag/xprofile/)

 * 2 replies
 * 2 participants
 * Last reply from: [rich.or.richard](https://wordpress.org/support/users/richorrichard/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/mkdir-error-when-registering/#post-3837383)
 * Status: not resolved