Add Media - Insert Image in Post not working (45 posts)

  1. craiger
    Posted 7 years ago #

    Here's the problem on a client WP install & particulars:

    Bluehost, running WP2.6.1.
    Initial WP install was done via Fantastico.
    Upgraded to WP2.6.1 using WPAU plugin (today).

    The problem existed before the upgrade to 2.6.1. Upgrade did not change anything in regards to problem.

    We can upload an image, but if you try to insert it into a post, you get a blank screen (both flash or browser method).

    In IE7, there is a error message in the browser status bar, when clicked on this is the message:

    Line: 4
    Char: 1
    Error: Object doesn't support this property or method
    Code: 0
    URL: http : // client url/wp-admin/media-upload.php?type=image&tab=type&post_id=150

    I have tried the list of things on Otto's great thread on Image/Media Uploader problems with no results.

    Also, tried another suggestion that included deleting /wp-includes/js directory and reinstalling with fresh code.

    Also, deactivated all plugins, still same problem.

    Any ideas or suggestions are greatly appreciated.

  2. craiger
    Posted 7 years ago #

    Well, Otto's list for 2.5 does NOT work for 2.6.1. I tried everything he recommended: http://wordpress.org/support/topic/164999 including a complete re-install exactly as he suggested ... verbatim.

    I have come across several WP users who are having the same problem:

  3. craiger
    Posted 7 years ago #

    Tried Dustmagics suggestion here: http://wordpress.org/support/topic/165217?replies=22#post-832268 and it also does NOT work.

    Will take any other suggestions.

  4. BernardBorealis
    Posted 7 years ago #

    It may have something to do with the configuration/setup of your permalinks. In Firefox, if you right-click the image and copy the location, does it pull up a legitimate link to your image(s), or a bunch of gibberish? Out of curiosity, just as a test, try putting the code into your post and directly link to your image manually then see what happens:
    Example: (Use whatever path is proper for linking to your image, of course)
    <img src="yourdomain.com/wp-content/images" alt="my image"/>

  5. craiger
    Posted 7 years ago #


    Thanks for responding!

    Ok, r-clicked & path is clean code to image, then tried it in post and when switched back to visual view from html, displays the image just fine, even before saving/publishing post.

    Will play a bit with permalinks to see if it might be the problem.

    Anyone Else with IDEAS? Please post, I know that the solution, when found, will please at least 5 WP users that I'm aware of.

    Thanks in advance!

  6. craiger
    Posted 7 years ago #

    BTW, have also eliminated PHP & MySql versions as the problem.

  7. eblock
    Posted 7 years ago #

    Have same problem w/ wp 2.5. Worked for 2 wks, then stopped working in both IE 7 & FF 2. Images are from local file uploaded, crunched & then seen in gallery & media. Get blank dialog box & msg "Done' in lower left corner. Tried both IE & FF from desktop & laptop. Same neg results. Tried login w/ my login & w/ other admin login. Same results.
    Sorry to hear that 2.6 didn't solve this as that was my next attempt.
    Hope someone has positive results.

  8. In IE7, there is a error message in the browser status bar, when clicked on this is the message:

    Line: 4
    Char: 1
    Error: Object doesn't support this property or method
    Code: 0
    URL: http : // client url/wp-admin/media-upload.php?type=image&tab=type&post_id=150

    This is a javascript error, and it mainly indicates that something is wrong with the browser side of things. It could be a lot of things, but the most likely is that the required javascript libraries and code is not correctly loading from your website.

    Check that all the javascript files in WordPress are loaded on the server correctly, and check that they all have the correct permissions.

    For a test, setup a new test copy of WordPress in another directory entirely, and see if that one works. If so, compare what's different between those two.

    Check the browser's error console (use Firefox), see if any errors strike out at you.

    In short, when you have a javascript error like this, it's always a *site* issue, not a bug in WordPress. For some reason, your browser is not receiving the correct javascript code from your site. Your job is to figure out why.

  9. eblock
    Posted 7 years ago #

    Found a temp work around. Use top button to "Add an Image" next to "Add Media", copy "Link url" for ur image, then use "Insert/Edit Image" button from icon toolbar in Post dialog box, paste in url, then insert image & voila!
    Extra work, but a temp fix that gets the image in.

  10. craiger
    Posted 7 years ago #

    Ok, one step closer I guess.

    Messed with Permalinks, but don't see any problems there. Experimenting didn't change anything.

    I then spent time looking at the Add Media and decided to click on the Add Media icon rather than the Add Image icon.

    That WORKED, then tried the Add Image icon and now it's working too, BUT only on FireFox. IE still gives the dreaded blank white screen.

  11. craiger
    Posted 7 years ago #

    Hey THANKS Otto, I was hoping you would stop by! Makes sense, especially in light of what I just posted (before seeing your response).

    Now just wondering why it would "just start working"? Will experiment and if I find anything further will update this thread.

    Thanks for the suggestion eblock, maybe someone can use it {temporarily} while trying to get their js working.

  12. Jay
    Posted 7 years ago #

    Well I have been looking at different fixes, and tried them all, from fresh installs, to my browsers, to the .htaccess edits from different suggestions. Nothing works. About as far as I get is the pop-up tat ask if your sure about leaving the page stops coming up.

    I do believe it is crazy that a piece of blogging software has this problem at all, and I never had the problem until 2.6, and I can upload to pages fine, it is only POST. Thanks for all the suggestions so far, and I guess keep them coming.

  13. JayMyers: I think you're missing the fact that the piece of blogging software does not have this problem, it is your specific site that is having this problem.

    Until you accept that, you're not likely to make much forward progress. Focus on why your site is having the issue. Because many, many other people run the same software without issues.

    Websites are unique, and will have their own issues. This is a simple fact of webhosting.

  14. refriend
    Posted 7 years ago #

    Otto42, I (respectfully) believe you are missing the point... that 2.6.1 does have a problem.

    I have tried both upgraded and fresh installations of 2.6.1 on a proven server (the server is hosting other wp sites) and am having the same problems:
    - Firefox 3: Image insertion is not completed... left with white pop-up box.
    - IE 7 produces errors (only attaching the first error message; otherwise my reply would would go on forever):

    (function(){document.open();document.domain="happyearthtextiles.com";var ed = window.parent.tinyMCE.get("content");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()

    I found that 2.6's image (& gallery) insertion works fine; though there are header conflicts when either the WordPress Automatic Upgrade (v1.2.2) or cforms (v8.7) plugins are activated.

  15. refriend: I hear you and understand what you're saying, but you're also missing the fact that 2.6.1 *does* work just fine on my own server, on test servers I've setup, on GoDaddy hosting which I use for some sites, etc, etc.

    So while I indeed believe you are having a problem, I'm not ascribing that problem to 2.6.1 in specific.

    The "error" you posted is in fact not an error, but javascript code. That code should not be displaying anywhere at all, so I'm curious to know where it showed up at, exactly...

  16. refriend
    Posted 7 years ago #

    Well, it gets worse. I have now done a dozen fresh installs of 2.6 and 2.6.1. (Note: after doing a number of complete site reloads to test 2.6 vs 2.6.1, I am now simply purging the 2.6 database and uploads folder.) With no changes to the settings and no activated plugins I can not get a consistent working installation.

    Common errors:
    1. white pop-up box.
    2. the image uploader pop-up displays a wordpress login page after uploading an image.

    The errors occur regardless of whether writing a new post/page or editing an existing post/page. Only one type of error occurs per install... which error I receive is a crap shoot.

    Web host: Lunarpages
    Reported as PHP Version 4.4.9 (though configured for 5 per server instructions.)
    MySQL client version: 4.1.22

  17. The fact that you're getting these sorts of errors on fresh installs indicates that you have some kind of common problem between these installs. As in something on your own machine.

    Are you running any funky browser stuff? Strange addons, ZoneAlarm, any sort of firewalls, etc?

  18. refriend
    Posted 7 years ago #

    nope. nothing funky.
    WinXP SP3
    -Firefox 3 (all add-ons disabled): whitescreen or login screen error. The error appears to be related to the flash loader. The non-flash loader appears to operate correctly.
    -IE 7 with IE Developer toolbar: javascript error

    I have also tested within a virtualBox running
    WinXP SP1
    No virus protection
    -Firefox 2 (no add-ons): works correctly
    -IE 6: works correctly
    -Safari 3: unable to login

  19. bearded
    Posted 7 years ago #

    I had the same problem with Inserting Code into post. I reviewed and did a test and got it successful.
    In Admin panel go to Settings > Miscellaneous
    In Miscellaneous Settings Enable the :
    1. Organize my uploads into month- and year-based folders
    2. Crop thumbnail to exact dimensions (normally thumbnails are proportional)
    .. and saved the Changes. And Now my http://newswing.com is inserting the image code. Here I should clear that my WP version is 2.6.1.

  20. a2zme
    Posted 7 years ago #

    Guys, try de-activating ALL your plugins, and see if the 'ADD MEDIA' buttons & AJAX functionality reappears.

    If they do, (in my case, they did) then start activating your plugins one-by-one until you nab the culprit.

    Form me it was the CFORMS plugin. I upgraded the plugin and averything went back to normal!

    Hope this works for someone else...

  21. purrin
    Posted 7 years ago #

    Has anyone figured out what this is related to? I manage a site for someone that has worked great until a couple of weeks ago after an update. What happens is that where you "Add an Image" into a post and a screen generally loads with a darkened background and you get the pop-up screen that has the Choose File tab, Gallery, and Media Library... where you can upload photos and handle the images before inserting it into the post? That pop-up window does not pop up at all. It refreshes the entire page and puts it on a white background in the top left hand corner.

    I've done another update for her blog in case some javascript or some other file got corrupted... I've also re-downloaded her NextGen Gallery. Now I've tried this with all the plugins turned off entirely. It gives the same result with WordPress alone.

    Does anyone have any idea what might be causing this? I am posting this here as well because this sound very much like what is happening with this girl's photoblog.

    -=- christopher

  22. syedabbas
    Posted 7 years ago #

    Just downloaded the latest version of WP and inserting images in the post still does not work.

    In addition I also think some of the malfunctions are also related to the post editors we use. For example.. I use Editor monkey and Inserting links in the post which the plugin is a pain in the neck.

    Please let us know if there is any solution for inserting images.

    Technology Nerd

  23. tofahd
    Posted 7 years ago #

    My problem comes with inserting picture into post...

    The really weird thing is that It actually works when inserting a picture into a page. When inserting into a page I actually get the Flash uploader pop-up. where when I am inserting into a post... I click on the upload photo button and I get sent to the uploader but as a seperate page not as a pop up.

    Does that make sense... Why would it work with the "Write a page" but not "Write a post?"

  24. lddeville
    Posted 7 years ago #

    I have tried both flash and browser uploaders in posts and pages and Add Media doesn't work. I get a blank white window after selecting Insert into Post/Page. Support says to upgrade WP application but I am on 2.6.2 now. Any ideas?

  25. tofahd
    Posted 7 years ago #

    I use firefox and flock and ti's the same stuff! It's the same no matter what browser... I wish I could submit my site to be looked at then maybe someone could figure out that the bug is!

  26. Booh
    Posted 7 years ago #

    I use Firefox 3.03 I have the same problem. I just find my self looking at a blank screen that would appear to never finish loading. I tried to refresh, never thought I'd say this, but I just can't get it up!I tried IE7 Same results.

    The problem only started 2 weeks ago for me, and I post regularly. Can't see any new changes that would have brought this on. I put a placeholder for my images, FTP and link them. I run two blogs, and the problem is the same on both.

  27. valleytechnologies
    Posted 7 years ago #

    Same problem, WP 2.6.3 , I can upload images, and TN's are created but when I click the "insert to post" button at the bottom all I get is a blank screen. FF and IE7 both fail, no addons, fresh WP install. There is a real core WP (js?) problem here somewhere.

  28. Lionel Chollet
    Posted 7 years ago #

    Uploader window blank and "frozen" when clicking Insert to Post

    I deactivated all plugins on my site, opened a new article, inserted an image using the uploader, then activated the first plugin on the list, inserted an image, then activated the next plugin on the list, and so on…

    The uploader window stopped working (got blank and frozen) after activating the Custom Field Template plugin (version 0.4.4). Three attemps: bug confirmed (on my installation, at least).

    No other plugin tested today triggered this bug (but I have lots of plugin and have not tested them all yet).

  29. Anointed
    Posted 7 years ago #

    I have the same problem as above, but only from one of my local computers.
    The computer that has flash 10 on it won't allow me to upload anything where the laptop with flash 9 still works.

    Could flash be the problem?

  30. Lionel Chollet
    Posted 7 years ago #

    I installed Flash Player 10, and then came across the blank-uploader-window bug, so I searched for it and read that Flash 10 was incompatible with the WordPress Flash uploader -- well, it's clearly not a general incompatibility, since Flash 10 and the Flash uploader are getting along fine on my computer, after I have disabled Custom Field Template.

    If you have the time, deactivate your plugins and reactivate them one at a time, like I did, to test the Flash uploader.

Topic Closed

This topic has been closed to new replies.

About this Topic