• Resolved tnichum

    (@tnichum)


    So I have, by mistake, added a PHP snippet on my frontpage that redirects to my frontpage with no conditions to it.

    So now everytime I active the plugin again, it starts this redirecting loop. Where can i delete this Snippet so that this doesnt happen?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @tnichum,

    You can enable the safe mode for WPCode to prevent the snippet from running so that you can access your admin area and disable it. All you have to do is go to your site at /wp-admin/?wpcode-safe-mode=1

    More details can be found in this article https://wpcode.com/docs/php-error-handling-safe-mode/

    Thread Starter tnichum

    (@tnichum)

    @gripgrip Then after going to that, would it be safe to activated the plugin again? Would it remember that safe-mode is enabled even when switching page?

    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @tnichum,

    You will have to first activate the plugin, once the loop starts you can just close that tab and navigate directly to the safe mode URL. Once you are in safe mode, the safe mode will be kept until you click the exit button in the notice at the top. Once in safe mode you can go to the WPCode screen and disable the faulty snippet from the list.

    Thread Starter tnichum

    (@tnichum)

    @gripgrip
    That doesn’t work. It still says the redirect loop is active.

    Plugin Author Mircea Sandu

    (@gripgrip)

    At this point the loop might be cached by your browser, I suggest trying to access a different page with the safe mode parameter appended to it, for example:

    /wp-admin/admin.php?page=wpcode&wpcode-safe-mode=1

    Thread Starter tnichum

    (@tnichum)

    @gripgrip
    That worked for me.

    But the snippet is no longer visible there. I have deleted an entry in the database under the table called www_posts that had the faulty line of code in it. Could be this is why it is not showing up?

    • This reply was modified 3 years, 3 months ago by tnichum.
    Plugin Author Mircea Sandu

    (@gripgrip)

    Yes, please enable/disable another snippet while still in safe mode to reset the pre-loaded snippets and you should be good to go.

    Thread Starter tnichum

    (@tnichum)

    @gripgrip
    It still doesn’t show up after doing this.

    Thread Starter tnichum

    (@tnichum)

    @gripgrip ahh, nevermind! It is fixed now- that’s why!
    Thank you for a VERY quick response!

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

The topic ‘Redirect loop fail’ is closed to new replies.