• Hi,

    I was looking at my PHP error.log file and noticed quite a few entries like these:

    [04-Jul-2024 12:34:47 UTC] WordPress database error Duplicate entry '1022765-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1022765", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00"), ("1022764", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Posts_Controller->update_item, wp_after_insert_post, do_action('wp_after_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, wp_save_post_revision_on_insert, wp_save_post_revision, _wp_put_post_revision, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [04-Jul-2024 12:35:10 UTC] WordPress database error Duplicate entry '1022766-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1022766", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by edit_post, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [04-Jul-2024 12:51:40 UTC] WordPress database error Duplicate entry '1022771-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1022771", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Posts_Controller->update_item, wp_after_insert_post, do_action('wp_after_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, wp_save_post_revision_on_insert, wp_save_post_revision, _wp_put_post_revision, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [04-Jul-2024 14:38:01 UTC] WordPress database error Duplicate entry '1022797-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1022797", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, WP_REST_Autosaves_Controller->create_post_autosave, _wp_put_post_revision, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [04-Jul-2024 14:43:00 UTC] WordPress database error Duplicate entry '1022800-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1022800", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query

    Anything to worry about?

    Cheers!

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Author Epsiloncool

    (@epsiloncool)

    Hi @rfischmann

    Thanks for that, feedback is very important. I will write here as soon as I find the solution.

    Thread Starter Rafael Fischmann

    (@rfischmann)

    Just pasting new logs from today that might maybe help identify the issue:

    [09-Aug-2024 11:17:32 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    0,
    0,
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    tindex.tid,
    tindex.tsrc,
    tbase.token
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "149114")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "149114"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [09-Aug-2024 11:17:35 UTC] WordPress database error Duplicate entry '1028694-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1028694", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by bulk_edit_posts, wp_update_post, wp_insert_post, wp_after_insert_post, do_action('wp_after_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, wp_save_post_revision_on_insert, wp_save_post_revision, _wp_put_post_revision, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    Plugin Author Epsiloncool

    (@epsiloncool)

    Hi @rfischmann

    Thanks, Rafael, I will take this into an account!

    Thread Starter Rafael Fischmann

    (@rfischmann)

    Just a heads-up, @epsiloncool: those errors are still spamming my PHP error log. A few recent entries:

    [01-Oct-2024 17:24:08 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "241773")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "241773"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [01-Oct-2024 17:24:10 UTC] WordPress database error Duplicate entry '1038201-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1038201", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00"), ("1038200", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Posts_Controller->update_item, wp_after_insert_post, do_action('wp_after_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, wp_save_post_revision_on_insert, wp_save_post_revision, _wp_put_post_revision, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [01-Oct-2024 18:15:35 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "241835")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "241835"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [01-Oct-2024 18:27:16 UTC] WordPress database error Duplicate entry '1038219-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1038219", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [01-Oct-2024 18:34:52 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query update wpftsi_index wi
    left join wp_posts p
    on p.ID = wi.tid and wi.tsrc = "wp_posts"
    set wi.force_rebuild = 1
    where
    (wi.force_rebuild = 0) and
    ((p.ID is null) or (wi.tdt != p.post_modified))
    made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, WP_REST_Autosaves_Controller->create_post_autosave, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [01-Oct-2024 18:35:06 UTC] WordPress database error Duplicate entry '1038223-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1038223", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [01-Oct-2024 18:36:09 UTC] WordPress database error Duplicate entry '1038225-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1038225", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [01-Oct-2024 18:36:16 UTC] WordPress database error Duplicate entry '1038226-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1038226", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [01-Oct-2024 19:27:05 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "241896")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "241896"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query

    [01-Oct-2024 20:11:08 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "241911")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "241911"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [01-Oct-2024 20:19:16 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "241917")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "241917"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [01-Oct-2024 20:21:51 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "241920")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "241920"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [01-Oct-2024 20:21:52 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "241921")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "241921"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [01-Oct-2024 20:28:05 UTC] WordPress database error Duplicate entry '1038288-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1038288", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by edit_post, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [01-Oct-2024 20:33:51 UTC] OneSignal iOS Notification Error: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received

    I hope that’s helpful.

    Thread Starter Rafael Fischmann

    (@rfischmann)

    Here’s another one I just caught in another debug file:

    [05-Oct-2024 12:13:47 UTC] PHP Deprecated:  uksort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /home/macmagazine/public_html/wp-content/plugins/fulltext-search/includes/wpfts_tokencollector.php on line 173
    Plugin Author Epsiloncool

    (@epsiloncool)

    Hi @rfischmann

    Thank you, it’s also very useful observation. Although “deprecated errors” are not dangerous for work, they need to be identified and fixed in a timely manner. Will be fixed in the next release.

    Thank you!

    Thread Starter Rafael Fischmann

    (@rfischmann)

    @epsiloncool You’re welcome! Thanks.

    Thread Starter Rafael Fischmann

    (@rfischmann)

    Just a new heads-up, @epsiloncool, these errors are still all over the place in our logs. Just a few examples:

    [14-Nov-2024 21:47:22 UTC] WordPress database error Lock wait timeout exceeded; try restarting transaction for query UPDATE wp_options SET option_value = '2024-11-15 18:46:32' WHERE option_name = 'wpfts_detector2_message_expdt' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/fulltext-search/fulltext-search.php'), WPFTS_Core->Init, WPFTS_Core->FeatureDetector, WPFTS_Core->set_option, update_option
    [14-Nov-2024 21:47:38 UTC] WordPress database error Duplicate entry '1047382-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1047382", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query

    [15-Nov-2024 09:34:48 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "273594")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "273594"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [15-Nov-2024 09:35:15 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "273596")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "273596"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
    [15-Nov-2024 09:35:22 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "273599")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "273599"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query

    Cheers!

    Thread Starter Rafael Fischmann

    (@rfischmann)

    Sending new, updated ones to help you fix the issue @epsiloncool:

    [28-Nov-2024 17:44:25 UTC] WordPress database error Duplicate entry '1049991-wp_posts' for key 'tid_tsrc_unique' for query insert into wpftsi_index (tid, tsrc, tdt, build_time, update_dt, force_rebuild, locked_dt) values ("1049991", "wp_posts", "1970-01-01 00:00:00", 0, "1970-01-01 00:00:00", 1, "1970-01-01 00:00:00") made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_REST_Autosaves_Controller->create_item, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, wpfts_save_post_action, wpfts_post_reindex, WPFTS_Core->MakePostsSync, WPFTS_DB->query
    [28-Nov-2024 18:16:05 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query insert into wpftsi_tp
    (q_id, did, pow, res, ts)
    SELECT
    t1.q_id,
    tbase2.id,
    t1.pow,
    if(t1.n > 0, t1.res * (case tbase2.token when "post_title" then 0.9 when "post_content" then 0.4 when "post_excerpt" then 0.2 else 1 end) * (-1) / LOG(t1.n + 1), 0),
    NOW()
    FROM (
    SELECT
    trel.q_id,
    trel.did,
    trel.pow,
    trel.res,
    tindex.tid,
    tindex.tsrc,
    tbase.token,
    tbase.n
    FROM wpftsi_tp trel
    STRAIGHT_JOIN wpftsi_docs tbase
    ON (trel.did = tbase.id) AND (trel.q_id = "95148293")
    STRAIGHT_JOIN wpftsi_index AS tindex
    ON tindex.id = tbase.index_id
    ) t1
    STRAIGHT_JOIN wpftsi_doctree dt
    ON t1.tid = dt.c_tid AND t1.tsrc = dt.c_tsrc AND t1.token = dt.c_token
    STRAIGHT_JOIN wpftsi_index tindex2
    ON tindex2.tid = dt.p_tid AND tindex2.tsrc = dt.p_tsrc
    STRAIGHT_JOIN wpftsi_docs AS tbase2
    ON tbase2.index_id = tindex2.id AND dt.p_token = tbase2.token
    where
    tbase2.id not in ((select did from wpftsi_tp where q_id = "95148293"))
    made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, WPFTS_Search->index_pre_get_posts, WPFTS_Search->sql_parts, WPFTS_DB->query
Viewing 9 replies - 16 through 24 (of 24 total)
  • You must be logged in to reply to this topic.