The MU forums have moved to WordPress.org

Can't "insert into post" photos (17 posts)

  1. yuval83
    Member
    Posted 14 years ago #

    Hello,

    There is a strange bug in the wordpress mu that i installed: We can't put photos in posts. We can uploaded them into the media library but after the upload has done, the button: "insert into post" doesn't put the pic in the post. it returns to the last window that shows all the pictures gallery.

    Any solution?

    thanks,

    Yuval

  2. andrea_r
    Moderator
    Posted 14 years ago #

    When you upload, are you doing it within the Write Post area, while you are writing a post?

  3. yuval83
    Member
    Posted 14 years ago #

    yep, doesn't work...

  4. andrea_r
    Moderator
    Posted 14 years ago #

    Got any plugins that interfere?

    (it works for me)

  5. yuval83
    Member
    Posted 14 years ago #

    The only active plugin is:
    Google Analytics for WordPress

  6. andrea_r
    Moderator
    Posted 14 years ago #

    So there's nothing in mu-plugins?

  7. tmoorewp
    Member
    Posted 14 years ago #

    Make sure the PHP GD library is installed on your server or WordPress won't be able to create thumbnails and things that it needs to. I had this issue and it doesn't tell you if you don't have the GD library...it just acts funny.

  8. fransa
    Member
    Posted 14 years ago #

    I have the same problem!

    What can I do?

  9. SteveAtty
    Member
    Posted 14 years ago #

    Well have you checked if you've got GD installed? Are there any errors in any error logs?

  10. wgabrie
    Member
    Posted 14 years ago #

    Try this:

    On the "Add an Image" screen you should erase all text from the Caption box, and, if that doesn't work, try to make sure the Title box only contains letters, numbers, and underscores but no special characters like apostrophes ('), quotes ("), and so on.

    Use the Insert into Post button.

    Next, if the image shows up, Click on the image. There should be two buttons that appear over the image. Then, click on the left, picture of a mountain, button.

    Finally, retype your Image Title and Image Caption in the boxes, then click the Update button.

  11. computergenius
    Member
    Posted 14 years ago #

    I get the same problem - but only in Internet Explorer - Firefox shows the images, but Internet Explorer shows the red X. And only on certain photos!

  12. ffrazier
    Member
    Posted 14 years ago #

    I cant put photos in a post, actually cant add media (the media is uploaded to the server but never shows in the add image box) when I'm in a post page. When I use quick press the image will upload fine and can be added to the post.

    Weird and frustrating.

  13. sdsenthil
    Member
    Posted 14 years ago #

    kindly anyone give the help.
    I struck with my 2 MU sites with huge userbase.

    Everything was fine upto 26/Feb/2010.

    Media uploader is fine in Quick Press, but it's not working in normal Add New Post. If I select the files, the all files are uploaded in the correct folder, but not showing in media library and not showing after upload completed, just empty..

    It seems, the problem in inserting the file names to the database after the upload completed or the process aborted before the database entry.

    I check the browser log, it show the following error:
    'J.parentNode' is null or not an object.

    Both MU sites have the same problem. I did nothing and nothing is changed.

    I tried by replacing the .htaccess with new one and removing plugins (even all plugins). but nothing helped....

    It's weird....

  14. sdsenthil
    Member
    Posted 14 years ago #

    found the exact issue...

    check out the media upload url, see the post_id, it's in negative number. just remove the (-)minus sign from the URL, the uploader will work fine.

    http://bfora.com/wp-admin/media-upload.php?post_id=-1267267281&type=image&TB_iframe=true

    but I have to check the php files, to know where the URL is generated to fix the issue. If anyone found place, let us know.

    Regards,
    Senthil,
    http://www.senthil.name.

  15. sdsenthil
    Member
    Posted 14 years ago #

    here is my quick fix by modifying the REQUEST variable in media_upload.php.

    place the following line:
    $_REQUEST['post_id'] = str_replace($_REQUEST['post_id'],'-','');

    under the following line in media_upload.php,
    $post_id = isset($post_id)? (int) $post_id : 0;

    also, I always wonder that such issues never fixed or even replies by fellow programmers in this forum. This issue is notified by few users 2 or 3 weeks before, but no answers.

    I always found the fixed for my issues.
    Anyway I am happy to fix the issue and help others.

    This is the quick fix, even I don't know why the post_id generated with negative value. If anybody found the reason let me know, so I can help/support this community further.

    Regards,
    Senthil,
    http://www.senthil.name.

  16. beheader69
    Member
    Posted 14 years ago #

    @sdsenthil
    doesn t work 4 me

  17. nallejacobsson
    Member
    Posted 13 years ago #

    The fix from sdsenthil worked for me.

    /N

About this Topic

  • Started 14 years ago by yuval83
  • Latest reply from nallejacobsson