[resolved] EG-Attachments uses "guid" column for getting download-link (4 posts)

  1. _SaV_
    Posted 5 years ago #

    hi there!

    i found a bug which will generate a wrong download-link after i moved with my wordpress-site from my development server to my staging server.

    i was looking around a bit and found the folling line of code in "eg-attachments-public.inc.php" line 101 and 115. in both lines the plugin is using the "guid" column of the post table - which is a not correct handling of getting attachment links. according to wordpress u should not use this column to generate links as it is just a global id for newsreaders. see "http://codex.wordpress.org/Changing_The_Site_URL" and search for "guid" in the text.

    In my opinion u shoud use instead the wordpress-function
    "get_attachment_link" to get the correct url for the file. Then people who move their sites won't have ny problems with that anymore...

    Hope that u will change that soon and thx for the plugin.


  2. emmanuelg
    Plugin Author

    Posted 5 years ago #

    Versions 1.8.x include some modification on "link" management.


  3. jlinkntia
    Posted 4 years ago #

    Any update on this? I moved my site and my attachments now attempt to load the old URL which doesn't work.

  4. emmanuelg
    Plugin Author

    Posted 4 years ago #

    Modifications are done in the 1.8.5.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • EG-Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic