• Resolved UserCentrix

    (@usercentrix)


    I am getting this PHP warning on my website:

    “Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Tribe__Events__Query’ does not have a method ‘pre_get_posts’ in”

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Victor Zarranz

    (@vicskf)

    Hi!

    Thanks for taking the time to report that error

    We are currently investigating a similar error:
    Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class Tribe__Events__Query does not have a method "pre_get_posts" in /.../wp-includes/class-wp-hook.php:308

    Can you confirm the full error message you are getting points to the same file and line?

    Thanks!

    Internal Ref: TEC-4540

    Plugin Support Guga Alves

    (@gugaalves)

    Hi there,

    We’re back with good news for you.

    The issue where the pre_get_post function was causing some PHP warning messages was finally fixed!

    Please update the free Events Calendar plugin to version 6.0.6 to apply that fix to your site.

    You can also read all other details about that version in our Release notes at https://theeventscalendar.com/release-notes/the-events-calendar/the-events-calendar-6-0-6/.

    Best Regards,
    Guga

    Plugin Support Abz

    (@abzlevelup)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning – class ‘Tribe__Events__Query’ does not have a method ‘pre_get_posts’ is closed to new replies.