简体   繁体   English

Debugkit不显示工具栏

[英]Debugkit doesn't show toolbar

I read this question and this too. 我读了这个问题, 也。 i followed all steps that is mentioned on these links. 我遵循了这些链接上提到的所有步骤。 In my case, debug kit it appears along the page and not in a side bar like it should. 就我而言,调试工具包会出现在页面中,而不是应该出现在侧栏中。 What am i missing? 我想念什么? It seems that is js or css that is failing. 看来是js或CSS失败了。 I'm using cakephp 2.4.7 and debugkit 2.2.3. 我正在使用cakephp 2.4.7和debugkit 2.2.3。 My steps were: 我的步骤是:

 - Clone/Copy the files in this directory into app/Plugin/DebugKit

 - Ensure the plugin is loaded in app/Config/bootstrap.php by calling CakePlugin::load('DebugKit');

 - Include the toolbar component in your AppController.php: public $components = array('DebugKit.Toolbar');

 - Set debug mode equal 2.
 - Remove the 'sql_dump' element from default layout.

Thanks in advance. 提前致谢。

Finally i find my issue. 终于我找到了我的问题。 date_default_timezone_set() is not defined. 未定义date_default_timezone_set()。 it appears: 它出现:

DateTime::__construct(): It is not safe to rely on the system's timezone settings. DateTime :: __ construct():依靠系统的时区设置并不安全。 You are required to use the date.timezone setting or the date_default_timezone_set() function. 需要使用date.timezone设置或date_default_timezone_set()函数。 In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. 如果您使用了这些方法中的任何一种,并且仍然收到此警告,则很可能您拼写了时区标识符。 We selected 'Europe/Paris' for 'WEST/1.0/DST' instead 我们选择“欧洲/巴黎”作为“ WEST / 1.0 / DST”

For that reason you must to uncomment line 270 in your core.php. 因此,您必须在core.php中取消注释第270行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM