Event Calendar PREVIOUS-NEXT features not working

Home Forums Calendar Products Events Calendar PRO Event Calendar PREVIOUS-NEXT features not working

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #1090733
    Joel
    Participant

    Hi,
    This is a follow up to a reply – https://theeventscalendar.com/support/forums/topic/issue-following-upgrade/#post-1090391

    And the Update from Events Calendar 4.1: 4.1.0.1. has NOT fixed the issue.

    Summary:
    So… upgraded to all the latest versions of event calendar, and event tickets just 2 days ago. (follow up with update to 4.1.0.1)

    I’m noticing a few issues, but the one I need to immediately address is the event calendar PREVIOUS and NEXT functions.
    This is in the LIST, MONTH, WEEK, and DAY feature.

    If I click on any of these previous-next (e.g. In the March MONTH view, click on February or April links), I just get the ajax spinning wheel, and the page freezes.

    IF I am logged into the site as admin, these features work.

    FYI.. the same page “freeze” occurs if I click the “Find Events” button at the top.

    if it helps or not… couple other issues:
    – no drop-down calendar when I click in the “Events in” on the search bar
    – when I resize the window in the month view, the days of the week do NOT go to the short version as they should with the bootstrap datepicker strings
    – the week view, when I scale down the window size, or view on mobile, there are no events showing, just the previous/next links

    Thanks…looking forward to a response.

    …Joel

    #1090844
    Brook
    Participant

    Howdy Joel,

    Thanks for so clearly detailing everything. Sorry this is giving you troubles.

    I have some good news, it is likely you will fix all of these issues at once we find the cause. They seem to all stem from a JavaScript error.

    When I tried those steps on your site I get the following error:

    <b>Warning</b>: in_array() expects parameter 2 to be array, boolean given in <b>/home2/dcggroup/public_html/durangolearns.com/wp-content/plugins/event-tickets/common/src/Tribe/Admin/Notice/Archive_Slug_Conflict.php</b> on line <b>49</b>

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home2/dcggroup/public_html/durangolearns.com/wp-content/plugins/event-tickets/common/src/Tribe/Admin/Notice/Archive_Slug_Conflict.php:49) in <b>/home2/dcggroup/public_html/durangolearns.com/wp-content/plugins/the-events-calendar/src/Tribe/Template/List.php</b> on line <b>137</b>

    That’s not an error I have seen before. It likely stems from a “conflict”. In order to proceed we will need to test if a conflict is happening, and if so narrow it down so we can find a fix for it. This guide walks you through how to test for a conflict, and then identify what is conflicting.

    Does that all make sense? Please let me know.

    Cheers!

    – Brook

    #1090880
    Richard Conway
    Participant

    Hi,

    I’m having the exact same problem as described here. I would appreciate any information anyone is able to give as this plugin has always worked previously with my theme and plugins and only had an issue on most recent update. I have less plugins than I used to and don’t use plugins unless they are widely used and popular so this is likely to be affecting many people I would imagine.

    Gary

    #1090881
    Richard Conway
    Participant

    Just to follow up that I have updated to latest version of plugin and still not working. I will deactivate some plugins to test and report back if I find anything but feel this needs urgent attention since I don’t really use many plugins on my site and those I do are very well known so this is likely to affect many users.

    Gary

    #1090972
    Joel
    Participant

    So… ran through the steps in http://tri.be/support/documentation/testing-for-conflicts/

    Still getting the same result.

    So…next steps?

    – this is a live site… but… if we are on the phone together… I can perform these steps to set to base level, and then you can test
    – where are you showing these errors? I’m showing the console in firefox… but can’t see where you are seeing those specific error messages
    – this issue is pretty much a show stopper for this plugin… as it’s rendering the feature of looking up events pretty much useless.

    As Gary mentioned… all was working well until my latest updates.

    Help?

    …joel

    #1090977
    Joel
    Participant

    This reply is private.

    #1091125
    Joel
    Participant

    This reply is private.

    #1091126
    Brook
    Participant

    Howdy Joel,

    Good question. I am seeing those errors in the Ajax response. So I first open up firebug, then I click < Prev Events, then I switch to Firebug’s network tab which should now have an Ajax query to wp-admin-ajax.php. When I inspect that response you can see an error message generated by your server.

    Could you try adding the following code to your theme’s functions.php file:

    if ( class_exists( 'Tribe__Admin__Notice__Archive_Slug_Conflict' ) ) {
    remove_action( 'admin_init', array( Tribe__Admin__Notice__Archive_Slug_Conflict::instance(), 'maybe_add_admin_notice' ) );
    }

    That might fix things in this case.

    Gary thanks for chiming in with something you expect to be related. To clarify, the symptoms Joel is experiencing are very common. Anything at all that breaks Ajax of JavaScript, and there are truly countless things in WordPress that break those, will manifest the exact same symptoms. But 99% of the time the root problem is different, the symptoms are merely the same. It’s sort of like the common cold. With that in mind, are you seeing the same error message as Joel:

    Warning: in_array() expects parameter 2 to be array, boolean given in …/wp-content/plugins/event-tickets/common/src/Tribe/Admin/Notice/Archive_Slug_Conflict.php on line 49

    Or, do you just have similar symptoms? If it’s just similar symptoms would you mind opening up your own topic dedicated to your issue, that way we can help you with your specific problem? One thing I would do first though before opening it up is finish the conflict test. If it is a conflict, especially with a popular plugin, it will help us narrow things down so we can begin working on a solution instead of steill hunting for the source.

    Let me know if you guys have any followup questions in the mean time. Cheers!

    – Brook

    #1091127
    Brook
    Participant

    This reply is private.

    #1091155
    Joel
    Participant

    OK…

    so that suggestion to alter the functions.php file worked on the Month, Week, Day views, but NOT on the LIST view.

    If I choose previous/next on the list, same ajax issue. And if I click the “Find Events” on this “LIST” view, same thing.

    I’ll leave the alteration to the functions.php in place, but any thoughts on the LIST, as this is really my primary view into the events offered.

    I am looking at firefox firebug, but I am NOT an expert in that arena… by any means.

    Thank you.

    #1091721
    Brook
    Participant

    Well that’s some good progress.

    I have inspected your site again and am seeing the same thing. The original error message that also affected list view is now gone. Excellent! That means that we solved one problem, and are now facing a new one.

    We now need to start diagnosing the second problem now that the first one is fixed. I hate to ask this but I must, can you redo the conflict test now? I know you already did it once, but at the time we were facing the other issue as well so the test did not tell us everything. Now it will work at isolating the source of this second problem.

    Please let me know if you have any questions. Cheers!

    – Brook

    #1091818
    Joel
    Participant

    Ok… did the conflict test again.

    Same results… no plugins active except the events calendar plugins, and twenty fifteen theme.

    In fact… had to add in the change to the functions.php just to get the views working in the twenty fifteen theme (still had same issue with the LIST view not working).

    So… stuck at this point… LIST view still not working.

    Have reset back to working site with plugins, and my theme.

    Help?

    …joel

    #1092035
    Joel
    Participant

    This reply is private.

    #1092357
    Brook
    Participant

    Howdy again,

    Thank you for the very thorough debugging, Joel. It’s very helpful to know what happened at each step.

    Would you mind installing the Debug Bar on your website? With that active and while still logged in, can you try paging back and forth to see if it shows any errors? The errors will be in the upper right.

    Could you also double check that you do not have any pages or posts which contain the word “classes” in the slug or title. Do you?

    Would you be willing to share a copy of your database with us so we can try to reproduce this locally?

    Thanks again for working with us on this. Sorry it’s proving to be so difficult to narrow down.

    • Brook
    #1092471
    Joel
    Participant

    so…

    I added the debug bar to the website, enabled WP_DEBUG… did not see any errors being thrown… but not being familiar with that plugin… I might not have been using it correctly. It also altered my theme header layout for the general, so I couldn’t leave it running.

    I DID have “classes” as part of the slug for my list of classes (go figure)… but I have since renamed to use “events”. No change there… still doesn’t work on “LIST” view.

    So… I can share a copy of the database with you… do you have an FTP site to upload to?

    I see lots of discussion around this similar issue, outside of my thread, so obviously I’m not the only one seeing this. Any progress with other folks?

    FYI… still seeing the other issues I’d mentioned at the top of this thread.
    any thoughts on these?

    —————
    if it helps or not… couple other issues:
    – no drop-down calendar when I click in the “Events in” on the search bar
    – when I resize the window in the month view, the days of the week do NOT go to the short version as they should with the bootstrap datepicker strings
    – the week view, when I scale down the window size, or view on mobile, there are no events showing, just the previous/next links

Viewing 15 posts - 1 through 15 (of 27 total)
  • The topic ‘Event Calendar PREVIOUS-NEXT features not working’ is closed to new replies.