Events Made Easy Forums How do I … Blank page after submitting form. Needs to go to Paypal

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #43908
    Anonymous
    Inactive

    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

    #50149
    Franky
    Keymaster

    Blank page: typically means a php error occured. Look in your webserver logfiles for possible errors.

    #50150
    Anonymous
    Inactive

    I’ve checked my hosting account and I receive an access log but nothing in the error log folder. Would you have any other suggestions?

    #50151
    Franky
    Keymaster

    sorry, a blank page doesn’t give much info … talk to your hosting provider for the error logs.

    #50152
    Anonymous
    Inactive

    It 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?

    #50153
    Franky
    Keymaster

    Could 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.

    #50154
    Anonymous
    Inactive

    Thanks Franky, I’ll try it and let you know the outcome…

    #50155
    Anonymous
    Inactive

    Hi 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)

    #50156
    Anonymous
    Inactive

    I 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.

    #50157
    Franky
    Keymaster

    Well, 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.

    #50158
    Anonymous
    Inactive

    Hi 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

    #50159
    Franky
    Keymaster

    well, 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.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top