2.0.2 uploads not working (8 posts)

  1. nitram
    Posted 10 years ago #

    Hi there.

    Maybe it's a but, maybe it isn't. But when I try to create a fresh clean installation of the current 2.0.2 release I can do uploads, and I can see them in the upload frame, but when I add them to my post, they don't show up.

    The .tar.gz file is extracted to /var/www/wptest, so there is a folder /var/www/wptest/wordpress where all the stuff is.

    From the logs of my server I can read:
    [Mon Mar 20 09:23:19 2006] [error] [client x.y.z.101] File does not exist: /usr/share, referer:
    [Mon Mar 20 09:34:41 2006] [error] [client x.y.z.101] File does not exist: /var/www/wptest/wp-content, referer: http://xyz/wptest/wordpress/wp-admin/post.php?action=edit&post=1

    The first strange thing is, that it wants to access /usr/share, but I guess that's another problem.

    The second line tries to access /var/www/wptest/wp-content but it should be /var/www/wptest/wordpress/wp-content.

    I tried to find the reason for this, but I couldn't find it.

    Help is very appreciated since I really would like to use the 2.0.2 version.

  2. bob58
    Posted 10 years ago #

    That might depend on how you set the image URL (src). You should always do something like

    If you use /wp-content/myPicture.jpg, the browser requests the wrong url ...

  3. nitram
    Posted 10 years ago #

    Under Options->Miscellaneous I have set "Store uploads in this folder"
    to "wp-content/uploads" and I can also access the images through
    But it seems, that if I add the image to my post via drag and drop, it sends the wrong path to the image to the edit field. When I add the image manually with the complete link, it works.

    So, the upload works, also the downloading of the images, but the adding via drag and drop does not.

    Do you have 2.0.2 as well and does it work in your blog?


  4. nitram
    Posted 10 years ago #

    I found the problem, but have no clean solution:
    In tiny_mce_gzip.php we have at about line 160:

    document_base_url : "<?php echo trailingslashit(get_bloginfo('home')); ?>",

    When deleting it all works find. Does anybody have the same issue?


  5. npeninguy
    Posted 10 years ago #

    Same issue here.

  6. is
    Posted 10 years ago #

    Same issue here, too.

  7. is
    Posted 10 years ago #

    I think i found problem in WordPress 2.0.2 file upload module. I enable 'Organize my uploads into month- and year-based folders' options. So the URL of the uploaded file is with year/month path.

    In wp-admin/inline-uploading.php 260 line:
    $filename = basename($attachment['guid']);
    it's striping year/month's path.
    So. I modify the code like this:

    $title = htmlentities($attachment['post_title'], ENT_QUOTES);
    $filename = basename($attachment['guid']);
    $filepath = $attachment['guid']; // Add this line.

    in following lines, modify ab[...] = ... href=$FILENAME to href=$filepath.

    It's work correctly now.

  8. nickthegeek
    Posted 10 years ago #

    Hi is

    Thanks for the fix ...

    I've added the line to 'inline-uploading.php' but I'm not sure what you meant for the second part ... do I replace all instances of $filename with $filepath or do something else?

    Or, is there any chance you could upload your fixed version of 'inline-uploading.php' so I/we could download it and see what you've done?


Topic Closed

This topic has been closed to new replies.

About this Topic