Home Forums Plugin Support WP User Frontend Pro Registration Form _wp_http_referer

This topic is: resolved

This topic contains 29 replies, has 3 voices, and was last updated by  Tareq Hasan 5 years, 11 months ago.

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • #5685

    polykrom
    Participant
    Post count: 37

    Hi,

    I've noticed a weird thing with WPUFP,

    I've created a registration form and checked the “similar page” in the form parameters,
    but when i register with this form, i'm not forwarded to the referer page .

    I've checked the code and saw the _wp_http_referer hidden field in form but it seems not to be well interpreted by WPUFP ..

    So ? Could check the code, but it would be interested for others

    thanks

    Francois

    #5686

    Mahi
    Member
    Post count: 1555

    Hello Francois,

    can you please explain what did you mean by – “checked the “similar page” in the form parameters” ?

    i just check and everything seems to be working without any issue.

    From form's settings option Redirect To which option did you choose ?

    #5687

    polykrom
    Participant
    Post count: 37

    Well,

    When i go to my new WPUF Registration Form, in the parameters, i ‘ve 3 choices : same page, other page or custom url .. and when i take the same page option and register with my new form, i'm not forwarded to the original page :-/

    thanks Mahi !

    #5688

    Mahi
    Member
    Post count: 1555

    It does ! It redirect you to same page with a successful message which you can set from form's settings option !

    and, if you again refresh the page it should show the registration form again !

    #5689

    polykrom
    Participant
    Post count: 37

    Nops Mahi, in my case it doesn't :

    My registration page URL is : */kifffeur/admin
    The Form Hidden _wp_http_referer is : */kifffeur/admin

    so ok … but when i submit the form, i'm forwarded to other weird page related to a post ? :-/

    #5696

    polykrom
    Participant
    Post count: 37

    MMmhhhh… I found a misconfiguration in my theme, but now i have the following page with no others infos :
    ajax?msg=profile_update

    that displays 0 …

    ??

    #5703

    polykrom
    Participant
    Post count: 37

    Seems to be a jQuery version related issue.. but don't see where it's from…
    Maybe an enqueue problem…
    Wich version of jQuey is required by WPUF ?
    i've tried different versions of jQuery without success

    thanks !

    #5711

    Tareq Hasan
    Keymaster
    Post count: 2831

    Hey Francois, WPUF uses the same jQuery that comes with WordPress. Check if your theme or other plugin is enqueueing any lower or different version of jQuery.

    You shouldn't be worried on _wp_http_referer, it's a security measure used to prevent CSRF attack using Nonces

    #5717

    polykrom
    Participant
    Post count: 37

    Hi Tareq !

    Thanks for your answer, but i'm not able to fix my issue…
    My theme doesn't include any of WPUF required javascript files …
    I've tried to include it from my theme function, but i get lot of javascript issues.
    So ? Don't know why the enqueued WPUF files are disabled :-/

    If you have any idea 😉

    #5720

    Tareq Hasan
    Keymaster
    Post count: 2831

    Check if your theme has <?php wp_head(); ?> in the header and <?php wp_footer(); ?> in the footer.

    #5721

    polykrom
    Participant
    Post count: 37

    It's the first thing i've done Tareq … All my Theme's scripts are loaded correctly… The WPUF forms are correctly displayed … but nothing related to javascript…
    Have uninstall and install WPFU several times, checked my code, debug with FF and WP debug mode… nothing.. :-/

    #5734

    polykrom
    Participant
    Post count: 37

    mmmhh…

    Still searching for solution…
    Would it be do_shortcode related ? I need to include my Registration form from php and i see only that solution…

    I think it could be the origin because shortcode is fired after header…

    WHat do you think about it ?

    #5735

    Mahi
    Member
    Post count: 1555

    What theme you are using ? what happens when you use a default theme ? Is site online ? Can i check it out ? you may reply privately.

    #5743

    Tareq Hasan
    Keymaster
    Post count: 2831

    The current version of the plugin loads only the scripts if the page has only the plugin shortcodes. So that might be the problem for you if you are using do_shortcode() manually.

    #5745

    polykrom
    Participant
    Post count: 37

    Yes Tareq… i think it's the case… Will try to enqueue the required WPUF JS files in my own theme function, maybe it'll work.
    I don't have yet a live version to show you the resulat, will keep you in touch with it.

    Currently looking to implement my own custom OSM field 😉

    cheers

Viewing 15 posts - 1 through 15 (of 30 total)

The topic ‘Registration Form _wp_http_referer’ is closed to new replies.