BUG Ticket (closed)
PHP4 problem
###What happened:
I moved my site from the Developers Machine to Live Machine and the entire site stopped working.
This is the message I get on the Live Machine:
{{{
Fatal error: Call to undefined method: toolbarhelper->makeneatarray()
in /<path to> /app/plugins/debug_kit/views/elements/session_panel.ctp
on line 31
}}}
###What was expected:
I expected the transition to be smooth. It should show the same debug toolbar as I saw in the Developer's Machine
###System Specs:
- **Developers Machine**
- PHP5
- MySQL5
- **Live Machine:**
- PHP4
- MySQL4
###What I did to fix this problem:
Everytime I encounter the following:
{{{
$toolbar->makeNeatArray($vars)
$toolbar->table($vars)
$toolbar->message($vars)
}}}
I change it to:
{{{
$toolbar->HtmlToolbar->makeNeatArray($vars)
$toolbar->HtmlToolbar->table($vars)
$toolbar->HtmlToolbar->message($vars)
}}}
I have modified the following files:
{{{
debug_kit/views/elements/log_panel.ctp
debug_kit/views/elements/memory_panel.ctp
debug_kit/views/elements/request_panel.ctp
debug_kit/views/elements/session_panel.ctp
debug_kit/views/elements/timer_panel.ctp
debug_kit/views/elements/variables_panel.ctp
}}}
on 03.21.09
reported by: ProFire
owned by: mark_story
on 03.22.09
by mark_story
- **owner** was changed to _mark_story_
- **type** was changed to _bug_
Doing this breaks the toolbar output for Ajax Requests as HtmlToolbar will not exist. With XHR requests you normally get the Toolbar output in FirePHP format, which this change breaks. This is not a solution to the problem.
What version of PHP4 are you using?
on 07.02.09
by Cottser
Just installed DebugKit, and I'm getting the same error. PHP 4.4.8 here.
on 07.13.09
by mark_story
Mostly fixed in [791b2c97f7575fb33aaf72c64b7c2ac2cd0ec326] There are still issues with FireCake and object dumping, related to poor object comparison in PHP4. But the toolbar renders without error now.
(fixed)
on 12.08.09
by mark_story
- status was changed to closed
- resolution was changed to fixed
Considering this fixed, as the toolbar works without issue in php4
