error using redirect code in snippit

This topic contains 2 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #484433

    Steve
    Full Member
    Post count: 1019

    I have upgraded to v2

    I used the code snippet for registration redirect and this is the error I received.

    “Don’t Panic
    The code snippet you are trying to save produced a fatal error on line 6:

    Cannot redeclare change_geodir_login_url() (previously declared in /home/tonight2/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(361) : eval()’d code:2)
    The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.

    Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.”

    site whatshappeningtonight.com

    best regards,

    #484443

    Guust
    Moderator
    Post count: 29970

    That does not work with V2.
    Try using UsersWP, that has redirect settings built in.
    Wordfence is not allowing me to see the site.
    Thanks

    #484447

    Alex Rollin
    Moderator
    Post count: 27815

    We have some information here about account management in V2 along with some notes and a link about redirection.

    https://wpgeodirectory.com/docs-v2/geodirectory/account-management/

    To redirect login or registration links you can use UsersWP or a 3rd party plugin. If you want to create a customization you can use custom functions like this one for redirecting WP login links.

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount