Posted: February 26, 2019 at 11:30 am
|
Hi, I’ve been having issues with a site using EE4, where when a Credit Card payment is declined nothing is shown to the user on the front-end. However, despite this response from the API, nothing shows up on the frontend, leaving the user without any clue as to why the site does not advance to the confirmation page. Any idea of what might causing this? |
Hi, We saw something similar last week for another site and it turned out to be caused by the theme. What happened was the theme has a bit of JavaScript that stripped away the notification’s placeholder html. So when the error was thrown, there was no html to contain it. Here’s a link to the topic where this was discovered: What you could do is try Health Check plugin to rule out a similar cause for your site. |
|
|
Hi Josh, Thank you for the follow up. In any case, I’ve tried adding an empty paragraph Anything else I should be looking into? |
|
Just to add to the info above, I’ve also tried to debug the site with the default theme and without any plugin enabled, using the Health Check plugin, but with that I can’t even enable Event Espresso, it keeps failing with the error message:
|
It’s added before the_content(), somewhere around the loop_start actually. Since it sounds like you’re having some trouble with the Health Check plugin, which happens, maybe you have a dev server you can troubleshoot this with? |
|
|
Hi Josh, Could you please elaborate on how are those tags injected into the template? I assume they would be added via a standard WordPress hook but that doesn’t appear to be the case. I did managed to get the notification showing on the production server running Health Check with nothing but Event Espresso enabled: The error message is still a bit cryptic for a regular user, and I do see the DOM structure added to the page in this case. That structure includes elements for the Ajax feedback and the confirmation notices, which is missing from the page when I enable our theme. Could you please elaborate on how those tags are added to a regular page template? |
|
Sorry, one more detail to this. The last one with the ID espresso-ajax-notices is stripped out of the page on page load. We don’t have any logic in place to do this, so I assume this is being done by the plugin itself. |
I can point you to the source code, but the way forward will be to isolate the plugin or the theme that’s causing the conflict. Hook point: |
|
|
Thanks so much Josh, this indeed point me in the right direction. Thanks so much for helping me through this! |
The support post ‘On screen notifications not showing’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.