Home › Forums › Calendar Products › Events Calendar PRO › Selecting different month = Blank Calendar, no events displayed
- This topic has 6 replies, 2 voices, and was last updated 11 years, 2 months ago by
Brook.
-
AuthorPosts
-
January 12, 2015 at 2:07 pm #931764
wildwebwest
ParticipantI really need to get a javascript issue resolved. I have isolated the conflict between The Events Calendar Pro and MaxGalleria. For the last couple of weeks I had MaxGalleria disabled.
Right now I have enabled MaxGalleria and you’ll see when you click forward to a different month, no events display:
http://fabricsgaloreandquiltingstore.com/calendar/2015-01/
I’m really have not experienced a javascript error or any conflicts (using Genesis Framework and
Child Theme) until I’ve installed Events Calendar Pro.Can you advise how to go forward? MaxGalleria has never had a conflict with any other plugin and I”m not sure how to go about resolving this. It will definitely affect my decision to suggestion The Events Calendar Pro in the future if this conflict is not easy to solve.
Thanks very much.
Mary
January 12, 2015 at 2:08 pm #931765wildwebwest
ParticipantThis conflict with The Events Calendar Pro seems to be a bit more common than is comfortable. I’ve read others support issues with the same type of issue.
January 13, 2015 at 9:25 am #932102Brook
ParticipantHowdy Mary,
Thanks for reporting the incompatibility with MaxGalleria. I am able to reproduce it as well. In my tests it appear that MaxGalleria is interfering with all requests to admin-ajax.php, appending a SQL GROUP BY to every query. This creates a SQL error. It is a bug in MaxGalleria that will make in incompatible with virtually any plugin that uses WP’ Ajax API, ours included.
You could simply comment out line 579 of maxcalleria.php, which is inside of the function modify_attachments():
// add_filter( 'posts_groupby', array($this, 'group_attachments') );This will stop them from modifying all queries. However it could fundamentally break their plugin, I am not sure.
I will report this to MaxGalleria if they have a public bug report section. They can then limit their query to only run when their plugin is making a request and probably not append the group by, rather replace it.
I wish I had better news. But, in the WP world when one plugin or theme makes a mistake anywhere in their thousands of lines of code, it can break compatibility with other plugins. And the bigger the plugin, the more likely it is to break compatibility with.
Thanks again for reporting this. Please let me know if you have any questions or if I can be of further assistance. Did that all make sense?
Cheers!
– Brook
January 13, 2015 at 11:31 am #932182wildwebwest
ParticipantThis reply is private.
January 14, 2015 at 8:12 am #932738Brook
ParticipantYou are super welcome!
In MaxGalleria’s support forums I reported the issue. Alan, one of their developers, quickly came up with a great solution to make them both work together (click here). It is much better than the solution I proposed above, which as I said has an unknown impact on their plugin’s functionality.
Hopefully they will include that fix in a future version of their plugin. In the mean time though, following his instructions should work great.
Let me know if you need anything else. If now, would you mind marking this resolved? Thanks!
– Brook
January 15, 2015 at 7:09 am #933243wildwebwest
Participantthis issue is resolved. If anyone uses MaxGalleria Plugin (fantastic!) and it is affecting your Events Calendar Pro (also fantastic) please use this fix. I’m quite positive MaxGalleria will include this in their next update though, so only necessary in the immediate future. Thanks to Brook at Modern Tribe and Alan at MaxGalleria for helping me with this issue. Muchos Gracias!!!
Mary,
I think I have a solution. Uncommented line 579 of maxgalleria.php and then replace this line of code at line 578:
if ( is_admin() && strpos( $_SERVER[ ‘REQUEST_URI’ ], ‘admin-ajax.php’ ) !== false ) {
with:
if ( is_admin() && strpos( $_SERVER[ ‘REQUEST_URI’ ], ‘admin-ajax.php’ ) !== false && $_REQUEST[‘action’] === ‘query-attachments’ ) {
Give this a try and let me know the results.
Alan
January 16, 2015 at 7:48 pm #933918Brook
ParticipantThanks Mary. According to the MaxGalleria plugin author this issue should now be fixed with the latest release of their plugin as well.
I am going to archive this since you’ve marked it resolved. I appreciate your helping us find a conflict and get it sorted with the plugin author. Cheers!
– Brook
-
AuthorPosts
- The topic ‘Selecting different month = Blank Calendar, no events displayed’ is closed to new replies.
