Русское сообщество разработки на PHP-фреймворке Laravel.
Ты не вошёл. Вход тут.
Страницы 1
Господа, столкнулся с проблемой при установке debugbar
https://github.com/barryvdh/laravel-debugbar
Операционка linux mint 17.3
laravel 5.1.11
PHP Version 5.5.9
laravel-debugbar (v2.1.1)
Делаю как написано, все вроде ставиться, но нет дебаг-панельки -
нарыл ролик https://www.youtube.com/watch?v=8YDu1E6KgFE - сделал все как там показывается
единственный момент при установке - https://developers.google.com/speed/libraries/#jquery недоступна жителям Крыма (санкции туды их в качель) но при помощи vpn проблема решилась и я получил доступ к вожделенной страничке.
но опять нет панельки ...
посмотрел отдающий html - что не так?
может кто-нибудь сталкивался с подобной байдой?
<!DOCTYPE html>
<html>
<head>
<title>Laravel</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: center;
display: table-cell;
vertical-align: middle;
}
.content {
text-align: center;
display: inline-block;
}
.title {
font-size: 96px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
</head>
<body>
<div class="container">
<div class="content">
<div class="title">Laravel 5</div>
</div>
</div>
<link rel="stylesheet" type="text/css" href="http://laravel.local/_debugbar/assets/stylesheets?1450765358">
<script type="text/javascript" src="http://laravel.local/_debugbar/assets/javascript?1449741024"></script>
<script type="text/javascript">jQuery.noConflict(true);</script>
<script type="text/javascript">
var phpdebugbar = new PhpDebugBar.DebugBar();
phpdebugbar.addTab("messages", new PhpDebugBar.DebugBar.Tab({"icon":"list-alt","title":"Messages", "widget": new PhpDebugBar.Widgets.MessagesWidget()}));
phpdebugbar.addIndicator("time", new PhpDebugBar.DebugBar.Indicator({"icon":"clock-o","tooltip":"Request Duration"}), "right");
phpdebugbar.addTab("timeline", new PhpDebugBar.DebugBar.Tab({"icon":"tasks","title":"Timeline", "widget": new PhpDebugBar.Widgets.TimelineWidget()}));
phpdebugbar.addIndicator("memory", new PhpDebugBar.DebugBar.Indicator({"icon":"cogs","tooltip":"Memory Usage"}), "right");
phpdebugbar.addTab("exceptions", new PhpDebugBar.DebugBar.Tab({"icon":"bug","title":"Exceptions", "widget": new PhpDebugBar.Widgets.ExceptionsWidget()}));
phpdebugbar.addTab("views", new PhpDebugBar.DebugBar.Tab({"icon":"leaf","title":"Views", "widget": new PhpDebugBar.Widgets.TemplatesWidget()}));
phpdebugbar.addTab("route", new PhpDebugBar.DebugBar.Tab({"icon":"share","title":"Route", "widget": new PhpDebugBar.Widgets.VariableListWidget()}));
phpdebugbar.addIndicator("currentroute", new PhpDebugBar.DebugBar.Indicator({"icon":"share","tooltip":"Route"}), "right");
phpdebugbar.addTab("queries", new PhpDebugBar.DebugBar.Tab({"icon":"inbox","title":"Queries", "widget": new PhpDebugBar.Widgets.SQLQueriesWidget()}));
phpdebugbar.addTab("emails", new PhpDebugBar.DebugBar.Tab({"icon":"inbox","title":"Mails", "widget": new PhpDebugBar.Widgets.MailsWidget()}));
phpdebugbar.addTab("session", new PhpDebugBar.DebugBar.Tab({"icon":"archive","title":"Session", "widget": new PhpDebugBar.Widgets.VariableListWidget()}));
phpdebugbar.addTab("request", new PhpDebugBar.DebugBar.Tab({"icon":"tags","title":"Request", "widget": new PhpDebugBar.Widgets.VariableListWidget()}));
phpdebugbar.setDataMap({
"messages": ["messages.messages", []],
"messages:badge": ["messages.count", null],
"time": ["time.duration_str", '0ms'],
"timeline": ["time", {}],
"memory": ["memory.peak_usage_str", '0B'],
"exceptions": ["exceptions.exceptions", []],
"exceptions:badge": ["exceptions.count", null],
"views": ["views", []],
"views:badge": ["views.nb_templates", 0],
"route": ["route", {}],
"currentroute": ["route.uri", ],
"queries": ["queries", []],
"queries:badge": ["queries.nb_statements", 0],
"emails": ["swiftmailer_mails.mails", []],
"emails:badge": ["swiftmailer_mails.count", null],
"session": ["session", {}],
"request": ["request", {}]
});
phpdebugbar.restoreState();
phpdebugbar.ajaxHandler = new PhpDebugBar.AjaxHandler(phpdebugbar);
phpdebugbar.ajaxHandler.bindToXHR();
phpdebugbar.setOpenHandler(new PhpDebugBar.OpenHandler({"url":"http:\/\/laravel.local\/_debugbar\/open"}));
phpdebugbar.addDataSet({"__meta":{"id":"ad90c868be13ce9e98ebc7c689253d9a","datetime":"2016-01-31 23:19:40","utime":1454282380.2883,"method":"GET","uri":"\/","ip":"127.0.0.1"},"php":{"version":"5.5.9-1ubuntu4.14"},"messages":{"count":0,"messages":[]},"time":{"start":1454282380.2581,"end":1454282380.2883,"duration":0.030190944671631,"duration_str":"30.19ms","measures":[{"label":"Booting","start":1454282380.2581,"relative_start":0,"end":1454282380.2844,"relative_end":1454282380.2844,"duration":0.026278972625732,"duration_str":"26.28ms","params":[],"collector":null},{"label":"Application","start":1454282380.28,"relative_start":0.021919012069702,"end":1454282380.2883,"relative_end":3.0994415283203e-6,"duration":0.008275032043457,"duration_str":"8.28ms","params":[],"collector":null}]},"memory":{"peak_usage":3932160,"peak_usage_str":"3.75MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"nb_templates":1,"templates":[{"name":"welcome (resources\/views\/welcome.blade.php)","param_count":0,"params":[],"type":"blade"}]},"route":{"uri":"GET \/","uses":"Closure {#96\n class: \"App\\Providers\\RouteServiceProvider\"\n this: App\\Providers\\RouteServiceProvider {#79 \u2026}\n file: \"\/home\/valderan\/projects\/laravel.local\/www\/app\/Http\/routes.php\"\n line: \"14 to 16\"\n}","namespace":"App\\Http\\Controllers","prefix":null,"where":[],"file":"app\/Http\/routes.php:14-16"},"queries":{"nb_statements":0,"nb_failed_statements":0,"accumulated_duration":0,"accumulated_duration_str":"0\u03bcs","statements":[]},"swiftmailer_mails":{"count":0,"mails":[]},"session":{"_token":"eiOAm4ss35DlrxQg9nNO49cK8hppTGg3vMGYkkrG","PHPDEBUGBAR_STACK_DATA":"[]"},"request":{"format":"html","content_type":"text\/html; charset=UTF-8","status_text":"OK","status_code":"200","request_query":"[]","request_request":"[]","request_headers":"array:7 [\n \"host\" => array:1 [\n 0 => \"laravel.local\"\n ]\n \"user-agent\" => array:1 [\n 0 => \"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko\/20100101 Firefox\/44.0\"\n ]\n \"accept\" => array:1 [\n 0 => \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\"\n ]\n \"accept-language\" => array:1 [\n 0 => \"ru,en-US;q=0.7,en;q=0.3\"\n ]\n \"accept-encoding\" => array:1 [\n 0 => \"gzip, deflate\"\n ]\n \"connection\" => array:1 [\n 0 => \"keep-alive\"\n ]\n \"cache-control\" => array:1 [\n 0 => \"max-age=0\"\n ]\n]","request_server":"array:30 [\n \"HTTP_HOST\" => \"laravel.local\"\n \"HTTP_USER_AGENT\" => \"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko\/20100101 Firefox\/44.0\"\n \"HTTP_ACCEPT\" => \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\"\n \"HTTP_ACCEPT_LANGUAGE\" => \"ru,en-US;q=0.7,en;q=0.3\"\n \"HTTP_ACCEPT_ENCODING\" => \"gzip, deflate\"\n \"HTTP_CONNECTION\" => \"keep-alive\"\n \"HTTP_CACHE_CONTROL\" => \"max-age=0\"\n \"PATH\" => \"\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin\"\n \"SERVER_SIGNATURE\" => \"<address>Apache\/2.4.7 (Ubuntu) Server at laravel.local Port 80<\/address>\\n\"\n \"SERVER_SOFTWARE\" => \"Apache\/2.4.7 (Ubuntu)\"\n \"SERVER_NAME\" => \"laravel.local\"\n \"SERVER_ADDR\" => \"127.0.0.1\"\n \"SERVER_PORT\" => \"80\"\n \"REMOTE_ADDR\" => \"127.0.0.1\"\n \"DOCUMENT_ROOT\" => \"\/home\/valderan\/projects\/laravel.local\/www\/public\"\n \"REQUEST_SCHEME\" => \"http\"\n \"CONTEXT_PREFIX\" => \"\"\n \"CONTEXT_DOCUMENT_ROOT\" => \"\/home\/valderan\/projects\/laravel.local\/www\/public\"\n \"SERVER_ADMIN\" => \"[no address given]\"\n \"SCRIPT_FILENAME\" => \"\/home\/valderan\/projects\/laravel.local\/www\/public\/index.php\"\n \"REMOTE_PORT\" => \"33288\"\n \"GATEWAY_INTERFACE\" => \"CGI\/1.1\"\n \"SERVER_PROTOCOL\" => \"HTTP\/1.1\"\n \"REQUEST_METHOD\" => \"GET\"\n \"QUERY_STRING\" => \"\"\n \"REQUEST_URI\" => \"\/\"\n \"SCRIPT_NAME\" => \"\/index.php\"\n \"PHP_SELF\" => \"\/index.php\"\n \"REQUEST_TIME_FLOAT\" => 1454282380.256\n \"REQUEST_TIME\" => 1454282380\n]","request_cookies":"[]","response_headers":"array:2 [\n \"cache-control\" => array:1 [\n 0 => \"no-cache\"\n ]\n \"content-type\" => array:1 [\n 0 => \"text\/html; charset=UTF-8\"\n ]\n]","path_info":"\/","session_attributes":"array:2 [\n \"_token\" => \"eiOAm4ss35DlrxQg9nNO49cK8hppTGg3vMGYkkrG\"\n \"PHPDEBUGBAR_STACK_DATA\" => []\n]"}}, "ad90c868be13ce9e98ebc7c689253d9a");
</script>
</body>
</html>
Не в сети
Лог apache дает ошибку 404 :
127.0.0.1 - - [01/Feb/2016:10:14:34 +0300] "GET / HTTP/1.1" 200 3082 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0"
127.0.0.1 - - [01/Feb/2016:10:14:34 +0300] "GET /_debugbar/assets/stylesheets?1450765358 HTTP/1.1" 404 519 "http://laravel.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0"
127.0.0.1 - - [01/Feb/2016:10:14:34 +0300] "GET /_debugbar/assets/javascript?1449741024 HTTP/1.1" 404 518 "http://laravel.local/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
правильно ли я понимаю, что проблема с правами ?
Не в сети
Не в сети
Не в сети
Роуты покажи: `routes.php`
Не в сети
Не в сети
Скорее всего проблема с настройкой апача. Попробуй стандартные роуты, они тоже вряд ли будут работать.
+ лучше в чат, там быстрее вопросы решаются: https://gitter.im/LaravelRUS/chat
Не в сети
Скорее всего проблема с настройкой апача. Попробуй стандартные роуты, они тоже вряд ли будут работать.
+ лучше в чат, там быстрее вопросы решаются: https://gitter.im/LaravelRUS/chat
Понял, Спасибо.
Странно это, апач - стандартная установка
Попробую на арч ради эксперимента поставить
Не в сети
Вопрос закрыт - спасибо всем за подсказки
Не в сети
Страницы 1