2014-01-15 32 views
2

當我運行「php工匠」,我得到一個非描述性的錯誤 - 這實際上是Laravel錯誤頁面。php工匠給出一個非描述性錯誤

<!DOCTYPE html> 
<html> 
    <head> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
     <meta name="robots" content="noindex,nofollow" /> 
     <style> 
      /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */ 
      html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;} 

      html { background: #eee; padding: 10px } 
      img { border: 0; } 
      #sf-resetcontent { width:970px; margin:0 auto; } 
         .sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 } 
      .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; } 
      .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; } 
      .sf-reset .clear_fix { display:inline-block; } 
      .sf-reset * html .clear_fix { height:1%; } 
      .sf-reset .clear_fix { display:block; } 
      .sf-reset, .sf-reset .block { margin: auto } 
      .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; } 
      .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px } 
      .sf-reset strong { font-weight:bold; } 
      .sf-reset a { color:#6c6159; } 
      .sf-reset a img { border:none; } 
      .sf-reset a:hover { text-decoration:underline; } 
      .sf-reset em { font-style:italic; } 
      .sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif } 
      .sf-reset h2 span { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; } 
      .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; } 
      .sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px; 
       -webkit-border-bottom-right-radius: 16px; 
       -webkit-border-bottom-left-radius: 16px; 
       -moz-border-radius-bottomright: 16px; 
       -moz-border-radius-bottomleft: 16px; 
       border-bottom-right-radius: 16px; 
       border-bottom-left-radius: 16px; 
       border-bottom:1px solid #ccc; 
       border-right:1px solid #ccc; 
       border-left:1px solid #ccc; 
      } 
      .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px; 
       -webkit-border-top-left-radius: 16px; 
       -webkit-border-top-right-radius: 16px; 
       -moz-border-radius-topleft: 16px; 
       -moz-border-radius-topright: 16px; 
       border-top-left-radius: 16px; 
       border-top-right-radius: 16px; 
       border-top:1px solid #ccc; 
       border-right:1px solid #ccc; 
       border-left:1px solid #ccc; 
       overflow: hidden; 
       word-wrap: break-word; 
      } 
      .sf-reset li a { background:none; color:#868686; text-decoration:none; } 
      .sf-reset li a:hover { background:none; color:#313131; text-decoration:underline; } 
      .sf-reset ol { padding: 10px 0; } 
      .sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px; 
       -webkit-border-radius: 10px; 
       -moz-border-radius: 10px; 
       border-radius: 10px; 
       border: 1px solid #ccc; 
      } 
     </style> 
    </head> 
    <body> 
        <div id="sf-resetcontent" class="sf-reset"> 
       <h1>Whoops, looks like something went wrong.</h1> 

      </div> 
    </body> 

我在我的Mac OS Mavericks上使用「AMPPS」進行開發。

我在我的「.bash_profile」中添加了「/ Applications/AMPPS/php5-3/bin」。

任何想法?

+0

你能輸出從'應用程序/存儲/日誌中的錯誤/日誌CLI-YYYY-MM -dd.txt'放入pastebin? – Sam

+0

hm,實際上沒有生成日誌 - 所以我沒有文件log-cli-XXXXXX.txt – ericbae

+0

你可以確保你的配置沒有禁用['debug'](http://laravel.com/ docs/errors#error-detail) – Sam

回答

0

這通常是一個權限錯誤。確保存儲目錄具有正確的權限設置。

安裝Laravel後,您可能需要配置一些權限。存儲器中的目錄和bootstrap/cache目錄應該可以通過Web服務器寫入,否則Laravel將無法運行。 https://laravel.com/docs/master

打開終端,運行以下命令來設置正確的讀/寫權限:

cd /path/to/project 
chmod 0777 -R storage 
chmod 0777 -R bootstrap/cache