• We’re getting a notice under the footer of our pages with QM turned on:

    Notice: Undefined offset: 0 in /{site root}/wp-content/plugins/query-monitor/collectors/db_dupes.php on line 79

    Could this be related to our use of the HyperDB drop in?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report. I don’t think this is specific to HyperDB because that’s in use on WordPress.com VIP and I haven’t had any reports about that error there, but I can’t be 100% sure.

    Could you let me know which components are listed in the Duplicate Queries panel in QM? It might be that one of them is doing something unexpected.

    Thread Starter justinmaurerdotdev

    (@360zen)

    SELECT name, val, autoload
    FROM wp_wfconfig
    WHERE name = 'detectProxyRecommendation'	
    
    SELECT *
    FROM wp_yoast_indexable
    WHERE object_id = '8192513'
    AND object_type = 'post'
    LIMIT 1
    
    SELECT *
    FROM wp_gf_form
    WHERE id=20
    
    SELECT *
    FROM wp_gf_addon_feed
    WHERE addon_slug='gravityformsauthorizenet'
    AND form_id=20
    ORDER BY feed_order, id ASC
    
    SELECT *
    FROM wp_gf_addon_feed
    WHERE addon_slug='gravityformsppcp'
    AND form_id=20
    ORDER BY feed_order, id ASC
    
    SELECT *
    FROM wp_gf_form
    WHERE id=19
    
    SELECT *
    FROM wp_gf_addon_feed
    WHERE addon_slug='gravityformsauthorizenet'
    AND form_id=19
    ORDER BY feed_order, id ASC
    
    SELECT *
    FROM wp_gf_addon_feed
    WHERE addon_slug='gravityformsppcp'
    AND form_id=19
    ORDER BY feed_order, id ASC

    Sure, here are the queries. It seems like it’s Wordfence, Yoast, and Gravity Forms. The Gravity Forms add-ons appear to be the worst offenders.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Notice from db_dupes.php’ is closed to new replies.