WordPress.org

Forums

image upload error (3 posts)

  1. robin678
    Member
    Posted 9 years ago #

    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

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    "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.

  3. robin678
    Member
    Posted 9 years ago #

    i cant upgrade the php version. there should be a way to make the script work. Please help

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags