• After i upgraded from 3.5.2 to 3.6.1
    i have problem with uploading media files.
    Error: An error occurred in the upload. Please try again later.

    Also if i open media library i also don’t see any images that were uploaded before the update.

    But if i set in wp-config.php this lines it works ok:
    define(‘WP_DEBUG_DISPLAY’, false);
    @ini_set(‘display_errors’,0);

    Also there is in logs these lines:

    [error] PHP Notice:  Use of undefined constant E_USER_DEPRECATED - assumed 'E_USER_DEPRECATED' in /home/.../public_html/wp-content/plugins/codestyling-localization/codestyling-localization.php on line 2491, referer: https://www.****.com/wp-admin/post.php?post=671&action=edit
    [error] PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/.../public_html/wp-includes/functions.php on line 1813, referer: https://www.****.com/wp-admin/post.php?post=671&action=edit

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zloe

    (@zloe)

    Ok, i eliminated all other errors and warnings and it came to this one. It causes the problem. Has something to do with extension of the files:
    PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /public_html/wp-includes/functions.php on line 1813

    Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘An error occurred in the upload. Please try again later. 3.6.1’ is closed to new replies.