WordPress.org

Ready to get started?Download WordPress

Forums

Image Uploader Problem, a little different (12 posts)

  1. Seanmyr
    Member
    Posted 6 years ago #

    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

  2. Seanmyr
    Member
    Posted 6 years ago #

    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.

  3. Seanmyr
    Member
    Posted 6 years ago #

    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! :)

  4. hitthosekeys
    Member
    Posted 6 years ago #

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

  5. pratibimb
    Member
    Posted 6 years ago #

    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.

  6. claudiaborges
    Member
    Posted 6 years ago #

    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!!!

  7. claudiaborges
    Member
    Posted 6 years ago #

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

  8. claudiaborges
    Member
    Posted 6 years ago #

    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! :) "

  9. Disco_Stink
    Member
    Posted 6 years ago #

    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!

  10. claudiaborges
    Member
    Posted 6 years ago #

    I wonder if I can downgrade the wordpress...

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    http://wordpress.org/support/topic/164999

    Read and follow every step.

  12. dfvanden
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic