• Resolved fscbmwcca

    (@fscbmwcca)


    I have several issues

    (1) I used to be able to go to https://fscbmwcca.com/events and get the month view. But on my phone it says “There has been a critical error on this website” but if I go to https://fscbmwcca.com/events/month it displays okay.

    (2) Also the Prev/Next and today display at the bottom of the Month view on on the phone and not on the laptop. I also installed Add “Return to Current Month” Link in Month View and this did not show anything as well.

    (3) Most importantly I am getting the following error but things seem to display:

    [CRITICAL] : Uncaught TypeError: Argument 1 passed to Tribe__Template::set_values() must be of the type array, null given, called in …/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php on line 610 and defined in …/wp-content/plugins/the-events-calendar/common/src/Tribe/Template.php:1231
    Stack trace:
    #0 …/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php(610): Tribe__Template->set_values(NULL, false)
    #1 …/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template_Bootstrap.php(260): Tribe\Events\Views\V2\View->get_html()
    #2 …/wp-content/plugins/the-events-calendar/src/views/v2/default-template.php(18): Tribe\Events\Views\V2\Template_Bootstrap->get_view_html()
    #3 …/wp-includes/template-loader.php(106): include(‘/root…’)
    #4 /root

    Thanks

    The page I need help with: [log in to see the link]

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter fscbmwcca

    (@fscbmwcca)

    I think I found it. It has to do with Events Shortcodes & Templates Addon For The Events Calendar. It was kind of weird. I will see if the error pops up in the log. But so far the month page does not give me the error. I have no idea why it was causing errors on the month page as the page the error was on was in the upcoming events for a particular category and had never looked at that before. Again this was only on mobile phones too. If you want to know more details, let me know. Fingers crossed we can hopefully close this. If I don’t receive the error in the log I will close it out tomorrow. Thanks for your patience and attempts at helping me.

    Thread Starter fscbmwcca

    (@fscbmwcca)

    Found the culprit: The Events Calendar Extension: Tweaks. When deactivated it produces the error.
    Settings selected: Remove ‘Archives:’ from the calendar page title, Show past events in reverse order, Remove links pointing to events List view, Custom URL for “All Events” set to https://fscbmwcca.com/upcoming.

    I deactivated/reactivated the plugin. I turned off the Remove ‘Archives:’ from the calendar page title and Show past events in reverse order and it worked. I turned on one and then the other and now it appears not to throw the error.

    Also https://fscbmwcca.com/evebts does not show the month view it shows the list view. Even though month is the only selection for Enable event views in the Display tab.

    I hope this helps…

    Plugin Contributor Andras Guseo

    (@aguseo)

    Hi @fscbmwcca

    Wow! Thanks!

    I would like to as for some more clarification, so in case there is an error in the Tweaks extension we can fix it.

    When deactivated it produces the error.

    Just to clarify. When Tweaks was active, then it was okay. Then you deactivated and it started showing the error?
    Also, was the Events Shortcodes & Templates Addon active at this time?

    Do I understand that basically de- and re-activating Tweaks and / or re-saving the settings fixed the issue?

    Thanks!
    Andras

    Thread Starter fscbmwcca

    (@fscbmwcca)

    I’m sorry, I’m not sure what I meant there. I did so many activate/deactivate many combinations. As it stands now, I deactivated it and put the code I needed in my child theme functions.php and it seems to be working.

    This is what I think I did…
    I have the following addon plugins:
    The Events Calendar Extension: Inherit Theme Fonts
    The Events Calendar Extension: Tweaks
    The Events Calendar Search Addon
    The Events Calendar Shortcode & Block

    I deactivated all of them and then reactivated them in order. So I don’t think Shorcode & Block was activated at that time. Once I saw the error I started activating the rest without error. Just now activated the Tweaks again and it does not seem to be causing the critical error on mobile!

    Also on the desktop version the previous and next months do not show at the bottom of the month. I had tried using Events Calendar Extension: Current Month Link and this wasn’t showing up either. But on the mobile version I do see the previous and next month as well as today on the bottom of the month.

    If I go to https://fscbmwcca.com/events/ on the desktop it shows me the month view but if I go to that link on the mobile it shows me list view. In my display settings in “Enable event views” only month is checked and default view is set to month.

    Let me know if I need to clarify or do some other testing to help.
    Thanks

    Thread Starter fscbmwcca

    (@fscbmwcca)

    An update on the following:
    Also on the desktop version the previous and next months do not show at the bottom of the month. I had tried using Events Calendar Extension: Current Month Link and this wasn’t showing up either. But on the mobile version I do see the previous and next month as well as today on the bottom of the month.

    If I go to https://fscbmwcca.com/events/ on the desktop it shows me the month view but if I go to that link on the mobile it shows me list view. In my display settings in “Enable event views” only month is checked and default view is set to month.`
    Thanks

    Plugin Contributor Andras Guseo

    (@aguseo)

    on the desktop version the previous and next months do not show at the bottom of the month.

    That is normal. With the updated designs the navigation for month view is at the top. Here’s a screenshot:
    https://dl.dropbox.com/s/geaswi5w65nofrp/shot_210414_113159.jpg

    I had tried using Events Calendar Extension: Current Month Link

    I believe that extension is only compatible with the legacy views. It will not work with the updated design. This functionality in the updated design is provided by the ‘Today’ button at the top. See the screenshot above.

    desktop it shows me the month view but if I go to that link on the mobile it shows me list view

    This is super weird. Does the same happen if you enable all the views and set the default to month? Can you also try changing the default settings to see what happens?

    A.

    Thread Starter fscbmwcca

    (@fscbmwcca)

    Thanks for the answers and clarification. I wasn’t sure whether that extension was for the legacy or v2.

    I enabled all view and selected month as the default view and it still goes to List view on my mobile phone. I can leave it like that for a bit if you want to check it out.

    Thanks again

    Plugin Contributor Andras Guseo

    (@aguseo)

    Hi @fscbmwcca

    This is super weird!

    I see that you have cloudflare enabled, which likely provides some caching.

    If you clear that cache, or even better, switch it off, does it still happen?

    A.

    Thread Starter fscbmwcca

    (@fscbmwcca)

    I purged all the cache (both cloudflare and website) and still had same issue.
    I disabled cloudflare and still the same thing.
    Let me know if you want me to try anything else.

    Plugin Contributor Andras Guseo

    (@aguseo)

    At this point I would recommend starting to test from the bottom up.
    Best to do this on a staging site, if you don’t want you visitors to see that you are testing.

    1. Switch off / disable CloudFlare.
    2. Switch to a default theme.
    3. Disable any and all plugins, except for The Events Calendar
    4. Test
    5. If all works well, start enabling the theme and the plugins one at a time and keep testing. Check where it breaks.

    A.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Critical error’ is closed to new replies.