• Resolved mikaristo

    (@mikaristo)


    Hi, I just installed WP 2.0.2 and I’m trying to get familiar with it. It is installed in it’s own subdirectory (say <server>/content/) and otherwise everything is working great from there, except for the attachments.

    When I use the upload function, the attachment ends up in the correct place in the file system (/content/wp-content/uploads/2006/…), but the resulting HTML code in the editor is missing the subdirectory “/content/” part, i.e all references are like <server>/wp-content/uploads/… Thus the thumbnails are broken and the links don’t work, either.

    I believe this must be a bug?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mikaristo

    (@mikaristo)

    OK, after hours of frustration and delving into the code I finally got this to work after hardcoding the paths in wp-includes/functions-post.php -> wp_upload_dir().

    After some more testing, I realized that this change didn’t actually affect anything; uploading and linking work when the links are created from the pop-up option menu for the attachment. But if I create them by dragging & dropping in Firefox, the ‘/content/’ part disappears again :-/ Now where the heck does THAT come from? I couldn’t find any incorrect references on the page or the generated JavaScript.

    But if I create them by dragging & dropping in Firefox, the ‘/content/’ part disappears again

    I believe that part is a known bug (dragging and dropping into the post while using Firefox).

    However, clicking on the uploaded item and using “Send to editor” should work just fine.

    Thread Starter mikaristo

    (@mikaristo)

    I believe that part is a known bug (dragging and dropping into the post while using Firefox).

    OK. Now that I know it’s a FF problem, I found the previous thread on it as well as the ‘wontfix’ status on
    http://trac.wordpress.org/ticket/2612
    *sigh*. I’ll mark this as resolved, thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wrong URIs for attachment links’ is closed to new replies.