Another problem I’ve just noticed I’m having with WordPress 2.5 has to do with image uploading. After attempting to upload an image to a blog post, I was presented with the following error:
Fatal error: Call to undefined function: wp_constrain_dimensions() in /home/u5/ng0larmlon/blog/html/wp-admin/includes/image.php on line 173
A quick search revealed (again) that I’m not the only one having this problem. I’ve checked that I can post images no problem if they are specified by a URL (eg. hosting it on Imageshack, my own server etc.) but if I try to upload an image from my local machine it barfs.
Now one thing I’m not sure of is whether or not the problem(s) I’m having is because of the way I installed WordPress initially. I took the newbie route and installed it via my ISP’s control panel. Problem is, the latest version on their control panel is still 2.3.3. So being the adventurous soul I am (not really), I went ahead and upgraded it via FTP. Now when I got back to the control panel on my ISP’s site, the currently installed version is listed as “N/A”.
Maybe I should have NOT gone the route of letting my ISP install it and should have just rolled up the sleeves and done it myself.
What do you think? How did you first install WordPress? Via your ISP’s control panel or in a more macho way? Do you think this could be part of the problems I’m having?
Richard,
I am aware of the upgrade feature from your host. I have one on my host too but for some reason I just never trust them. There are also many other methods of upgrading worpress automatically and I’m too chicken to use those too. I prefer to do everything manually.
My process involves these steps:
* Backup up mysql database fist by doing a dump. I like the plug-in we have called wp-dbmanager: http://wordpress.org/extend/plugins/wp-dbmanager.
* Copy the entire contents of your blog on your ftp server to your local hard drive to have a backup.
* Log into your wordpress blog and deactivate all plug-ins
* Grab the latest wordpress zip or tarball an uncompress to your local computer.
* Upload and overwrite the root portion of your wordpress dir structure to your server.
* Upload and overwrite the wp-admin dir
* Upload and overwrite the wp-includes dir.
* Leave your wp-content dir untouched.
* Fire up your browser and go to http://blog.rfquerin.org/wp-admin/upgrade.php to upgrade your database.
* Done! Check your blog to see if it works.
* Log into your wordpress blog and activate your plug-ins.
* Execute happy dance and send heathenx a beer (not the dusty one in the back of your fridge).
http://codex.wordpress.org/Upgrading_WordPress
My original install of wp was via my web host’s control panel. But then I upgraded two or three times via ftp.
No problems so far.
I’d guess that it IS web host related, since it’s writing out the entire address of the host server.
But I’m pretty much pulling that out of my butt,
Richard,
I had the same problem until I realized I had not installed ALL of the 2.5 upgrade files. I did the folder dance, but had not installed the ‘wp-??*.php’ files that appear at the root directory of the WP server.
Once I did this, the problem was solved.
Hope this helps you.
Thanks,
Tim
Thanks for the comments guys. Now refrain from throwing tomatoes at me while I tell you that I *forgot* to overwrite the files in the root directory of my blog.
Tim gets 2 gold stars for pointing out the exact solution.
JakeT gets 2 gold stars for addressing the question about the ISP upgrade.
heathenx gets 2 gold stars for providing all the salient points about upgrading (including the step I forgot to read). But he loses one star for being.. well.. heathenx.
hehe. Thanks guys. It’s all working copacetic now.