• Resolved boriskrielen

    (@boriskrielen)


    I’ve installed the Give WP plugin in a WordPress website. It’s now running in test mode. All works fine as long as I’m logged in in WordPress. When I’m not logged in, the donation form doesn’t work anymore. Is that to be expected?

    Step 1 form loads fine, OK
    Step 2 click Donate now button, OK
    Step 3 seelct amount, press continue, OK
    STep 4 fill in name etc, OK
    Step 5 select any payment option, white page shows

    Payment Gateway is Stripe and that connection works fine. When the donation is finished (logged in in WordPress) then Stripe shows a succesfull donation. When NOT logged in, the donation doesn’t finish and Stripe doesn’t show anything. There are no errors shown at any time anywhere.

    I contacted Give WP by e-mail, and they said this shouldn’t happen in test mode. They asked me to post a message here. Does anybody know why this happens when NOT logged in in WordPress, but all works fine when logged in in WordPress, and what might cause this problem?

    Thnx for the help!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @boriskrielen,

    Happy to help.

    If things work when you’re logged in, you need to check if you have a plugin or WordPress setting that affects logged out users.

    I tested your form and on the first try, i was able to get to the Stripe checkout page. On subsequent tries, I got the blank page that you mention.

    Anytime you change payment gateways on the form, the payment options load via ajax but on your site, for some reason, this fails. Check if you’re somehow blocking ajax content for logged out users.

    Another thing you can try is to disable the_cotent filter. This option is found in Donations -> Settings -> Advanced.

    Next, try using the Legacy form template and let me know if that helps mitigate the problem.

    Thanks!

    Plugin Support Rick Alday

    (@mrdaro)

    Just following up. Did you still need help here?

    I’m happy to help and look into this further for you.

    Thread Starter boriskrielen

    (@boriskrielen)

    Hi Rick,

    Thanks for your help! Sorry, I’ve been trying most of your suggestions, but I’m doing this for free for this foundation and I had lots of other things to take care of as well. Tomorrow morning I’ll have some time to look at this issue again and get back to you with my findings in detail.

    Best regards, Boris

    Thread Starter boriskrielen

    (@boriskrielen)

    After further testing:

    – There’s no plugin or WordPress setting that affects logged out users. This is a simple WordPress site with just a few standard plugins and no special customization.

    – I disabled the_cotent filter. This has no effect.

    – I switched to the Legacy form template, as well as the other template. This has no effect on the issue.

    The problem seems to be purely in the content that is loaded when a different payment gateways on the form is selected. When logged in this content shows as it’s supposed to, but when logged out this content cannot be found. Instead the homepage is shown in the iframe (or a white page). As if that content page with the payment information isn’t published and therefor can’t be shown to logged out users, and instead the page redirects to the homepage (or white page).

    I read in the Give WP settings that this content page is loaded in an invisible iframe. The URL of this page is: https://www.vasaprevia.nl/give/donation-form/. When I go to that URL, the homepage is shown, which seems to confirm that this is where the problem is.

    Thread Starter boriskrielen

    (@boriskrielen)

    Update:

    I’ve deleted everything and installed the Give WP plugin again. New donation form is located at: https://www.vasaprevia.nl/donations/2417/. Unfortunately the problem is still there, unchanged.

    Also deactivated all plugins, but that didn’t make any change either.

    I installed the Give WP plugin on my own website, which is hosted by the same webhost. It was working without any problem within 10 minutes.

    Plugin Support Rick Alday

    (@mrdaro)

    Hi @boriskrielen,

    The admin-ajax.php is throwing a 302 error in the browser console. A 302 is a redirect. There’s an issue with another plugin or function that is trying to prevent non-logged-in or non-admin users access to the wp-admin area so it redirects from wp-admin/admin-ajax.php and gives a 302 response.

    If you don’t have any other active plugins, try using a default theme like TwentyTwenty. If the problem persists, you need to reach out to your host to see if they’re doing the redirect.

    Thread Starter boriskrielen

    (@boriskrielen)

    Hi Rick,

    OK, that really helped! I switched to the 2020 theme and then the donation form worked fine. I found an old function in the used child-theme that caused the problem, preventing non-logged-in or non-admin users access to the wp-admin area.

    Many thanks for your patience and expertise, also from this charitative foundation I’ve been helping.

    Best regards, Boris

    Thread Starter boriskrielen

    (@boriskrielen)

    As the issue is resolved, I’ll close this thread.

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

The topic ‘Give WP form works only when logged in in WordPress’ is closed to new replies.