url redirect for advert after signup 302 error – url encoding ?

This topic contains 12 replies, has 3 voices, and was last updated by  Paolo 9 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #30142

    sargon b
    Expired Member
    Post count: 16

    I get redirected to my home page after adding a new place listing that goes through the user sign up flow. I notice that there’s a 302 Moved Temporarily. I’m not sure if this is due to the encoded characters in the url. When I replace the encoded characters with the actual slashes and question mark url params, it works as expected.

    1. non-logged in user: click ‘Add Place’ on http://www.qurbee.com

    2. user will be taken to the signup page (redirect part of the url has a lot of escaped characters)

    http://www.qurbee.com/?geodir_signup=true&redirect_add_listing=http%3A%2F%2Fqurbee.com%2Fadd-listing%2F%3Flisting_type%3Dgd_place

    3. after signing up, the redirect takes the user back to the home page of my site (I’ve noticed there’s a 302 response code error)

    NOTE: I’ve removed the escaped characters and paste this url into my browser. With this url, the user is correctly taken to the add listing page after signing up. Any idea what’s going on?

    http://www.qurbee.com/?geodir_signup=true&redirect_add_listing=http://www.qurbee.com/add-listing/?listing_type=gd_place

    #30148

    Guust
    Moderator
    Post count: 29970

    That is most likely something to do with one of your plugins or theme, that is not how it is working for a normal GD installation, review the demo @ http://wpgeo.directory/ to see how things are supposed to work.

    I’ll alert Paolo to have a look for you.

    #30150

    sargon b
    Expired Member
    Post count: 16

    Thanks. I checked out your demo site – the redirect url looks good on your site from the Add Listing -> Add Restaurant option.

    One thing to note though on your demo site is that the user is still directed to the home page, even if the url is fine. (This happens in the sign up flow and not the login flow).

    On my site, when I manually reconstruct the url to remove character encodings, things work fine. I wonder what plugins / theme could cause the encoding to occur in the first place. I’m using avada. I’m also using a CDN but not sure if that matters.

    #30151

    Guust
    Moderator
    Post count: 29970

    I bet Paolo is going to want your WP admin details, so please post them in a private message. In the meantime, try to find the naughty plugin by de-activating any suspect.

    #30152

    sargon b
    Expired Member
    Post count: 16
    This reply has been marked as private.
    #30238

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    user doesn’t have admin credentials. I can’t see the dashboard and look for errors.

    Have you tried disabling all non GD plugins to see if problem persists?

    Let us know,

    Thanks

    #30239

    sargon b
    Expired Member
    Post count: 16
    This reply has been marked as private.
    #30244

    Paolo
    Site Admin
    Post count: 31206

    I would think this is a server issue. I would ask them why the URL are looking like that to the hosting support. I don’t think it is a script problem.

    BTW, I’ve deactivated and deleted W3 Total Cache, that plugin isn’t compatible.

    Thx

    #30367

    sargon b
    Expired Member
    Post count: 16

    could it have anything to do with the .htaccess file?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    #30371

    Guust
    Moderator
    Post count: 29970

    That htaccess file is the standard file, so that should not be an issue.

    #30755

    sargon b
    Expired Member
    Post count: 16

    Hmm, ok I’ve been looking to change my hosting provider anyways. I noticed that your demo site wpgeo.directory is quite fast. Who is your hosting provider for that site?

    Also, have any other users experienced the same issue I’m experiencing. My hosting provider is 1&1.

    #30756

    sargon b
    Expired Member
    Post count: 16

    A couple other things:
    1. I removed the urlencode near line 148 of template_functions.php and this still had no effect
    2. The redirect always works for the ‘Sign In’ scenario (regardless of encoding or not)
    3. The redirect always fails for the ‘Sign Up’ scenario (regardless of encoding or not)

    Any idea what is the issue?

    #30804

    Paolo
    Site Admin
    Post count: 31206

    HI,

    can you please try to disable all non GD plugins and change theme to a default one like 2012?

    If this doesn’t work, I think the problem is server settings and there is really nothing we can do.

    We use http://hetzner.de/en

    We have 2 servers, both dedicated in the mid range as far as performances. 1 with Apache and 1 with Nginx.

    Thx

Viewing 13 posts - 1 through 13 (of 13 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