• Resolved Soprano

    (@soprano)


    Hey,

    Every time I try to edit a post or page the edit form page redirects to the page I’m trying to redirect on the site.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Which WP version?
    Do you have any “framebuster’ plugin activated?

    Thread Starter Soprano

    (@soprano)

    I don’t think so,but now the problem got worse since I can’t even login to my admin panel.

    https://mysite.com/wp-login.php/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/wp-admin/

    I get this in the url and page not found. i tried with all m browsers but dont know whats going on.Any Ideas?

    Thanks

    Thread Starter Soprano

    (@soprano)

    ok I fixted the login problem but I’m still having the redirect one everytime I try and edit a post or page.

    1. Look for something like this in your Plugins list:

    Frame Buster

    2. Look for something like this in the <head> portion of your page source:

    <script type="text/javascript">
    if (top.location != location)
    top.location.href = document.location.href;
    </script>

    Either can cause the issue you’re having.

    Thread Starter Soprano

    (@soprano)

    yep I have the javascript script,one of the plugin required it for anti cheat reasons but Ill take it off ??

    Thanks so much ??

    Kafkaesqui! You just solved MY problem, too! I was having the same issue as Soprano and thankfully, found this thread. I turned off a plug-in I had that prevented my site from being loaded into a frame, and it fixed the problem! Thanks so much! ??

    If anyone else finds resolution to this problem here:

    I’m aware Semiologic’s frame buster plugin was updated some time ago to deal with this problem (I can’t say about any other frame buster plugins), so that would be worth a look.

    And for those who do this manually, here’s what I use in my <head> element:

    <?php if(strpos($_SERVER['HTTP_REFERER'], get_bloginfo('wpurl')) === false) : ?>
    <script type="text/javascript">
    <!--
    if (top.location != location)
    top.location.href = document.location.href;
    //-->
    </script>
    <?php endif; ?>

    The PHP if checks whether the refer comes from your site or not. If it doesn’t the javascript frame buster code is added.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Edit page redirect…’ is closed to new replies.