• Resolved David Lingren

    (@dglingren)


    I just updated to version 2.8.0 (twice), and I am getting 1) a fatal error once after the update, and 2) Notices on every admin page load. Here are examples:

    [24-Oct-2015 04:50:34 UTC] PHP Fatal error:  Class QM_Output_Html cannot extend from interface QM_Output in C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\output\Html.php on line 211
    
    [24-Oct-2015 04:50:34 UTC] PHP Stack trace:
    
    [24-Oct-2015 04:50:34 UTC] PHP   1. shutdown_action_hook() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:0
    
    [24-Oct-2015 04:50:34 UTC] PHP   2. do_action() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:611
    
    [24-Oct-2015 04:50:34 UTC] PHP   3. call_user_func_array:{C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503}() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:50:34 UTC] PHP   4. QueryMonitor->action_shutdown() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:50:34 UTC] PHP   5. QM_Dispatcher_Html->before_output() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\query-monitor.php:188
    
    [24-Oct-2015 04:50:59 UTC] PHP Notice:  Undefined index: file in C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\output\html\languages.php on line 56
    
    [24-Oct-2015 04:50:59 UTC] PHP Stack trace:
    
    [24-Oct-2015 04:50:59 UTC] PHP   1. {main}() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-admin\upload.php:0
    
    [24-Oct-2015 04:50:59 UTC] PHP   2. require_once() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-admin\upload.php:10
    
    [24-Oct-2015 04:50:59 UTC] PHP   3. shutdown_action_hook() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:0
    
    [24-Oct-2015 04:50:59 UTC] PHP   4. do_action() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:611
    
    [24-Oct-2015 04:50:59 UTC] PHP   5. call_user_func_array:{C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503}() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:50:59 UTC] PHP   6. QM_Dispatcher_Html->dispatch() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:50:59 UTC] PHP   7. QM_Output_Html_Languages->output() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\dispatchers\Html.php:185
    
    [24-Oct-2015 04:50:59 UTC] PHP Notice:  Undefined index: line in C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\output\html\languages.php on line 56
    
    [24-Oct-2015 04:50:59 UTC] PHP Stack trace:
    
    [24-Oct-2015 04:50:59 UTC] PHP   1. {main}() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-admin\upload.php:0
    
    [24-Oct-2015 04:50:59 UTC] PHP   2. require_once() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-admin\upload.php:10
    
    [24-Oct-2015 04:50:59 UTC] PHP   3. shutdown_action_hook() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:0
    
    [24-Oct-2015 04:50:59 UTC] PHP   4. do_action() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:611
    
    [24-Oct-2015 04:50:59 UTC] PHP   5. call_user_func_array:{C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503}() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:50:59 UTC] PHP   6. QM_Dispatcher_Html->dispatch() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:50:59 UTC] PHP   7. QM_Output_Html_Languages->output() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\dispatchers\Html.php:185
    
    [24-Oct-2015 04:51:19 UTC] PHP Notice:  Undefined index: file in C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\output\html\languages.php on line 56
    
    [24-Oct-2015 04:51:19 UTC] PHP Stack trace:
    
    [24-Oct-2015 04:51:19 UTC] PHP   1. shutdown_action_hook() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:0
    
    [24-Oct-2015 04:51:19 UTC] PHP   2. do_action() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:611
    
    [24-Oct-2015 04:51:19 UTC] PHP   3. call_user_func_array:{C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503}() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:51:19 UTC] PHP   4. QM_Dispatcher_Html->dispatch() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:51:19 UTC] PHP   5. QM_Output_Html_Languages->output() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\dispatchers\Html.php:185
    
    [24-Oct-2015 04:51:19 UTC] PHP Notice:  Undefined index: line in C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\output\html\languages.php on line 56
    
    [24-Oct-2015 04:51:19 UTC] PHP Stack trace:
    
    [24-Oct-2015 04:51:19 UTC] PHP   1. shutdown_action_hook() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:0
    
    [24-Oct-2015 04:51:19 UTC] PHP   2. do_action() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\load.php:611
    
    [24-Oct-2015 04:51:19 UTC] PHP   3. call_user_func_array:{C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503}() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:51:19 UTC] PHP   4. QM_Dispatcher_Html->dispatch() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-includes\plugin.php:503
    
    [24-Oct-2015 04:51:19 UTC] PHP   5. QM_Output_Html_Languages->output() C:\Users\dlingren\Documents\My Data\Data Files\Web Design\VirtualHosts\mladev\wp-content\plugins\query-monitor\dispatchers\Html.php:185

    https://www.ads-software.com/plugins/query-monitor/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey – we’re seeing a fatal error message also – but only on the staging version of a site on WPEngine:

    Fatal error: Access level to QM_Dispatcher_AJAX::before_output() must be public (as in class QM_Dispatcher) in /nas/wp/www/staging/CLIENT/wp-content/plugins/query-monitor/dispatchers/AJAX.php on line 105

    As the error log identifies, switching the QM_Dispatcher_AJAX->before_output() to public resolves the issue – but the method in the abstract class is also set to protected, so not sure this is the correct route.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hi folks.

    @dglingren: The fatal error when you update the plugin is unavoidable because I changed a bunch of the structure of the plugin. It only happens once, though.

    Can you provide a list of all the active plugins on your site please? The PHP notices regarding an undefined line and file are caused by plugins which laod their translation files in a non-standard way. It’ll be fixed in the next release but I’d like to make sure I’ve covered all the situations.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    @qstudio: The before_output() method should be protected, so if it’s not protected in the QM_Dispatcher class then it sounds like the plugin update didn’t complete correctly. Can you try deleting and re-installing the plugin again please?

    Thread Starter David Lingren

    (@dglingren)

    Active Plugins

    Advanced Custom Fields
    Version 4.4.3 | By Elliot Condon | View details

    Collapse-O-Matic
    Version 1.6.15 | By twinpictures, baden03 | View details

    Media Library Assistant
    Version 2.14 | By David Lingren, Fair Trade Judaica | View details

    Query Monitor
    Version 2.8.0 | By John Blackbourn | View details

    WordPress Database Backup
    Version 2.3.0 | By Austin Matzko | View details

    @johnbillion – we’ve re-run the updates and all seems to be working fine now.

    Thanks!

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    @qstudio Cool!

    @dglingren Thanks. Looks like ACF is the culprit again. I’ll get a fix out in the next release of QM.

    Thread Starter David Lingren

    (@dglingren)

    I am having this problem on another site running:

    WooCommerce
    Version 2.4.8 | By WooThemes

    philsalt

    (@philsalt)

    This error appeared once in the php error logs: “PHP Fatal error: Class QM_Output_Html cannot extend from interface QM_Output…”

    By deactivating & reactivating plugin error was not repeated.

    Cheers

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PHP Fatal error and Notice messages in latest version’ is closed to new replies.