• Hello. I’m somewhat new to working with WordPress. I’ve only been doing it since February of this year. I’m just the developer that installs it and then troubleshoots things when they go wrong. Anyway, I started upgrading various sites to version 2.5 yesterday thinking everything was going to be just fine however it’s not.

    I started getting emails saying the image uploader isn’t working. This is the error message the user gets when they try to upload an image…

    Fatal error: Call to undefined function wp_constrain_dimensions() in /home/onscifi/public_html/stargateatlantis/wp-admin/includes/image.php on line 173

    However it’s not the only error message. I went into the admin panel for one of the sites. I went to the Manage -> Media Library and I see the following error message…

    Fatal error: Call to undefined function wp_get_attachment_image() in /home/onscifi/public_html/stargateatlantis/wp-includes/post-template.php on line 386.

    I’ve tried the stuff in the sticky (except for the no flash plugin) all to no avail. If anyone has any suggestions I’d really appreciate it.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter seanmyr

    (@seanmyr)

    Just an update. Even though I completely deleted the folders wp-admin and wp-includes from my server and then redownloaded the 2.5 version and uploaded those new folders again that didn’t seem to work for me. So I then decided to try this with the root directory files. I deleted all the root directory files from the server and then re-uploaded them from my newest 2.5 download and now the admin panel Manage->Media Library page doesn’t give me that error message that it was giving me. I can actually see the image that the user uploaded.

    I haven’t tried uploading my own image yet to see if that got fixed as well. If it is fixed I’ll post back.

    Thread Starter seanmyr

    (@seanmyr)

    Another update.

    I just tried uploading an image and the image uploaded just fine. But there is a new problem for me now. I was writing a test post when I tried to upload an image. I was able to select the image and everything and it did the “crunching…” thing just fine. However when I pressed the button to insert the image into my post, the window that the image upload is in went completely blank and then just sat there. The only thing I could do was to click on the “x” in the upper right hand corner to close the window but once I did that, the image of course was not inserted into my test post.

    To make sure that the image uploaded I went to the Manage->Media Library and there it was. So the uploading works just fine however the user cannot insert the image into their post. This is still a problem but at least it’s a step in the right direction! ??

    I have the same problem — image is uploaded, but insert fails. No error message, just a blank image-posting screen.

    but, what is the solution???:-)
    when i upload the image, i get the message “Crunching…”
    Then after my browser is redirected to some another site. Ultimately the image is not uploaded.

    Thanks.

    I have exaclty the same problem!! Cant place the photo on a post, exactly like you described. Did someone found out what to do? Thanks!!!

    Ah forgot this: tried in Firefox and IE on windows and FF in the mac

    i mean, this problem:
    ” I just tried uploading an image and the image uploaded just fine. But there is a new problem for me now. I was writing a test post when I tried to upload an image. I was able to select the image and everything and it did the “crunching…” thing just fine. However when I pressed the button to insert the image into my post, the window that the image upload is in went completely blank and then just sat there. The only thing I could do was to click on the “x” in the upper right hand corner to close the window but once I did that, the image of course was not inserted into my test post.

    To make sure that the image uploaded I went to the Manage->Media Library and there it was. So the uploading works just fine however the user cannot insert the image into their post. This is still a problem but at least it’s a step in the right direction! ?? ”

    I too am having the same problem to be honest. I get the blank, white window when I’m uploading and image which is quite frustrating.

    I’ve tried FF, Safari (I’m on a Mac) and Opera without any success.

    Any ideas would be appreciated!

    I wonder if I can downgrade the wordpress…

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Even after following this I continued to have issues. It simply wouldn’t recognise the full path of the upload directroy. My WordPress 2.6 installation is in /blog and not the root, and my images folder is not under WordPress, but at the root level. I had to leave “Store uploads in this folder” blank because it only accepts paths relative to the WP installation folder, and even though I put the full path into the next field “Full URL path to files”, it refused to actually upload files there, instead putting them in wp-content/uploads, no matter what I did.

    So, I deleted wp-content/uploads and then used the C-Panel Cron Jobs option to create a one-time cron job which creates a sym link pointing from wp-content/uploads to the proper location. And now the uploads work flawlessly and I get to instantly see an image in my Visual editor whilst posting, and no longer have to manually move the images across.

    Something like:

    45 03 * * * ln -s /where/your/images/are/really/stored /where/your/wp/thinks/they/should/go/wp-content/uploads

    Then delete the cron job once it completes successfully.

    Hope this helps someone else.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Image Uploader Problem, a little different’ is closed to new replies.