I looked at JavaScript Console. Maybe that will put some light on the cause of an error:
Uncaught TypeError: Cannot read properties of null (reading ‘useState’)
at t.useState (trip-booking-modal.bundle.js?ver=1773142320:2:366190)
at trip-booking-modal.bundle.js?ver=1773142320:2:534466
at renderWithHooks (react-dom.js:15496:20)
at mountIndeterminateComponent (react-dom.js:20113:15)
at beginWork (react-dom.js:21636:18)
at HTMLUnknownElement.callCallback (react-dom.js:4151:16)
at Object.invokeGuardedCallbackDev (react-dom.js:4200:18)
at invokeGuardedCallback (react-dom.js:4264:33)
at beginWork$1 (react-dom.js:27500:9)
at performUnitOfWork (react-dom.js:26606:14)
Hello @valdi99,
Thank you for contacting the WP Travel Engine team and for sharing the details along with the console error.
The issue might be caused by the Optimized Loading option being enabled. This option can sometimes create conflicts with the booking modal, which may cause the behavior you described.
To resolve the issue, please follow these steps:
- Go to your WordPress Admin Dashboard.
- Navigate to WP Travel Engine → Settings → Performance.
- Under the General tab, disable the Optimized Loading option.
After disabling this option, please check the trip booking process again. The issue with the “Check Availability” button and the redirection should be resolved.
For reference, please see this screenshot:
https://prnt.sc/6PUoZD80yGGr
If the issue still persists after making this change, please let us know and we will be happy to assist you further.
Thank you.
Manjil – thank you SO SO MUCH for such a quick answer!
Now it works like a charm ❤️
Thank you once again 👍
Hello @valdi99,
I’m glad I could assist you. I have a small favor to ask. Would you consider sharing your experience with WP Travel Engine by writing a review on WordPress.org?
Click here to leave a review for WP Travel Engine on WordPress.org.
Upon clicking the link, you’ll be directed to our service review page. Please select a rating that best describes your experience with us. It’ll take less than 5 minutes of your time.
Your feedback helps us better cater to your needs and guides others in making informed decisions about WP Travel Engine. Whether or not you choose to leave a review, please know that we deeply value your trust in us.
I look forward to assisting you again in the future.
Thank you!