Call To Undefined Function: ctype_digit() in WordPress 2.5
After upgrading or installing WordPress 2.5, the following PHP error may appear on web pages or in Apache web server log, especially when using the new Flash based media uploader to upload photos, pictures, images, videos and other files:
[error] [client x.x.x.x] PHP Fatal Error: Call to undefined function: ctype_digit() in /wordpress/wp-includes/link-template.php on line 182, referer: /wp-admin/media-upload.php?type=image&tab=library&post_id=1&post_mime_type=&s=&m=200804
The function ctype_digit() is used in get_attachment_link() in link-template.php, and the error may happens on some PHP installation regardless of version. PHP 4 (such 4.3.10) and PHP 5 (such as 5.2.6) both may be affected with the error.
This is a known bug that will be fixed in WordPress 2.5.1, which may released in early May. Meanwhile, if you want to fix the issue immediately, download fixed link-template.php file, and then upload and replace/overwrite the same link-template.php file in /wp-includes/ folder on the web server.
If you’re using IE7, some bugs have to be fixed too before release of WordPress 2.5.1.
Recent Articles
- BBC iPlayer Finally Arrives on Windows Phone 8 Free Download
- Viber Desktop for Windows & Mac Desk with Video Calling Feature
- Enable SugarSync to Sync External USB and Network Drives
- Sony Xperia ZR Waterproof Smartphone Allows Underwater Full HD Video Shooting
- How to Access Files to SD Cards and Flash Key Drives For Modern Windows 8 Apps







Pingback: WordPress 2.5.1 Released for Download » Tip and Trick
Pingback: Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin » Tip and Trick
Pingback: Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 » Tip and Trick