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

wordpress - Call to undefined function wp() - Call to undefined function: image_downsize() in - image_downsize - Fatal error: Call to undefined function imagesx() - "Undefined function wp()" - "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 - "Fatal error: Call to undefined function upload()" - Call to undefined function wp_constrain_dimensions() in on line 173 - Call to undefined function delete() - Call to undefined function: image_downsize() - wordpresscall to undefined function - wordpress wp_constrain_dimensions - gallery is undefined internet explorer - wp_constrain_dimensions() - Call to undefined function imagesx() - Call to undefined function: image_downsize() in on line 2326 - php Call to undefined function java - wordpress Call to undefined function: wp_constrain_dimensions() - undefined function title() - PHP Call to undefined function: imagesx() - wordpress Call to undefined function image_downsize() in - service call 173 fatal error - blackberry call web service javascript type undefined - remove a function, undefined, javascript - Call to undefined function - wordpress upload function error - php Call to undefined function delete() - latest article function wp - flash gallery undefined - PHP Fatal error: Call to undefined function image - wordpress image_downsize - Call to undefined function javascript - Call to undefined function javascript - call function from webservice undefined - Fatal error: Call to undefined function upload image() - call to undefined function wp - image.php call to undefined function - latest articles function in wordpress - Service Call: 173: Fatal Error - Call to undefined function image - upload image function in php - undifined image - call image with username+flash - Fatal error: Call to undefined function -mysql javascript - Call to undefined function + php + wp - 173:fatal error -