[Resolved] Debugger notice
Irony? I’m on the plugin review team and I did! Just pushed the wrong file. I’ll fix this today *sigh*
See? Nobody’s perfect!
Huh… That’s so weird that I DON’T see that error with Debug on.
But still, I see where that would be caused. There’s no fall back for it.
Version 22.214.171.124 coming in a moment.
Sure you don’t run any cache services? Otherwise you really have to rethink your WordPress setup.
On MAMP? Naaah. I always dev on localhost with no caching, then I go to a live site and test uploading. THEN it goes into real sites.
(I also don’t run caching on my live sites like most people mean – no WP Super Cache or W3 Total Cache. Memcached, PHP ZendOptimizerPlus, and Varnish for the most part.)
Well, I’ve noticed you defined the var genericon_rotate in the last update.
Still it’s odd you couldn’t see the debugger notice.
I also do my tests without any cacheing on the server side. For WordPress I’ve installed the famous Debug Bar plugin and Kint Debug.
For Chrome I use the very handy Clear Cache add on.
Yeah, not having a default was certainly not correct (now it’s ‘normal’).
I have that add-on as well. I even went and spun up a VVV install (just figured that out today) and couldn’t catch it. What version of PHP are you using? I tested on 5.4 and 5.3.
The site that showed the bug runs on PHP 5.3.3 Apache mode.
Last idea: did you actually test some code with any undefined var(s)?
A good debug setup MUST inform you. What’s the use of debugging otherwise?
Nup, had a totally naked site, never installed the plugin, fresh DB. That’s why I love Vagrant. Well I’ll keep banging on that. What page did you get the notice on? On display? On every page?
First things first:
1. Deactivate your plugin.
2. Deliberately put some errors in your plugin code.
3. Activate your plugin and see what happens. Check debug console.
4. Call your code on any page/post/function and see what happens. Check debug console.
If debugger catches all errors problem is solved.
If not, notice me. My debugging practice is simple but works. I can explain my debug setup in more detail but please first try yourself.
NOTA: Are you sure you have Debug Bar plugin running? Standard WP_DEBUG doesn’t show Warnings and Notices.
I’ve just installed & activated the plugin on one of my local server sites (PHP 5.3.3 Apache) – the one that’s set up to log every warning and error to hell & back for theme reviews. I couldn’t see any error messages – not in the front end or the back end. Nada. Zilch.
Nah, it’s fine 🙂
violacase – “Check debug console.”
WHICH console? This may be the actual answer to everything. The browser’s console or WPs (which you can only get if you have a debug bar type plugin)
Well, you can choose whatever setup you’d like. There are Chrome add-ons for PHP, independent system watchers, etc.
Whatever you set up: there’s always SOME kind of console to watch the debugging info. I’ll give you my setup:
On the server side:
Installed WordPress plugins: Debug Bar and Kint Debugger.
That’s all. Works fine for me. I think this should be enough info.
Right. I get you think you’re being helpful, but if you don’t tell me what one you happened to be looking at when you saw that specific error, it’s really not useful.
I know how to test, and use a debugger, and using the debug bar and define, I still don’t get THAT specific error. So for you to really be helpful you could explain something like “When I have chrome inspector open and visit a post where I’m using a genericon, I see this error…”
Instead, you’ve been maddeningly vague. Again, I know you have good intentions, but it’s really not the sort of information I need to understand how to reproduce your error. A good bug report has specific directions to reproduce, maybe a screenshot if you’re not sure how to describe it 🙂 this just happened to be one I could see as non optimal code, so you were lucky.
- The topic ‘[Resolved] Debugger notice’ is closed to new replies.