RFC Ticket (pending)

Missing Panels?

###What happened: I am loading DebugKit, but it is choking on line 226 of /controllers/components/toolbars.php : line 225: if (!class_exists($className) && !App::import('Vendor', $className)) { line 226: trigger_error(sprintf(__('Could not load DebugToolbar panel %s', true, $panel), ###What was expected: I looked in the debug_kit/vendors directory and the only two files are: debug_kit_debugger.php and fire_cake.php Shouldn't log, memory, request, session, sql_log and timer be there since they are the built-in panels? I looked in the master source in thechaw and they aren't there either. Sincerely, Christopher Vrooman (BuckLay)
on 11.26.09 reported by: cdvrooman
on 11.26.09 by mark_story
So are you just reading the code, or actually getting errors? All the built-in panel classes are in the same file as the component. I'm using the master branch and not having any issues with missing panels.
on 12.07.09 by cdvrooman
Mark, In part the "errors" were coming from PHP v5.3.0 which XAMPP 1.7.2 uses. I hacked /cake/libs/configure.php, line 295 and changed it to ```error_reporting(E_ALL & ~E_DEPRECATED);``` which kept all the error messages appearing from ```=& new``` related statements. Now, I've got some other funkyness happening: ```Warning (512): Could not load DebugToolbar panel [APP\plugins\debug_kit\controllers\components\toolbar.php, line 226]``` In app_controller.php I'm using: {{{ 'DebugKit.Toolbar' => array( 'panels' => array( 'history', 'session', 'request', 'sqlLog', 'timer', 'log', 'memory' => false, 'variables' => false ) ) }}} I've posted the full error message details here: http://bin.cakephp.org/view/785692155 I'm using the latest debug_kit pulled from thechaw. Sincerely, Christopher.
on 12.07.09 by mark_story
If you are using 1.2.5 you shouldn't need to modify the core Configure class as workarounds for php 5.3 have been included. I'll see if I can reproduce the error with the configuration settings you have used.
on 12.07.09 by mark_story
I tried to reproduce using PHP 5.3 and apache 2.2 and was unsuccessful in generating the fatal error you are getting. You don't need `memory => false` anymore. The memory panel has been removed in more recent revisions of debug kit.
on 12.09.09 by cdvrooman
Mark, I pulled the latest debug_kit and the error has indeed disappeared. WRT hacking Configure in the core, I'm updating the Cake directory as a SVN external, but it only ever gives me Rev 8626. I just downloaded the latest nightly from cakephp.org and the VERSION.txt is 1.2.4.8284, then I downloaded v1.2.5 which is dated 2009-09-08 and it is using ~E_DEPRECATED to avoid the PHP 5.3.0 errors like I am. If you could tell me where to get the latest version via Subversion, that would be great. Thanks, Christopher.