Support » Plugins and Hacks » [Resolved] [Plugin: Root Relative URLs] attachment guid link in "wp_post"

[Resolved] [Plugin: Root Relative URLs] attachment guid link in "wp_post"

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MarcusPope


    @huijun – Yeah, I can absolutely look into this problem and release a patch. I’ll try to reproduce the problem today and get back with you on when I can deliver a solution.



    Thank you Marcus, you are so effective.
    I am trying to find a solution too, but I modify the /wp-admin/includes/medis.php
    If you could realise this function in the plugin, it should be better for users.

    Have a good day.

    Plugin Author MarcusPope


    @huijun – Ok, I think I have a fix for this issue. I’ll release 1.7 here shortly.

    But first, are you sure you added the following lines to the wp-config.php file?

    define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
    define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
    define('WP_CONTENT_URL', '/wp-content');

    I just want to confirm because if WP_CONTENT_URL is not defined properly, it could also cause this problem.

    Another cause is if you have specified an absolute url in Admin > Settings > Media : Uploading Files. Removing this and using the default value would also fix the problem (but won’t be necessary in version 1.7 of my plugin.)

    Regardless, I can intercept the URL and adjust it to root relative. If after verifying the define statements above are in your wp-config and after upgrading to 1.7 you still have problems then let me know and I’ll work with you further on this issue.

    I should have 1.7 released in a half hour or so.

    Plugin Author MarcusPope


    resolved in version 1.7


    Bravo. After a weekend, this is a surprise for me. As you said, I found out that this problem was caused by the configuration of upload media.

    And I tried the new version, it works perfect.

    Thanks for your help.

    Have a good day. 🙂


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Root Relative URLs] attachment guid link in "wp_post"’ is closed to new replies.