Well, I tried editing file the-events-calendar\src\resources\js\custom-tables-v1\ct1-upgrade.js and just before the request.send() at line 105, I added request.withCredentials = true; and then I minified it, replacing the-events-calendar\src\resources\js\custom-tables-v1\ct1-upgrade.min.js. But unfortunately, that didn’t help, I’m still seeing the same error in the devtools console, and I don’t know why. Can you fix it correctly? I certainly don’t want to leave Force Login deactivated. And then when you eliminate the error, take a look at why the Find Event button doesn’t find strings that appear in the event title or text?
Hi @sootsnoot,
Do you experience this issue when you add shortcodes using The Events Calendar Shortcode & Block plugin? Please note that this plugin was not created by our team and for issues related to it, you’d need to contact the plugin author. Besides that, the Force Login plugin hasn’t been updated over the past year, which increases the probability of causing conflicts with other plugins.
Regarding the search functionality, do you experience this issue with the main calendar page provided by TEC? Could you share the direct URL to the page you’re having issues with? Please do not share any credentials, this is for us to follow the WordPress Forum Guidelines.
As I explained, the problem occurs only with the “/events” slug which is predefined by this plugin. It does not affect the shortcode since the shortcode does not display any of the four broken buttons (Find Events, List, Month, Day).
Regarding the Force Login plugin, that’s a pretty simply plugin that checks is_user_logged_in(), and if so does nothing, but if not (and the request is not for the login page), then returns a 403 (forbidden) status and displays the login page. You can see in the devtools console output I provided that clicking any of those 4 buttons results in a 403 error. And as I also said before, that would be expected if the The Events Calendar did not take care to provide the logged-in cookies in the XHR request.
I already provided the exact url showing the problem in my first post – but of course that will take you to the login page, since you’re not logged in and the Force Login plugin is activated. I could temporarily deactivate Force Login so you can investigate why Find Events always returns Not Found. Or I could send you login credentials so you could login and investigate why clicking any of the 4 buttons has no visible effect unless using devtools where it shows the 403 error.
Please let me know how to proceed, thanks!
Hi @sootsnoot ,
Thank you for your message, and the information.
We would appreciate it if you could disable Force Login (at least temporarily) to allow us to take a closer look at the issue, and move forward with the investigation.
Okay, I’ve deactivated Force Login. The buttons for List, Month, and Day now seem to work. Find Events sometimes does work, but sometimes does not find listed events.
Let me know when and how to send you login credentials, so I can reactivate Force Login, so you can investigate the 403 error thrown by all of those buttons, since that is more of a problem for our members. 🙂
With Force Login deactivated, it seems that the Find Events button works properly, and having found an event, clicking the List, Month, or Day buttons also work, with output limited to just the found event. The cases where it appeared not to work may have been because I was trying it on my phone, where the responsive layout can make things confusing. On my desktop PC, it all looks good.
So the only real problem is the 503 error on clicking any of those buttons when Force Login is activated. Please let me know how I can send login credentials to you privately so that I can reactivate that plugin and you can investigate the 503’s when logged-in.
Thanks,
Hi @sootsnoot,
I checked your site and I confirm that The Events Calendar was working fine. I also tested the search functionality on mobile, and it worked as expected, see: https://share.zight.com/7Kuw41zj
Regarding the 503 error when Force Login is enabled, please note that troubleshooting issues related to third-party plugins/theme is outside the scope of support. You need to contact the Force Login author or hire a developer for this.
Moreover, we are not allowed to log into your account, so do not share any credentials, this is for us to follow the WordPress Forum Guidelines.
Plugin Support
Darian
(@d0153)
Hi there,
It seems like this thread has been quiet for a bit, so we’ll go ahead and mark it as resolved. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.