![]() |
Debug Toolbar above of the head tag - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: Debug Toolbar above of the head tag (/showthread.php?tid=75523) |
Debug Toolbar above of the head tag - arnezthe - 02-15-2020 I've just try using CI 4 and working on development mode, but I found the debug toolbar script above of the head tag not inside the head: Code: <!-- DEBUG-VIEW START 1 APPPATH/Config/../Views/templates/header.php --> The debug toolbar did not injected properly into the head block tag and blocked by browser. vendor/codeigniter4/framework/system/Debug/Toolbar.php PHP Code: if (strpos($response->getBody(), '<head>') !== false) How to corrected this? Thank you. RE: Debug Toolbar above of the head tag - jreklund - 02-16-2020 Hi, this bug have been reported on GitHub with a suggested solution: https://github.com/codeigniter4/CodeIgniter4/issues/2545 PHP Code: if (strpos($response->getBody(), '<head>') !== false) RE: Debug Toolbar above of the head tag - arnezthe - 02-17-2020 (02-16-2020, 05:17 AM)jreklund Wrote: Hi, this bug have been reported on GitHub with a suggested solution: Thank you very much for the reference. Actually I've try to tricky with add <head> before <script> tag and remove after $script variable. But your reference more make sense. ![]() ` PHP Code: $script = '<head>' . PHP_EOL RE: Debug Toolbar above of the head tag - MGatner - 02-18-2020 This fix went out yesterday! |