I have the same error as described here: https://www.ads-software.com/support/topic/fatal-php-error-when-db-query-is-activated/
When I activate DB query which I need for debugging a slow site, I get this PHP error:
FastCGI: server “/usr/local/apache/cgi-bin/php7-fcgi80” stderr: PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 528384 bytes) in /wp-content/plugins/debug-objects/inc/class-db_query.php on line 275PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 10518400 bytes) in /wp-includes/functions.php on line 4212PHP message: PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0,
Can anyone help?
]]>These errors continue hundreds, maybe thousands, of times:
WordPress database error: [Table ‘dev999_wpdev.wp_wp_wp_wp_wp_wp_hook_list’ doesn’t exist]
INSERT wp_wp_wp_wp_wp_wp_hook_list (first_call,called_by,hook_name,hook_type,arg_count,file_name,line_num) VALUES ( 2,’get_option()’,’pre_option_uninstall_plugins’,’filter’,3,’wp-includes/option.php’,58 )
WordPress database error: [Table ‘dev999_wpdev.wp_wp_wp_wp_wp_wp_hook_list’ doesn’t exist]
INSERT wp_wp_wp_wp_wp_wp_hook_list (first_call,called_by,hook_name,hook_type,arg_count,file_name,line_num) VALUES ( 3,’wp_load_alloptions()’,’alloptions’,’filter’,1,’wp-includes/option.php’,227 )
WordPress database error: [Table ‘dev999_wpdev.wp_wp_wp_wp_wp_wp_hook_list’ doesn’t exist]
INSERT wp_wp_wp_wp_wp_wp_hook_list (first_call,called_by,hook_name,hook_type,arg_count,file_name,line_num) VALUES ( 4,’get_option()’,’option_uninstall_plugins’,’filter’,2,’wp-includes/option.php’,148 )
WordPress database error: [Table ‘dev999_wpdev.wp_wp_wp_wp_wp_wp_hook_list’ doesn’t exist]
INSERT wp_wp_wp_wp_wp_wp_hook_list (first_call,called_by,hook_name,hook_type,arg_count,file_name,line_num) VALUES ( 5,’sanitize_option()’,’sanitize_option_uninstall_plugins’,’filter’,3,’wp-includes/formatting.php’,4314 )
And it has removed all my theme settings and set them to default. Luckily I installed this on a dev site first…
Theme is Divi.
]]>debug objects works well in my multisite wordpress, except when i try to activate the “db query” option. it results in a fatal error on php.
from my php error log:
WordPress database error Query cache is disabled; restart the server with query_cache_type=1 to enable it para a consulta SET SESSION query_cache_type = OFF
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2186187 bytes)
PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
]]>
Ref: debug-objects.php in __construct()
self::$table = $GLOBALS[ 'wpdb' ]->base_prefix . self::$table;
That continues to append the prefix resulting in the incorrect table name.
Example:
wp_hook_list
wp_wp_hook_list
wp_wp_wp_hook_list…
I tried to fix that but it seems some other error is encountered which causes the server to consume max memory. Have to deactivate until a new cut is available.
Thanks.
]]>There seems to be a bug in the latest version, 2.5.0, that is preventing the images from loading in thumbnail view of the Media Library in WordPress 4.9.2. I have tired and confirmed this with Debug Objects being the ONLY plugin installed in WordPress running the 2017 theme.
]]>Hello! when activating the plugin there is an error:
Parse error: syntax error, unexpected '[' in /path/***/***/wordpress/wp-content/plugins/debug-objects/debug-objects.php on line 307
Line 307 of debug-objects.php:
[ 'default' => 0, 'min_range' => 0 ]
Is there something I should try?
Thanks!
]]>Apparently, the plugin’s code tries to use a DateTime
object as the third parameter to setcookie()
.
This is the PHP warning and last step in stack trace:
PHP Warning: setcookie() expects parameter 3 to be integer, object given in /var/www/[redacted]/wp-content/plugins/debug-objects/debug-objects.php on line 317
[...]
PHP 11. setcookie('debug_objects_cookie', 'Debug_Objects_True', class DateTime { public $date = '2017-09-06 07:25:26.000000'; public $timezone_type = 3; public $timezone = 'UTC' }, '/', FALSE) /var/www/[redacted]/wp-content/plugins/debug-objects/debug-objects.php:317
Please turn on WP_DEBUG
constant and set error reporting to E_ALL
while developing. That will save a lot of headaches to you and other fellow developers.
I tried to install it on a Network wordpress website and got the following error:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STATIC, expecting ‘)’ in /home/***/public_html/***.com/wordpress/wp-content/plugins/debug-objects/debug-objects.php on line 315
]]>PHP 7.1
I installed Debug Objects.
Got the white page of death on both admin and site (needing to delete plugin manually).
In debug mode had the following errors
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1785856 bytes) in /var/www/realbusiness/wp-includes/wp-db.php on line 1873
Notice: Undefined index: file in /var/www/realbusiness/wp-content/plugins/debug-objects/inc/class-all_hooks.php on line 157
Notice: Undefined index: line in /var/www/realbusiness/wp-content/plugins/debug-objects/inc/class-all_hooks.php on line 158
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)’ at line 3]
INSERT wp_wp_wp_wp_hook_list (first_call,called_by,hook_name,hook_type,arg_count,file_name,line_num) VALUES ( 36,’Undefinded’,’shutdown’,’shutdown_action_hook’,0,”, )
Hello,
How can I display debug object on the front end page, for guest? for people who are not logged in, in public mode, because I need to make test as a guest…
Thanks for your help,
Best
]]>Version 2.4.1
Just a minor thing, but should be easy to fix: when saving the settings page with no checkbox selected, the plugin crashes with a fatal error.
]]>Catchable fatal error: Argument 1 passed to Debug_Objects_Settings::validate_settings() must be of the type array, null given in D:\dev\php\footballpool\wp-content\plugins\debug-objects\inc\autoload\class-settings.php on line 602
Hi,
Trying to click on the Debug link right after installing your plugin on PHP 7.0 results in the following error:
[09-Feb-2017 23:34:34 UTC] PHP Fatal error: Uncaught Error: Call to undefined function settings_fields() in /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/plugins/debug-objects/inc/autoload/class-settings.php:237
Stack trace:
#0 /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/plugins/debug-objects/inc/class-wrap.php(54): Debug_Objects_Settings::return_options()
#1 /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/plugins/debug-objects/debug-objects.php(237): Debug_Objects_Wrap->__construct()
#2 /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/plugins/debug-objects/debug-objects.php(127): Debug_Objects->init_classes()
#3 /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/plugins/debug-objects/inc/autoload/class-settings.php(43): Debug_Objects->__construct()
#4 /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/plugins/debug-objects/inc/autoload/class-settings.php(646): Debug_Objects_Settings->__construct()
#5 /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/p in /home/USER/ftp/www.DOMAIN.com/public_html/wp-content/plugins/debug-objects/inc/autoload/class-settings.php on line 237
Would appreciate a fix ??
Best,
Chris Trynkiewicz
Hi,
As others have also pointed out, the plugin seems to not work properly, at its latest version (currently at v2.3.1).
I had the chance to troubleshoot and ultimately fix the issue, since I needed to use the plugin, so I’m sharing it here for others, and the plugin author as well.
Short answer:
Replace - 1
with 20
in debug-objects.php:225
Long answer:
It seems that the root cause is an error in the plugin’s initialisation sequence:
1. The static Debug_Objects::get_object()
method is hooked at plugins_loaded
with priority 10 (default), at debug-objects.php:28.
2. When it runs, it calls the constructor of Debug_Objects
(debug-objects.php:86).
3. The constructor calls the Debug_Objects:init_classes()
method (debug-objects.php:127).
4. The init_classes
method schedules the intialisation of further classes, by hooking on plugins_loaded
with priority -1
.
Now, since the whole sequence was triggered by the plugins_loaded
hook having already reached priority 10 (see Step 1), any action callbacks added to that hook with priority less than 11, are never executed.
A quick solution is to increase that priority to a number greater than 10 (see Short answer
). That restored full plugin functionality in my case.
Does anyone know if this is working on 4.6.1? I am not getting any debug info with various settings and don’t know if the problem is with me or it…
]]>Hi, thank you for your great plugin. I have a problem with the previous and now the latest version. When ever I try to enable the plugin I get the following error message.
Invalid argument supplied for foreach()
147wordpress/wp-content/plugins/debug-objects/inc/class-inspector.php
<table>
<tr>
<th>Host</th>
<th>Class</th>
<th>Type</th>
<th>TTL</th>
<th>Additional Info</th>
</tr>
…………
PHP version is 5.5.9 if that helps you in any way.
Thank you
]]>There is an issue saving options.
You are redirected to options.php
??
]]>After trying to save settings i am redirected to wp-admin/options.php page without saving settings.
]]>I installed Debug Objects plugin. I followed the instruction. However, once I click on Object button on the main page I get a blank page. I Don’t get how to deal with it. ??
I tried it on both a child theme and a parent theme. The result was the same.
Thank you for your assistance in advance!
]]>Getting this error on every page… call me crazy, but I think it’s an error with Debug_Objects – haha.
Backtrace from ‘call_user_func_array() expects parameter 1 to be a valid callback, class ‘Debug_Objects_Transients’ not found’ at /var/www/wp-includes/plugin.php 496:
]]>after installing the plugin “Debug Queries” i found that it was deprecated, and migrated to this “Debug Objects” plugin.
so, please remove the DEBUG QUERIES plugin at all, or write with big, noticeable letters(under that plugin’s header), that the plugin is OBSLETE…
because users dont notice that, and then waste time, in installing and digging into it, until they find out that plugin is being obsolete, and they should use the new plugin instead…
Hello there,
I’m quite impressed by the options offered here but I’m a bit lost in settings…
At a given site, at backend, I have the widgets and appearance-customize pages taking way too long to load since some time now and wanted to find out what slows down the process. What exactly should I setup for doing this please?
]]>In tab ‘System’ the debug report says OS version: Windows 2000
I’m confused. The server is on Centos 7.0.
Or do you mean the local machine OS? That should be more clear then.
Great work BTW!
]]>After running the plugin with different settings, I found out that there are lot of shortcodes that are being used/triggered unnecessarily on every page. It should be only on pages where they are required.
Also found out that there are lot of cron jobs that are not required at while others are set to aggressively.
My host sets my php memory limit at 128mb with 1gb ram and my site is using around 120mb. I need to reduce it. I am using 34 plugin including woocommerce and buddypress. I am using woocommerce for product comparison only but i can see shopping features like add to cart and other stuff being used and loaded so maybe that is also part of the puzzle.
Now I dont know how to take action and rectify this issue. I am not a developer nor an expert.
Is there a plugin for that too?
Thank you.
]]>I’ve been looking for a debugging tool for a while and every one I install will either error or break my site leaving a white screen. I don’t know how else to fix it besides removing the plugin folder directly via FTP. Am I doing something wrong or is it not compatible with my installation of woocommerce?
]]>Hello!
I know that sorting by query time via the feature list. However, the queries displayed for me are somewhat in order, but not completely from top to bottom. I’d like to see the most expensive queries on top across all queries.
It seems the queries ARE sorted by query time, but only in chunks. I also don’t see any tabs, buttons, anything that will sort the query information already displayed. I can dig into the code, but wanted to ask here first in case I’m missing something obvious.
Any help would be great! Thanks!
]]>Hi,
I cannot see the results as they are white and the background is bright ??
Can you help?
Thanks
]]>I get this error on a post page
WARNING: wp-content/plugins/debug-objects/inc/class-wrap.php:122 – filemtime(): stat failed for /home/www/youtube.dev/wp-content/plugins/debug-objects/js/jquery.dataTables.min.js
]]>“Parse error: syntax error, unexpected T_STRING in” “wp-content/plugins/debug-objects/inc/class-php_error.php on line 66”
I’m not sure what else to include.
]]>First of all, thanks for the great plugin! I’m occasionally experiencing very slow load times on my web-host and I’m using your plugin to troubleshoot.
Can you tell me what the num_queries value is and how it differs from queries? I see this message but I don’t understand it: “Different values in num_query and query?”
Here’s my example – you can see the length of time it took for the page to render is 31.4 seconds.
Total query time: 411.7ms for 20 queries (0.411673784255981s)
Total num_query time: 31.583 for 22 num_queries.
? Different values in num_query and query? – please set the constant define( ‘SAVEQUERIES’, TRUE );in your wp-config.php
Page generated in 31,446.3ms; (31.4462878704071044921875s); 98.69% PHP; 1.31% MySQL
When the page loads fast, I don’t see the num_query value:
Total query time: 15.7ms for 22 queries (0.015749216079712s)
Page generated in 504.5ms; (0.5045380592346191406250s); 96.88% PHP; 3.12% MySQL
First of all, thanks for the great plugin! I’m occasionally experiencing very slow load times on my web-host and I’m using your plugin to troubleshoot.
Can you tell me what the num_queries value is and how it differs from queries? I see this message but I don’t understand it: “Different values in num_query and query?”
Here’s my example – you can see the length of time it took for the page to render is 31.4 seconds.
Total query time: 411.7ms for 20 queries (0.411673784255981s)
Total num_query time: 31.583 for 22 num_queries.
? Different values in num_query and query? – please set the constant define( ‘SAVEQUERIES’, TRUE );in your wp-config.php
Page generated in 31,446.3ms; (31.4462878704071044921875s); 98.69% PHP; 1.31% MySQL
When the page loads fast, I don’t see the num_query value:
Total query time: 15.7ms for 22 queries (0.015749216079712s)
Page generated in 504.5ms; (0.5045380592346191406250s); 96.88% PHP; 3.12% MySQL