• Resolved Sebastien SERRE

    (@sebastienserre)


    Hello,

    I’m on WP6.1 with TEC 6.0.3.1 and got this error thanks to Query Monitor.

    Here is the complete query

    
    SELECT SQL_CALC_FOUND_ROWS egl_8_posts.ID
    FROM egl_8_posts
    LEFT JOIN egl_8_term_relationships
    ON (egl_8_posts.ID = egl_8_term_relationships.object_id)
    INNER JOIN egl_8_tec_occurrences
    ON egl_8_posts.ID = egl_8_tec_occurrences.post_id
    WHERE 1=1
    AND ( egl_8_term_relationships.term_taxonomy_id IN (90,159) )
    AND ( egl_8_tec_occurrences.post_id IS NOT NULL
    AND CAST(egl_8_tec_occurrences.end_date AS DATETIME) >= '2022-11-07 08:06:14' )
    AND ((egl_8_posts.post_type = 'tribe_events'
    AND (egl_8_posts.post_status = 'publish'
    OR egl_8_posts.post_status = 'acf-disabled'
    OR egl_8_posts.post_status = 'tribe-ea-success'
    OR egl_8_posts.post_status = 'tribe-ea-failed'
    OR egl_8_posts.post_status = 'tribe-ea-schedule'
    OR egl_8_posts.post_status = 'tribe-ea-pending'
    OR egl_8_posts.post_status = 'tribe-ea-draft'
    OR egl_8_posts.post_status = 'private')))
    GROUP BY egl_8_tec_occurrences.occurrence_id
    ORDER BY date ASC, CAST(egl_8_tec_occurrences.start_date AS CHAR) ASC, post_date ASC
    LIMIT 0, 10
    
    

    here’s the stack trace:

    
    WP_Query->get_posts()
    wp-includes/class-wp-query.php:3247
    TEC\E\C\V\W\Custom_Tables_Query->get_posts()
    wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/WP_Query/Custom_Tables_Query.php:162
    TEC\E\C\V\W\M\Events_Only_Modifier->filter_posts_pre_query()
    wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/WP_Query/Modifiers/Events_Only_Modifier.php:75
    apply_filters_ref_array('posts_pre_query')
    wp-includes/plugin.php:256
    WP_Query->get_posts()
    wp-includes/class-wp-query.php:3097
    WP_Query->query()
    wp-includes/class-wp-query.php:3726
    WP_Query->__construct()
    wp-includes/class-wp-query.php:3858
    FLBuilderLoop::custom_query()
    wp-content/plugins/bb-plugin/classes/class-fl-builder-loop.php:403
    FLBuilderLoop::query()
    wp-content/plugins/bb-plugin/classes/class-fl-builder-loop.php:124
    FLBuilder::render_module()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2771
    FLBuilder::render_modules()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2728
    FLBuilder::render_column()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2613
    FLBuilder::render_column_group()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2536
    FLBuilder::render_modules()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2730
    FLBuilder::render_column()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2613
    FLBuilder::render_column_group()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2536
    FLBuilder::render_row()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2324
    FLBuilder::render_rows()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2285
    FLBuilder::render_nodes()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:2068
    FLBuilder::render_content_by_id()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1921
    FLBuilder::render_content()
    wp-content/plugins/bb-plugin/classes/class-fl-builder.php:1996
    apply_filters('the_content')
    wp-includes/plugin.php:205
    the_content()
    wp-includes/post-template.php:255
    genesis_do_post_content()
    wp-content/themes/genesis/lib/structure/post.php:486
    do_action('genesis_entry_content')
    wp-includes/plugin.php:517
    genesis_standard_loop()
    wp-content/themes/genesis/lib/structure/loops.php:119
    genesis_do_loop()
    wp-content/themes/genesis/lib/structure/loops.php:38
    do_action('genesis_loop')
    wp-includes/plugin.php:517
    genesis()
    wp-content/themes/genesis/lib/framework.php:66
    

    Let me know if you need further help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @sebastienserre,
    I was just about to file this same report. My site has slowed down and at times unresponsive and I am trying to find the fault. My error report shows additional information I will not put here unless support wants it.
    WordPress database error Unknown column ‘modified’ in ‘order clause’ for query
    SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
    FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_tec_occurrences ON wp_posts.ID = wp_tec_occurrences.post_id

    Plugin Contributor Victor Zarranz

    (@vicskf)

    Hi there,

    Thanks for taking the time to report those issues.

    We are currently working to fix an issue that would cause those errors with custom queries of events. These could be taking place by third party plugin, themes or custom code.

    I have linked this thread to the corresponding bug report and we’ll let you know as soon as a fix is released.

    In the meantime, the issue should not be present with The Events Calendar 6.0.1.1 so please try downgrading to prevent this errors

    Best,
    Victor

    Internal Ref: TEC-4555

    Thread Starter Sebastien SERRE

    (@sebastienserre)

    Thank you @vicskf
    I’m confirming downgrading is solving the issue on y side.

    If it can help, the custom query is made by Beaver Builder Pro plugin.

    Regards

    Gladys

    (@greventscalendar)

    Hi there,

    With our latest release of The Events Calendar 6.0.4, we resolved an issue that caused errors when trying to fetch events. Please be sure to review our full Release Notes for more details and update your plugin whenever you get a chance.

    As always, we suggest testing updates on a staging site first and having a recent backup, but it should all be smooth sailing. If you implemented any workarounds, you can remove them after updating the plugins.

    If you still have issues after updating to the latest releases, please open a new support thread and include any specific details and screenshots if possible.

    Have a great day,
    Gladys

    Plugin Support WilloftheD

    (@abzlevelup)

    Hey @sebastienserre, this thread has been inactive for a while, so we’re going to 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.

    Cheers,
    Abz

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Unknown column ‘date’ in ‘order clause’’ is closed to new replies.