• Resolved philliproth

    (@philliproth)


    I get three console errors caused by The Events Calendar. These errors persist when I turn off all caching etc.

    Uncaught SyntaxError: Expected ',' or '}' after property value in JSON at position 272 (line 1 column 273)
    at JSON.parse ()
    at obj.setup (breakpoints.min.js?ver=6.2.8.2:11:1834)
    at initBreakpoints ((Index):459:42)
    at (Index):466:3
    at (Index):468:4
    obj.setup @ breakpoints.min.js?ver=6.2.8.2:11
    initBreakpoints @ (Index):459
    (anonym) @ (Index):466
    (anonym) @ (Index):468
    jquery.min.js?ver=3.7.1:2
    
    jQuery.Deferred exception: Expected ',' or '}' after property value in JSON at position 272 (line 1 column 273) SyntaxError: Expected ',' or '}' after property value in JSON at position 272 (line 1 column 273)
    at JSON.parse ()
    at obj.setup (https://www.bestgruppe.de/wp-content/plugins/the-events-calendar/src/resources/js/views/manager.min.js?ver=6.2.8.2:11:1469)
    at Function.each (https://www.bestgruppe.de/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:3129)
    at e..each (https://www.bestgruppe.de/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:1594)
    at obj.ready (https://www.bestgruppe.de/wp-content/plugins/the-events-calendar/src/resources/js/views/manager.min.js?ver=6.2.8.2:11:7292)
    at e (https://www.bestgruppe.de/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
    at t (https://www.bestgruppe.de/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined
    ce.Deferred.exceptionHook @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout (async)
    (anonym) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    ready @ jquery.min.js?ver=3.7.1:2
    P @ jquery.min.js?ver=3.7.1:2
    jquery.min.js?ver=3.7.1:2
    
    Uncaught SyntaxError: Expected ',' or '}' after property value in JSON at position 272 (line 1 column 273)
    at JSON.parse ()
    at obj.setup (manager.min.js?ver=6.2.8.2:11:1469)
    at Function.each (jquery.min.js?ver=3.7.1:2:3129)
    at e..each (jquery.min.js?ver=3.7.1:2:1594)
    at obj.ready (manager.min.js?ver=6.2.8.2:11:7292)
    at e (jquery.min.js?ver=3.7.1:2:27028)
    at t (jquery.min.js?ver=3.7.1:2:27330)

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter philliproth

    (@philliproth)

    Is there any way I can solve this? Thank you ??

    Plugin Support Darian

    (@d0153)

    Hi @philliproth

    Thanks for reaching out. Let me help you with this one.

    Upon checking, it seems you have WP Fastest Cache installed. Could you try configuring it based on the recommended configuration provided in our knoweldgebase article, and see if that resolves the issue?

    See- https://theeventscalendar.com/knowledgebase/wp-fastest-cache/

    Let me know how it goes.

    Thread Starter philliproth

    (@philliproth)

    Thank you Darian, I tried all that, didn’t help. As stated above I can even deactivate WP Fastest Cache and still have the errors. It only occurs on the homepage. I’m guessing it’s the widget?!?

    Thread Starter philliproth

    (@philliproth)

    The console errors stated above are without any caching enabled.

    Hi @philliproth,

    I am going to share the console errors with my colleagues to see if they might have some ideas.

    I did just check the conole to see if there might be some errors/messages that might help. I am seeing some JavaScript and minification messages. Other than WP Fastest Cache, do you have any other cache plugin installed and active or do you know if your host is running any server-side cache?

    Please let me us know if you have any other questions.

    Thank you so much,
    Chad

    Thread Starter philliproth

    (@philliproth)

    Thank you Chad, no other cache plugin installed, no server-side chaching.

    Hi @philliproth,

    I had a chance to speak to a member of our development team about this.

    He said that the error message suggests that there is a syntax error in the JSON code that is being parsed by the JavaScript function obj.setup(). Something that should help is to try modifying the widget title so that the double quotes are escaped. For example, you should change the title from "Best Gruppe" Versicherung to \"Best Gruppe\" Versicherung then clear the WP Fastest Cache cache once more and check if the issue persists.

    Please let us know if this helps or not.

    Thank you so much,
    Chad

    Thread Starter philliproth

    (@philliproth)

    Thank you Chad, I found the error thanks to your developers’ hint. I had a script in place that replaces “BEST GRUPPE” with “Best Gruppe” for screenreaders. I guess I need to rethink where this applies and make changes. Sorry for the inconvenience.

    Hi @philliproth,

    No inconvenience at all! I’ve learned something from this, as well.

    Please let us know if you have any other questions.

    Have a wonderful day and weekend!
    Chad

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Console Errors’ is closed to new replies.