• Resolved studiomondiale

    (@studiomondiale)


    Hello,

    When object cache is active, I get the following error on the list view and on the upcoming events widget:

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /wp-content/plugins/the-events-calendar/common/src/Tribe/Utils/Lazy_String.php on line 74

    This only affects the list view and the list widget and only when object cache is enabled (in my case via W3 Total Cache). I assume it affects other means of object caching as well.

    Googling for that error finds a lot of websites using The Events Calendar with the same issue, so it cannot be limited to my website.

    Would be awesome to get a fix for that, since newest WordPress versions highly encourage using object cache.

    Thanks!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Darian

    (@d0153)

    Hi @studiomondiale ,

    Thanks for reaching out.

    Could you try configuring your W3 Total Cache based on the settings described on our knowledgebase article here and check if that makes a difference?

    If that doesn’t help, could you provide the version of the following? This will help me understand how your system is set up.

    • PHP
    • WordPress
    • The Events Calendar
    • Theme

    I have the same issue with one of my website. I followed your recommendations regarding caching with W3 Total Cache, but the only solution was to deactivate “Object Caching” despite “Object caching greatly increases performance for highly dynamic sites that use the Object Cache API.”

    Do you have any tips to fix this issue ?

    • This reply was modified 1 year, 10 months ago by atomystik.
    Thread Starter studiomondiale

    (@studiomondiale)

    Hello,

    Thanks for your reply, @d0153.

    I’m afraid it’s the same situation that @atomystik describes, the only solution right now is to disable object caching in W3TC ??

    This is my setup:
    PHP 7.3.23 (I know it’s outdated)
    WordPress 6.1.1
    TEC 6.0.7.1
    Enfold Theme

    Plugin Support Darian

    (@d0153)

    Hi @studiomondiale @atomystik

    There could be a plugin/theme conflict on your end. Could you try running a conflict test and check if that makes a difference??I suggest conducting these tests on a Staging Server.

    Let me know how it goes.

    There was no conflict with another Theme or plugin (from what I’ve seeing). But I found a way to deactivate “Object cache” for Events Calendar in W3TC by adding these 2 groups in “Performance > Object Cache > Advanced > Non-persistent groups” :
    tribe-events-non-persistent
    tribe-events

    So I can keep using Object Cache for the website and dont cache objects for Events Calendar.
    Hope this will help.

    Plugin Support Darian

    (@d0153)

    Hi @studiomondiale @atomystik

    Just to confirm, the issue persists even if only our plugins are active and you’re using a default theme (e.g. 2020 theme)? If so, please provide a staging site URL where the issue shows so we can check it further on our end.

    @atomystik Thank you for providing your workaround on this issue.

    Please do not share any credentials; this is for us to follow the WordPress Forum Guidelines.

    Plugin Support Darian

    (@d0153)

    Hello @studiomondiale @atomystik ,

    I hope you are well. I wanted to follow up about the issue you encountered.

    Just to confirm, the issue persists even if only our plugins are active (including W3TC) and you’re using a default theme (e.g. 2020 theme)? If so, please provide a staging site URL where we could check the issue.

    Please do not share any credentials; this is for us to follow the?WordPress Forum Guidelines.

    Plugin Support Darian

    (@d0153)

    Hi @studiomondiale

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please open a new thread if any other questions arise, and we’d be happy to help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘call_user_func() error in Lazy_String.php’ is closed to new replies.