Selecting different month = Blank Calendar, no events displayed

Home Forums Calendar Products Events Calendar PRO Selecting different month = Blank Calendar, no events displayed

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #931764
    wildwebwest
    Participant

    I 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

    #931765
    wildwebwest
    Participant

    This 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.

    #932102
    Brook
    Participant

    Howdy 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

    #932182
    wildwebwest
    Participant

    This reply is private.

    #932738
    Brook
    Participant

    You 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

    #933243
    wildwebwest
    Participant

    this 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

    #933918
    Brook
    Participant

    Thanks 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Selecting different month = Blank Calendar, no events displayed’ is closed to new replies.