Title: image upload error
Last modified: August 18, 2016

---

# image upload error

 *  [robin678](https://wordpress.org/support/users/robin678/)
 * (@robin678)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/image-upload-error/)
 * i am using php version 4.1.2 on my hosting. i have this warning when i try to
   upload file. i have set the all persmisions that it needs for the folders. still
   doesnt work. please help me.
 * Warning: Wrong parameter count for mkdir() in /home/httpd/vhosts/kortej.com/httpdocs/
   wp-admin/admin-functions.php on line 1621
    Unable to create directory /home/httpd/
   vhosts/mysite.com/httpdocs/wp-content/uploads/2005/12. Is /home/httpd/vhosts/
   mysite.com/httpdocs/wp-content/uploads/2005 writable?
 * This is the code on that line:
 * // Make sure we have a monthly dir
    if ( ! file_exists( $pathym ) ) { line 1621
   >>>> if ( ! mkdir( $pathym ) ) return array(‘error’ => “Unable to create directory
   $pathym. Is $pathy writable?”); @ chmod( $pathym, $dir_perms );
 * can anyone solve this please? thnx

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/image-upload-error/#post-291505)
 * “please help me.”
 * You are using pre-release software.
    You should expect both bugs and different
   behaviour.
 * I believe this is due to the php version you have.
 *  Thread Starter [robin678](https://wordpress.org/support/users/robin678/)
 * (@robin678)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/image-upload-error/#post-291523)
 * i cant upgrade the php version. there should be a way to make the script work.
   Please help

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

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

## Tags

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

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 2 replies
 * 2 participants
 * Last reply from: [robin678](https://wordpress.org/support/users/robin678/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/image-upload-error/#post-291523)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
