Home › Forums › Calendar Products › Events Calendar PRO › Month pager links not working
- This topic has 20 replies, 2 voices, and was last updated 11 years, 2 months ago by
George.
-
AuthorPosts
-
January 23, 2015 at 9:14 am #936781
csikimacko
ParticipantThank you very much for investigating on this.
Yes, when I “deactivate” the JS I actually just brake it by renaming the source file.
Apparently, the effect is that the pager links work just like plain links instead of using the AJAX loading method. On a sidenote, I am wondering what is the advantage of the AJAX loading, other than the “hourglass” icon…?
FYI, I’ve taken a look what the server might alter in the incoming communication and found that there are some rewrites in effect, for the sake of security:
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
They may or may not influence how TEC works; I just thought you should know about this.
Unfortunately I don’t see way to dumb the site down now for testing purposes. Eventually, I could make a copy of the site on a test subdomain in the future, but I guess it would be still an issue how to activate TEC Pro there with the single licence I have.January 26, 2015 at 9:51 am #937703George
ParticipantHey Varga,
Thanks for your patience with this issue and for sharing that information – I’m curious, are these rewrite rules something you added yourself? You mention being on a “small shared server” – is there a server administrator or support team you can contact in regards to this issue? If you share the link to this support issue, they may be able to provide insight on whether or not those rules are affecting your Month View AJAX pagination. They may also be able to temporarily disable these rules or something for debugging purposes, which might be helpful for this issue.
Let us know if they can offer any help here. Thanks Varga.
GeorgeJanuary 31, 2015 at 6:04 am #939181csikimacko
ParticipantHello George,
the rewrite rules that i had quoted have been disabled for now. Unfortunately, the month pager is still not working.
February 3, 2015 at 1:18 pm #939798George
ParticipantHey Varga,
Your patience has been really appreciated with this issue – I’ve been scratching my head to think of what the possible source of the issue is, but am going to seek some assistance from more experienced members of the Tribe dev team at this point.
We will keep you posted on what we come up with, and note that there is also another major update of the plugin coming soon. It’s possible that updating to that version when it comes out may help this issue, though since I don’t know the source of this problem yet, I’m not sure at all if the future update will help.
In the meantime, I’ve put together an admittedly-hacky solution that, while not very pretty, should help you keep things working on your site.
To use this solution, check out the code I wrote for you here → https://gist.github.com/momnt/af74245dfcfc9ab71ece
If you paste that into your theme or child theme’s functions.php file, then in the Month views on your site, that will make the links function like “normal” links – they won’t try to run the AJAX which doesn’t work on your site, they’ll just go to the previous and next month if a user clicks those links.
Be sure to remove any customizations you might have made to Events Calendar files, including any PHP files or JavaScript files. Ensure you’re running the plugin as it is “out of the box”, and then add my custom solution above, and things should work pretty decently.
Let me know if that custom code helps!
Thanks Varga
February 7, 2015 at 7:23 am #940713csikimacko
ParticipantThank You George and the Tribe Dev Team,
the fix works and it surely would have taken some time for me to work it out, I really appreciate it.
Bottom line, I can’t see the added value of the original AJAX month pager links, so my 0.02$ would be to drop them in the future. You could still get the hourglass effect with some non-disruptive JS.
Anyway Thanks again!February 12, 2015 at 3:12 pm #942161George
ParticipantHey Varga,
Thank you for both your patience on this issue, and for the suggestion about making the AJAX pager links optional – this is something we’ve discussed before and are going to bring up in a future dev discussion.
I’ll close this ticket for now, but please be sure to keep a backup of that temporary solution I gave you and to bookmark this ticket or something – if you lose your customization in the future, you can refer back to this ticket to add it back again.
Thanks Varga!
George -
AuthorPosts
- The topic ‘Month pager links not working’ is closed to new replies.
