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.



One Response to “Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5”

  1. zugatz
    June 18th, 2008 21:31
    1

    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?

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to Tip and Trick Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

Incoming Search Terms for the Article

Call to undefined function - wordpress - "Call to undefined function java()" - javascript undefined function - Call to undefined function javascript - php Call to undefined function - 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. - Call to undefined function - Call to undefined function wp() - "Call to undefined function delete()" - wordpress upload function - Fatal error: Call to undefined function imagesx() - mobile me upload undefined - Call to undefined function php - wordpress wp_constrain_dimensions - Call to undefined function: image_downsize() in - "Fatal error: Call to undefined function upload()" - Call to undefined function delete() - wp_constrain_dimensions() - image_downsize - wordpress image_downsize - "Undefined function wp()" - Call to undefined function imagesx() - "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." - Fatal error: Call to undefined function: wp_constrain_dimensions() in wordpress - undefined - javascript defined function - "Fatal error: Call to undefined function ImageSX()" - Call to undefined function: removead() - "Este error también puede estar causado porque las subidas estén desactivadas en tu php.ini." - Call to undefined function wp_constrain_di­mensions - this=undefined + javascript + upload - undefined function - Call to undefined function images() - Call to undefined function images() - Call to undefined function wp_constrain_dimensions() in on line 173 - Call to undefined function: image_downsize() - wordpresscall to undefined function - javascript undefined function error - gallery is undefined internet explorer - php tag to call images WP - Call to undefined function imagesx() - wordpress, custom image upload function - wordpress mobile admin upload image - Call to undefined function: image_downsize() in on line 2326 - php Call to undefined function java - call to unidentified function in php\ - wordpress Call to undefined function: wp_constrain_dimensions() - undefined function title() - PHP Call to undefined function: imagesx() -