WPIntell

Source evidence

[Plugin: BlackBox Debug Bar] php notice, small hint

BlackBox Debug Bar · support · 2011-02-11T08:04:00+00:00

complaintsentiment
mediumseverity
0.93relevance
12replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Frank Bueltge unresolved
At first, great idea and plugin. Please can you add a small check for $_SESSION to deactivate my php notices; i have all warnings anf notice on at my development client. Many thanks private function __construct() { $this->_profiler = new BlackBox_Profiler(); if ( !isset($_SESSION) ) $_SESSION = ''; $this->_globals = array( 'get' => $_GET, 'post' => $_POST, 'cookie' => $_COOKIE, 'session' => $_SESSION, 'server' => $_SERVER ); } http://wordpress.org/extend/plugins/blackbox-debug-bar/ Thanks for your support @frank , i will add the code over the weekend. maybe you can also include a solutino for not overlay obout the WP Admin Bar. Maybe you give the bottom:0 on the fixed div. also: NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:14 – Undefined index: errno NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:111 – Undefined index: errno NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:111 – Undefined index: name NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 – Undefined index: message NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 – Undefined index: line NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 – Undefined index: file I get a lot of these. Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /var/www/vhosts/foxy-shop.com/subdomains/dev/httpdocs/wp-content/plugins/blackbox-debug-bar/application/BlackBox.php on line 131 Notice: Undefined index: count in /var/www/vhosts/foxy-shop.com/subdomains/dev/httpdocs/wp-content/plugins/blackbox-debug-bar/application/BlackBox.php on line 142 I would love to run this for a short time in my production environment. Could it be displayed only if you are a logged-in wordpress user? @sparkweb , currently not, however i am thinking about doing something else. I want to add a possibility to whitelist IP addresses that will see the debug bar. I know that it’s not a perfect solution, but will allow to debug frontend when users is not logged in as well. @frank , can’t really trace the: NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 - Undefined index: file can you let me know how to replicate it? Hi Greg, that would be great. My only complaint would be that the bar would be visible when first installed until I went to put in the whitelist IP. Maybe the IP could be loaded in as a default in the plugin files as well for a smoother transition? I think that most users of your plugin are plenty comfortable editing plugin files. Regarding Frank’s problem, it sounds like in this case there wasn’t a file entry in the $error array. You could check for this by doing something like this: if (array_key_exists('file', $error) echo $error['file']; EDIT: Thinking a little more about this, I think that in Frank’s case an empty error array got added to the database. Just check for this right underneath this line: foreach($bb->getErrors() as $error) by adding this: if (array_key_exists('errno', $error) : Then it won’t try to display any empty error array lines. current i have update to 0.1.1 and i have no error ors notices. 🙂 But i hav ethe problem, after activate the plugin it is not in the plugin.php list of WP backend, it is not so easy to deactivate the plugin. Maybe a error in html? Hmmm, i am not sure what’s the problem, i see the plugin on the list in plugins.php What WordPress are you using? Version 0.1.1 is great. I do have the same problem as Frank, though. This screenshot might help explain: http://screencast.com/t/8WwgX0tOw Running WP 3.1 Question: would it be possible to put print_r($wp) into the Globals dropdown? That might be some really handy information. the screenshot view my problem, i used on 3.1 and 3.2-alpha. I have tested with a clean install, without plugins and twenty ten theme. Ok got it, should be fixed in 0.1.2, thanks for the help @frank and @sparkweb ! Yup, it’s fixed in 0.1.2. 5-star rating left. Thanks for a great plugin.

Comments

12 shown
Greg Winiarski 2011-02-11T16:29:00+00:00

Thanks for your support @frank , i will add the code over the weekend.

Frank Bueltge 2011-02-11T16:58:00+00:00

maybe you can also include a solutino for not overlay obout the WP Admin Bar. Maybe you give the bottom:0 on the fixed div.

Frank Bueltge 2011-02-11T20:11:00+00:00

also: NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:14 – Undefined index: errno NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:111 – Undefined index: errno NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:111 – Undefined index: name NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 – Undefined index: message NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 – Undefined index: line NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 – Undefined index: file

sparkweb 2011-03-08T16:35:00+00:00

I get a lot of these. Notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' in /var/www/vhosts/foxy-shop.com/subdomains/dev/httpdocs/wp-content/plugins/blackbox-debug-bar/application/BlackBox.php on line 131 Notice: Undefined index: count in /var/www/vhosts/foxy-shop.com/subdomains/dev/httpdocs/wp-content/plugins/blackbox-debug-bar/application/BlackBox.php on line 142 I would love to run this for a short time in my production environment. Could it be displayed only if you are a logged-in wordpress user?

Greg Winiarski 2011-03-12T09:27:00+00:00

@sparkweb , currently not, however i am thinking about doing something else. I want to add a possibility to whitelist IP addresses that will see the debug bar. I know that it’s not a perfect solution, but will allow to debug frontend when users is not logged in as well. @frank , can’t really trace the: NOTICE: wp-content/plugins/blackbox-debug-bar/application/debug-bar.php:113 - Undefined index: file can you let me know how to replicate it?

sparkweb 2011-03-12T14:46:00+00:00

Hi Greg, that would be great. My only complaint would be that the bar would be visible when first installed until I went to put in the whitelist IP. Maybe the IP could be loaded in as a default in the plugin files as well for a smoother transition? I think that most users of your plugin are plenty comfortable editing plugin files. Regarding Frank’s problem, it sounds like in this case there wasn’t a file entry in the $error array. You could check for this by doing something like this: if (array_key_exists('file', $error) echo $error['file']; EDIT: Thinking a little more about this, I think that in Frank’s case an empty error array got added to the database. Just check for this right underneath this line: foreach($bb->getErrors() as $error) by adding this: if (array_key_exists('errno', $error) : Then it won’t try to display any empty error array lines.

Frank Bueltge 2011-03-13T12:30:00+00:00

current i have update to 0.1.1 and i have no error ors notices. 🙂 But i hav ethe problem, after activate the plugin it is not in the plugin.php list of WP backend, it is not so easy to deactivate the plugin. Maybe a error in html?

Greg Winiarski 2011-03-14T18:52:00+00:00

Hmmm, i am not sure what’s the problem, i see the plugin on the list in plugins.php What WordPress are you using?

sparkweb 2011-03-14T19:39:00+00:00

Version 0.1.1 is great. I do have the same problem as Frank, though. This screenshot might help explain: http://screencast.com/t/8WwgX0tOw Running WP 3.1 Question: would it be possible to put print_r($wp) into the Globals dropdown? That might be some really handy information.

Frank Bueltge 2011-03-14T21:03:00+00:00

the screenshot view my problem, i used on 3.1 and 3.2-alpha. I have tested with a clean install, without plugins and twenty ten theme.

Greg Winiarski 2011-03-16T18:39:00+00:00

Ok got it, should be fixed in 0.1.2, thanks for the help @frank and @sparkweb !

sparkweb 2011-03-16T19:13:00+00:00

Yup, it’s fixed in 0.1.2. 5-star rating left. Thanks for a great plugin.