Events Made Easy › Forums › How do I … › Blank page after submitting form. Needs to go to Paypal
Tagged: paypal, rsvp message
- This topic has 11 replies, 2 voices, and was last updated 11 years, 10 months ago by Franky.
-
AuthorPosts
-
Sun 20 Jan 2013 at 18:10 #43908AnonymousInactive
I’ve set up this plug in and managed to configure it to do everything I need but when you complete the form and press submit, it takes you to a blank page (my domain /eme-rsvp-message) Ideally this should be the paypal page where visitors then pay for their registration. I receive confirmation emails so the form s working. I’d just really appreciate any advice to link this to the paypal page.
The paypal tick box is selected under payment method in the right hand side of the edit events.
Thanks
Sun 20 Jan 2013 at 20:22 #50149FrankyKeymasterBlank page: typically means a php error occured. Look in your webserver logfiles for possible errors.
Sun 20 Jan 2013 at 20:34 #50150AnonymousInactiveI’ve checked my hosting account and I receive an access log but nothing in the error log folder. Would you have any other suggestions?
Sun 20 Jan 2013 at 23:50 #50151FrankyKeymastersorry, a blank page doesn’t give much info … talk to your hosting provider for the error logs.
Mon 21 Jan 2013 at 14:56 #50152AnonymousInactiveIt seams its a conflict with my theme. Gleam by Elegant Themes.
It looks to me that the issue occurs in the Gleam Theme as it adds /#!/ into the site url so for example:
http://www.brackleypoker.co.uk/#!/events/6/brackley-wine-bar-february-tournament
When on another theme it shows:
http://www.brackleypoker.co.uk/events/6/brackley-wine-bar-february-tournament
and when you click register, it takes you to this page which is the payment page:
http://www.brackleypoker.co.uk/events/6/brackley-wine-bar-february-tournament/?#eme-rsvp-message
Which works fine. I assume on the Gleam theme it’s adding in /#!/ and therefore mucking up the link. Is there a workaround for this?
Mon 21 Jan 2013 at 19:16 #50153FrankyKeymasterCould you try the following? Change in eme_rsvp.php the line 43
from:
$destination = "?".$_SERVER['QUERY_STRING']."#eme-rsvp-message";
to:
$destination = "#eme-rsvp-message";
And even, to be more correct (other try):
$destination = eme_event_url($event)."#eme-rsvp-message";
And do this also on line 134
I’ll try it out locally as well, but I don’t have access to the Gleam theme, so I can’t test that.
Mon 21 Jan 2013 at 19:41 #50154AnonymousInactiveThanks Franky, I’ll try it and let you know the outcome…
Mon 21 Jan 2013 at 19:51 #50155AnonymousInactiveHi Frank, I tried both. On the second suggesting…
$destination = eme_event_url($event).”#eme-rsvp-message”;
This seemed to work, then it disappeared to a blank screen again.
It must be nearly there!! ;o)
Mon 21 Jan 2013 at 20:12 #50156AnonymousInactiveI managed to get a screen grab of the payment page as it flashed up to see if it had any errors etc but all looked fine. The URL was http://www.brackleypoker.co.uk/events/6/brackley-wine-bar-february-tournament/#eme-rsvp-message
Not sure if this helps.
I really need to crack this as the event is coming up very soon! ;o)
Any help would be greatly appreciated.
Mon 21 Jan 2013 at 20:43 #50157FrankyKeymasterWell, apparently it seems to be redirecting
http://www.brackleypoker.co.uk/events/6/brackley-wine-bar-february-tournament/#eme-rsvp-message
to
http://www.brackleypoker.co.uk/eme-rsvp-message
so, I can only assume that the theme is rewriting all url’s to include the weird “#!” and then redirects to the part after the “#”.
Might that not be an option to the theme somewhere? Or maybe a new version can fix this? Can you not ask them for this support? Because I’m guessing other plugins will face similar issues.
Edit: I just tried a temp version of the theme (which I immediately deleted again, to not get into trouble) and it seems to work locally, although upon submit the “#!” is not present any more (and that might lead to layout issues). So again: it’s up to you and the theme maker to figure this out further.
Or if you want: leave out the “#eme-rsvp-message” with the $destination variable and see what gives (although I don’t recommend to change the code). If it works, again: it’s up to you and the theme maker to figure this out further.
Mon 21 Jan 2013 at 21:33 #50158AnonymousInactiveHi Franky, I think I might of cracked it. I replaced:
$destination = “?”.$_SERVER.”#eme-rsvp-message”;
with:
$destination = eme_event_url.”use_paypal”;
on lines 43 and 134 and it seems to be working now!
Does this look correct to you or have I made a balls up?! Thanks
Mon 21 Jan 2013 at 22:07 #50159FrankyKeymasterwell, no in fact … that can’t work (or it should not be able to):
eme_event_url is a function that needs $event as a parameter. And “use_paypal” is only checked as a $_POST variable, not in the url itself (for paypal: set this in the “edit event” settings for that event).
So in your case, it should be:
$destination = eme_event_url($event);
But again: this is something you should take up with the theme developers.
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.