WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Upload media - error (4 posts)

  1. ka81
    Member
    Posted 4 years ago #

    Upload media - error

    After installing 2.9 - such a problem appears when trying to upload any file.jpg through - /wp-admin/media-new.php

    Fatal error: Call to undefined function ctype_digit() in /data/www/ka81/mysyte/wp-admin/includes/file.php on line 238

    line 238:

    if ( isset( $file['error'] ) && !ctype_digit( $file['error'] ) && $file['error'] )

    Advise please.

  2. ka81
    Member
    Posted 4 years ago #

    thanx for - http://profiles.wordpress.org/sergeybiryukov/

    /wp-admin/includes/file.php on line 238
    was:
    if ( isset( $file['error'] ) && !ctype_digit( $file['error'] ) && $file['error'] )

    should be:
    if ( isset( $file['error'] ) && !is_numeric( $file['error'] ) && $file['error'] )

    that's all!

  3. MacDoodle
    Member
    Posted 4 years ago #

    Will this be fixed in later upgrades?

    I hesitate to make this change without knowing why it isn't working the way it was intended. Anyone able to explain?

  4. MacDoodle
    Member
    Posted 4 years ago #

    This was fixed in version 2.9.1.

Topic Closed

This topic has been closed to new replies.

About this Topic