WordPress.org

Ready to get started?Download WordPress

Forums

edit_post_link() issue (12 posts)

  1. Swirlee
    Member
    Posted 9 years ago #

    I wasn't sure whether to post this in troubleshooting or here.
    The issue is this. I installed WordPress in a /wordpress directory and then followed the "Install WordPress files and blog in different directories" instructions. This worked like a charm. The trouble is, it breaks the edit_post_link() functionality, because the path for the "I'm logged in" cookies is still set to /wordpress.
    I'd like to see this fixed in upcoming versions, but could anybody give me a quick hack in the meantime? I'm not quite acquainted with the WordPress code just yet.
    By the way, great work on the software!

  2. Swirlee
    Member
    Posted 9 years ago #

    Oops, I just found another issue with the same feature: If you move index.php, you cannot edit it within the WordPress UI (Templates > Main Index), you get "Oops, no such file exists! Double check the name and try again, merci."

  3. ryoken
    Member
    Posted 9 years ago #

    that's a lil issue which has come up often. not sure if there's a solution, yet.

  4. cindypoo
    Member
    Posted 9 years ago #

    I had the same problem after I moved my blog to a different location and clearing my cookies and relogging into the admin site did the trick. Hope it works for you!

  5. thepete
    Member
    Posted 9 years ago #

    It hasn't for me, but thanks for the advice anyway. This problem always screws up the login for that great MicroWiki plugin. I read in some other thread (looking for it now) that this is solved in 1.2.2, but I have yet to upgrade--no time at the moment. I hope upgrading works :)

  6. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    This has already been fixed in CVS, you'll have to wait for the next version.

  7. thepete
    Member
    Posted 9 years ago #

    I'm on 1.2.1 but I'm going to try upgrading to 1.2.2 tonight to see if that makes a difference. Fingers crossed!

  8. DianeV
    Member
    Posted 9 years ago #

    Using new install of 1.2.2, with index.php one directory up from the WordPress folder (and everything else working), the Edit Link does not appear at all. It does not display in the browser source code *at all*, but here's the code:

    <?php edit_post_link(); ?>

    Have I been blinded, or what might be the issue?

  9. thepete
    Member
    Posted 9 years ago #

    Yeah, I installed 1.2.2 and no go. Still brokies. I guess we have to wait for 1.3?

  10. DianeV
    Member
    Posted 9 years ago #

    Well, you're lucky it's just "broke"; it won't even *display* for me. I think I'll go back to 1.2.1.

  11. DianeV
    Member
    Posted 9 years ago #

    I found the answer in:
    http://wordpress.org/docs/installation/different-address/

    It appears that in WP 1.2.2, when index.php is in a different directory than the WP files, then the Edit This link does not appear. That's a shame, as I'd rather not have all the WP files in the same directory as the templates -- far too messy.

    I'll note that 1.2 (and, I believe, 1.2.1) do not behave this way.

  12. DianeV
    Member
    Posted 9 years ago #

    MY MISTAKE!

    I was unable to log out, so I deleted cookies in my browser, then logged back in -- and the Edit link now appears on index.php.

    [Phew. Thought I'd have to reinstall.]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.