Hi,
I’m using Docker for my development environment. I have an use case where my code (php-fpm container) and my webserver (nginx container) are separated in two different containers.
The plugins is triggering HTTP requests (debug-this.php L: 199) where it’s using the host from the get_bloginfo() function.
$url = get_bloginfo( 'url' ) . '/' . $wp->request . "?$query_string";
Since my code and therefore the plugin resides in a separate container it cannot create requests to https://localhost because the webserver is in another container. In order to perform the request it would have to send these requests to: https://nginx:80 (the docker service name if its in the same network)
Is it possible to provide an environment variable to set a HOST ourselfs?
query-monitor for example also provides actions of env variables: https://querymonitor.com/docs/configuration-constants/
I need to troubleshoot a shortcode, but it gives me a critical error very quickly.
14:52:39 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 206573568 bytes) in /home1/friscoro/public_html/fishingreport/wp-content/plugins/debug-this/inc/extensions.php on line 350
[19-May-2021 14:53:02 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 174067712 bytes) in /home1/friscoro/public_html/fishingreport/wp-content/plugins/debug-this/inc/extensions.php on line 350
I’ve added a statement to my wp-config, but it didn’t help
define( 'WP_MAX_MEMORY_LIMIT' , '512M' );
If you press the top level “Debug This” button on the page preview, it gives you a page layout of all the elements. The shortcode I’m using does not show on that page at all even though I have 2 blocks with the same shortcode. A Shortcode block, and a Custom HTML block. Both just render the actual shortcode text on the preview page, but there is nothing when viewing it with Debug This.
]]>Not seeing “Debug this” in top admin bar.
Also curious why your example images of the plugin show “Debug this” twice in the top menu bar.
Thanks ahead of time.
]]>Hi, I am just wondering if this plugin is still maintained? If it is, are you planning on releasing an update to confirm that it is compatible with the latest WordPress version 5.2.2?
Thank you
]]>Hi,
What do the values in the third index mean when Debug This Queries are being viewed e.g. the require and require_once list at index 2 below.
[0] => Array
(
[0] => SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'
[1] => 0.0003809928894043
[2] => require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), wp_not_installed, is_blog_installed, wp_load_alloptions
)
]]>
error_log gets this:
Stack trace:
#0 /home/travailleurconn/public_html/wp-content/plugins/debug-this/debug-this.php(238): Debug_This_Extensions->filters(‘<!DOCTYPE html>…’, ‘/home/travaille…’)
#1 /home/travailleurconn/public_html/wp-includes/class-wp-hook.php(286): Debug_This->debug(‘filters’)
#2 /home/travailleurconn/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#3 /home/travailleurconn/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#4 /home/travailleurconn/public_html/wp-content/plugins/debug-this/inc/debug-template.php(47): do_action(‘debug_this’, ‘filters’)
#5 /home/travailleurconn/public_html/wp-includes/template-loader.php(74): include(‘/home/travaille…’)
#6 /home/travailleurconn/public_html/wp-blog-header.php(19): require_once(‘/home/travaille…’)
#7 /home/travailleurconn/public_html/index.php(17): require(‘/home/t in /home/travailleurconn/public_html/wp-content/plugins/debug-this/inc/extensions.php on line 895
[19-Jun-2018 03:39:01 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type Closure as array in /home/travailleurconn/public_html/wp-content/plugins/debug-this/inc/extensions.php:895
Stack trace:
Debug This seems great and I can see a lot of the reports no problem, but when I tried to view PHP –> Variables I get a Fatal Error: Out of Memory.
Here is the full error:
( ! ) Fatal error: Out of memory (allocated 327614464) (tried to allocate 158564352 bytes) in /var/www/html/wp-includes/functions.php on line 3721
Call Stack
# Time Memory Function Location
1 0.0008 367680 {main}( ) …/index.php:0
2 0.0011 367968 require( ‘/var/www/html/wp-blog-header.php’ ) …/index.php:17
3 0.9539 7349280 require_once( ‘/var/www/html/wp-includes/template-loader.php’ ) …/wp-blog-header.php:19
4 1.7763 7668216 include( ‘/var/www/html/wp-content/plugins/debug-this/inc/debug-template.php’ ) …/template-loader.php:74
5 9.4376 325557744 ob_get_contents ( ) …/debug-template.php:29
6 9.4384 325557824 shutdown_action_hook( ) …/load.php:0
7 9.4384 325557824 do_action( ) …/load.php:677
8 9.4385 325558576 WP_Hook->do_action( ) …/plugin.php:453
9 9.4385 325558576 WP_Hook->apply_filters( ) …/class-wp-hook.php:323
10 9.4385 325559704 wp_ob_end_flush_all( ) …/class-wp-hook.php:298
11 9.4385 325559704 ob_end_flush ( ) …/functions.php:3721
Any ideas?
Thanks!
Dave
Kept getting 404 Errors — the index and another page is fine, everything else is down. I ran Debug This, Server > File Permissions and got the following:
Notice: Undefined offset: 1 in C:\xampp\htdocs\wordpress\wp-content\plugins\debug-this\debug-this.php on line 204
Debug This Mode: file-permissions – Info about WP root, plugins and theme directories.
POSIX missing
Notice: Trying to get property of non-object in C:\xampp\htdocs\wordpress\wp-content\plugins\Divi_Builder_[v2.0.1]\includes\builder\functions.php on line 6356
Undefined offset in line 204, no posix and the Divi Builder non-object. Line 6356 reads: if ( ! current_user_can( ‘edit_post’, $current_object->ID ) ) {return;}
Not really sure what to do about this. Tried just about everything before I tried Debug This (reset permalinks, disabled plugins, etc.). Very perplexed as to why one non-index page (I use Divi Builder there, too) is up and the rest down. I was ready to deploy and now this. Any ideas, thoughts or suggestions are most appreciated.
]]>Is there a way to access it elsewhere or how can I make it show up?
]]>This is a great plugin, as debugging wordpress is a nightmare…
I am trying to use the WP_Debug option to see what is going wrong on my site, but I’m having trouble restricting output to the log file…
I am unable to use the wp-debug log file view as it fills up with millions of notices from some stupid plugins as soon as I switch on wp_debug.
I have tried adding an error_reporting line (E_ALL & ~E_NOTICE) to php.ini, to the wp-config.php file and to a file in mu-plugins, without any success at all.
I know this is not strictly a question about the plugin itself, but I have been unable to find an answer elsewhere and I figured that someone using it might know…
Help please???
]]>Running WP Multisite 4.5 Nginx 1.9.14.
When I click an option I get the white page of death.
Here is what my log says:
2016/04/21 08:02:48 [error] 29735#29735: *1775 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/example.online/html/wp-content/plugins/debug-this/debug-this.php:195
Stack trace:
#0 /var/www/example.online/html/wp-includes/plugin.php(525): Debug_This->buffer_page('')
#1 /var/www/example.online/html/wp-includes/template-loader.php(12): do_action('template_redire...')
#2 /var/www/example.online/html/wp-blog-header.php(19): require_once('/var/www/digita...')
#3 /var/www/example.online/html/index.php(17): require('/var/www/digita...')
#4 {main}
thrown in /var/www/example.online/html/wp-content/plugins/debug-this/debug-this.php on line 195
PHP message: PHP Stack trace:
PHP message: PHP 1. newrelic_exception_handler(*uninitialized*) UNKNOWN?:0" while reading response header from upstream, client: 123.123.123.123, server: example.online, request: "GET /store/products/ladies-sweat-shirt/?page&product=ladies-sweat-shirt&post_type=product&debug-this=backtrace HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "marketpress.example.online", referrer: "https://marketpress.example.online/store/products/ladies-sweat-shirt/"
I found a few threads here where people had same issue but no follow up on those threads.
Any idea what’s going on?
]]>A Fatal php Error after activation. Forced to delete.
]]>Hello,
I need to debug a backup plugin that has no front end output and only does stuff in the wp-admin. Is it possible to enable this Debug plugin in wp-admin?
]]>Great tool but can I see a query count somewhere (something similar to Debug-Queries-like plugins)?
]]>Debug This is only showing a %DEBUG% message:
https://o46.imgup.net/debug-this8e5c.png
I’m using Debug This Version 04. and WordPress 4.3.
Is this a template issue?
]]>Hi, I’m getting odd behavior with global array variables. After loading them with strings, they’re showing up with ordered numbers.
I isolated the problem by making the code as simple as possible. I have this code in one function:
`global $test_array;
$test_array = array();$test_array[] = ‘test’;
array_push ($test_array, ‘tester’);?><p><?php
echo ‘<pre>’;
print_r($test_array);
echo ‘</pre>’;
?></p><?php’`
Which outputs, as expected:
Array
(
[0] => test
[1] => tester
)
For good measure I tested the array variable contents by inserting print code into another function that’s called later:
`global $test_array;
?><p><?php
echo ‘<pre>’;
print_r($test_array);
echo ‘</pre>’;
?></p><?php’`
Which outputs, as expected:
Array
(
[0] => test
[1] => tester
)
There is no other code anywhere on my site that does anything to $test_array – nothing else even referencing that variable at all.
Yet when I use Debug This – PHP – Variables, I see:
test_array
Array
(
[0] => 0
[1] => 1
)
This same issue was happening with other array variables as well.
Any idea what’s going on? Has anyone else seen anything like this? Is there some kind of universal global variable array stomper function hiding in WordPress?
]]>Debug This > Current Theme > Current Template Returns ‘debug-template’ rather than the template for the page I was looking at.
This can’t be correct, can it?
Thanks!
]]>When I click shortcodes, I get a blank screen. Can you suggest how I should troubleshoot this?
Thanks.
]]>Hi,
Fatal error: Cannot use object of type WP_Error as array in /data/25/2/129/25/2618677/user/2872693/htdocs/wordpress/wp-content/plugins/debug-this/debug-this.php on line 183
Thanks for any insight on this error,
David
There was nothing on the screen, so I had to add this :
.debug-this {
position: absolute !important;
}
Maybe because of my theme (cherry).
]]>there is a problem with body::before that create some problem to read the dialog.
For fix:
.debug-this{
padding:20px;
position:absolute;
}
and in .escape i’ve removed top:40px for fix the position of the X button
]]>I get this error:
Non-static method Debug_This::get_escape_url() should not be called statically in debug-template.php
For fix in debug-this.php:
change line 288 with this public static function get_escape_url(){
It’s not in the admin bar or settings.
Can’t find it.
]]>DebugThis produces the following when ANY debug option is selected:
Fatal error: Cannot use object of type WP_Error as array in /home2/llnews/public_html/wp-content/plugins/debug-this/debug-this.php on line 183
Site is https://leasidelifenews.com running latest version of WP and Thesis.
]]>whenever I select an option on the DebugThis menu, the system returns a blank page.
I’ve verified that:
– i’m a superadmin (is_super_admin),
– i’m not an admin (is_admin)
I have SAVEQUERIES set to true in config and can see the queries by echoing $epdb->queries however debug this still gives the error ‘Please set define(“SAVEQUERIES”, true); in wp-config.php to see saved queries. Please disable when completed as this can be a large performance hit.’
]]>Debug This > Themes > Current Template
shows [...]/wp-content/plugins/debug-this/_inc/debug-template.php
. Should it be showing the current theme template instead?
Installed the debug plugin that was suggested in a Genesis article about 404’s so download it, it’s there on my dashboard, the drop down menu shows the first drop down list, but that’s it. The only function that will work is the very first one (debug). What am I doing wrong, or what am I not doing right?
Any suggestions!
]]>WordPress 3.5.1
Debug This 0.3
Plugin crashes when accessing the Object Cache option.
Fatal error: Call to undefined method W3_ObjectCacheBridge::stats() in /home/xxxxxx/public_html/wp-content/plugins/debug-this/_inc/extensions.php on line 168
]]>Hello, I’d like to know whether this plugin can help me to find why if the emails being sent via cron, are not sent at all and there is no error in the wp debug.
Please find more here: https://www.ads-software.com/support/topic/scheduling-does-not-work-any-more/page/
]]>