• I have been trying to insert an uploaded picture into a post since I (locally) installed 2.5 RC1. (Now upgraded to 2.5)
    I have no problems uploading my pictures, but then it seems to go wrong.
    I hit the add Media -> add a picture-button, then I choose the ‘Media library’ where I choose the picture I want.
    Title, caption and description are already entered, I chose to have no link, choose the alignment and size I want, hit ‘insert to post’, and then the middle of the ‘greybox’ turns white, and nothing else happen. When I close the graybox, by hitting on ‘x’, (which is the only thing I can do), nothing has changed to my post…

    Maybe (as a non-english-speaking user) there is something I misunderstood, but when that’s so, it should be made a little bit easier.

Viewing 15 replies - 46 through 60 (of 86 total)
  • But it works when I blank the URL target – so will try Glotzfisch
    fix above.

    Can confirm – Glotzfisch solution above works for me. You need to edit your

    /wp-admin/includes/media.php

    file.

    WordPress people – you need to include this fix in the next release.

    I’m using 2.5.1 so the Glotzfisch solution doesn’t work for me

    My symptoms

    method 1
    go to site using wp-login.php
    login to site
    Create post, insert image to post
    login window pops up again asking for login
    log in again
    insert image to post
    white box appears and hangs there

    method 2
    go to site using index.php
    On start page click “Log in” under “Meta”
    login to site
    create post, insert image to post
    inserts like it should

    Glotzfisch solution is for 2.5.1!

    I’m using 2.5.1 and tried Glotzfisch solution, I now get this error on a white screen after trying to log-in to get to the admin screen or edit posts:

    “Parse error: syntax error, unexpected ‘=’ in /home/(myuser)/public_html/wp-admin/includes/media.php on line 58”

    I tried reverting my media.php back to the original and also a fresh media.php from the 2.5.1 download but it’s still showing up as an error…

    IF Glitzfisch solution is for 2.5.1 – then please let me know what line to look at – because that line is not in my media.php

    In the media.php that was included in my 2.5.1:

    $html = ‘<img src=”‘.attribute_escape($img_src).'” alt=”‘.attribute_escape($alt).'” title=”‘.attribute_escape($title).'” ‘.$hwstring.’class=”align’.attribute_escape($align).’ size-‘.attribute_escape($size).’ wp-image-‘.$id.'” />’;

    $url = ”;
    $html = apply_filters( ‘image_send_to_editor’, $html, $id, $alt, $title, $align, $url, $size );

    The error I receive

    Line 7
    Charac 2
    Permission denied
    Code 0
    https://website/wp-admin/post-new.php

    I can add images to the media library – but when I try to insert into post – this is the error I get.

    Incidentally – yes, I have cleared my browser cache, yes, I have reinstalled, yes, I have disabled all plugins. The *only* thing that comes close to a resolve is logging in via https://website/index.php

    Weird thing is – seems to work fine in Vista… how weird is that?

    I was running my site on WP2.5 and would get the blank window when I clicked on “insert into post” so I upgraded to WP2.5.1 hoping that this would be one of the fixed bugs. No luck.

    There are now 2 flavors to my experience. When I click on ‘insert into post’ the image upload box either goes blank or I get a login as described in glh3913’s “method 1” experience stated above. Note that the login actually appears within the image upload box. If I login, then I return to the image upload interface. Clicking ‘insert into post’ would then definitely bring me to the blank box.

    Not sure if this is helpful to note, but all of my wordpress files are in a subdirectory. My site is functioning fine, but thought I’d mention that in case there’s a pattern there.

    Anyone?

    I seem to be having a different issue.

    When I go to post an image, I click on add image, the box pops up, but it way down at the bottom of the screen and I can’t move it up to see the bottom half of the box. How can I get the box to move to the center of screen??

    I’ve fixed my “Parse error: syntax error, unexpected ‘=’ in /home/(myuser)/public_html/wp-admin/includes/media.php on line 58” problem by reinstalling wp 2.5.1.

    The blank box when inserting media into posts still remains. I’m starting to think we’ll need to wait for 2.5.2…by then I hope it works…I haven’t uploaded any pictures on my blog in soooo long.

    IF Glitzfisch solution is for 2.5.1 – then please let me know what line to look at – because that line is not in my media.php

    It’s in /wp-admin/includes/media.php not the other media.php

    I have the same issue (impossible to insert the uploaded image to the currently edited post) with Firefox 2.0.0.14 under Mac OS X 10.5 Leopard with WordPress Mu 2.5.1 and a blog installed on an IDN (International Domain Name that uses non-ASCII characters). As suggested above, the error message:

    uncaught exception: [...] Window.send_to_editor

    is probably due to an abusive cross-site-scripting FF protection, since the IDN can be written in both non-ASCII and only-ASCII characters. That theory appears to be right, since Safari 3.1.1 does not suffer from that issue.

    I have no trouble with FF.

    I can upload in IE, but when I try to insert, I get an error that says “unexpected identifier, string or number.”

    I’ve got another blog running on 2.5.1 on the same server with no trouble. The only difference between the problem blog and the working one is that the problem blog is in Spanish.

    I am having a problem with the media uploader that sounds similar to some of the problems other people are having here.

    I can upload images, but they upload to the wp-admin directory, and no matter what I try, they are stuck somewhere in that folder.

    For those of you who think your images are uploading, but cannot insert or see them afterwards, are they in your wp-admin folder somewhere?

    Add me to the list. I try to insert an image (add media | insert into post)but I just get a white box with an x in the upper right.

    I tried Glitzfisch’s code fix, cleared the cache, and disabled all plugins but I still have the problem. I’m using wordpress 2.5.1 and have the problem in both firefox and ie7.

    Ok, finally got it working. What did it was emptying out “/wp-content/uploads/js_cache” and uploading a fresh image to the Gallery.

    So here is everything I did:
    -Glitzfisch’s code fix
    -upgraded to the latest flash
    -disabled all plugins (although it works now with the plugins enabled)
    -cleared any files out of “/wp-content/uploads/js_cache”
    -cleared the cache out of firefox, closed the program, rinse and repeat.
    -delete images already uploaded to the gallery and upload new ones.

    Hopefully others get it working!

Viewing 15 replies - 46 through 60 (of 86 total)
  • The topic ‘Can’t insert picture in post with 2.5’ is closed to new replies.