Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5
When using WordPress 2.5 Flash based image uploader to upload pictures to the web server, or when clicking on the Media Library or Gallery tab in the WordPress Flash Image Uplaoder, the following PHP error may occurs no matter what web browser user is using, including Internet Explorer and Firefox.
Fatal error: Call to undefined function: wp_constrain_dimensions() in /home/wordpress/public_html/wp-admin/includes/image.php on line 173
Fatal error: Call to undefined function image_downsize() in /home/wordpress/public_html/wp-includes/post.php on line 2326
The issues happen due to corrupted WordPress files. The corruption may happens during the process of files uploading or transferring to the server, or when overwriting or replacing the old version of WordPress files, or caused by a corrupted or invalid upgrading process.
The resolution to the fatal errors is to re-uploading and replacing all the old WordPress files on the web server with the latest WordPress files again. To ensure cleanliness of the upgrade, it’s recommended to delete the following 2 directories before upgrading:
/wp-admin/
/wp-includes/
Then upload and replace the whole directories of wp-admin and wp-includes with WordPress 2.5 files or latest WordPress 2.5.1 or other newer version if available (directly upload the 2 directories), together with all files in the WordPress blog root directory, EXCEPT wp-config.php. The problem should be solved by then.
Related Articles
- Call to Undefined Function get_currentuserinfo() Error in WordPress
- Call To Undefined Function: ctype_digit() in WordPress 2.5
- WordPress 2.5.1 Released for Download
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2
- WordPress 2.5 RC2 Released for Download
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin
- WordPress 2.5 Released for Free Download

































June 18th, 2008 21:31
he actualizado el wordpress a 2.5.1 en castellno y no me deja subir nada, me da este error en la pantalla de subida.
El archivo está vacío. Por favor, sube algo con más sustancia. Este error también puede estar causado porque las subidas estén desactivadas en tu php.ini.
Tengo la web en un server americano, lo curioso es que antes no me pasaba esto.
¿alguien me puede ayudar?