Posted: May 29, 2019 at 7:58 am
I’m trying to register for a class and get to the Pay Now option. Im using Braintree payments. When I click Pay Now, it just goes back to the same page. |
|
Hi, I checked your site and this appears to be a theme modification-related issue. So the cause of the error comes down to this JavaScript error: TypeError: headerAction is nullnavigation.js:142:32 Has the child theme’s header.php file been modified so some elements were removed? Specifically the |
|
Not unless it was updated by the theme’s developer in a recent update. I dont know where to start with that. |
|
That may be what happened, and in that case you would compare the differences between your child theme’s header.php to the parent theme’s header.php template. The |
|
I have backups and looking back to May 24th compared to May 28th, there is no difference in file size. |
|
In this case file sizes are irrelevant. The important thing is the header.php in the active theme must include the markup expected by the theme’s JavaScript to avoid the error. Here’s a copy of the file with links that show where the missing markup is located in the parent theme file: https://gist.github.com/joshfeck/d1e662629097b8d11a8fb5af1ada962b#file-header-php-L133 https://gist.github.com/joshfeck/d1e662629097b8d11a8fb5af1ada962b#file-header-php-L164 |
|
This is what the parent theme has where it mentions header-action. Child theme has nothing with that word.
|
|
Yes, and the child theme’s header.php needs to include what’s in the parent theme to avoid the JavaScript error. Specifically, the |
|
Alternatively, you could download and install the prior version of the Spacious theme https://github.com/themegrill/spacious/releases It looks like version 1.6.1 has the older markup. |
|
Thank you. I renamed header.php and that fixed it. thank you for troubleshooting quickly and for how in depth you went to help me. |
|
Oh good to hear, glad that worked. Thanks for the kind words. |
|
The support post ‘Cant move past pay now’ 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.