2017-04-07 91 views
0

我已將Laravel從5.3更新爲5.4。錯誤頁面爲白色,更新後不顯示錯誤。我正在使用本地服務器。規格:Laravel - 從5.3更新到5.4後出現錯誤頁面爲空

OS: Ubuntu 16.04 
Nginx/1.9.15 
PHP 5.6.11 

我讀了這個問題(Laravel blank white screen)和我曾嘗試解決方案:

# Group Writable (Group, User Writable) 
$ sudo chmod -R gu+w storage 

# World-writable (Group, User, Other Writable) 
$ sudo chmod -R guo+w storage 

和其他解決方案已被提出。但問題依然存在!

另外,在.envconfig/app.php中的應用程序調試是true

誰能幫忙?

+0

什麼日誌文件說 – Ohgodwhy

+0

你能提供你的代碼?哪裏有錯誤應該發生的樣本?還檢查了這https://laracasts.com/discuss/頻道/ laravel /空白屏幕 –

+0

@Ohgodwhy在此文件中記錄錯誤。 '[2017-04-07 21:08:27] local.ERROR:在/home/ali/www/brandmashhoor/storage/framework/views/57345fd9a58712cb3d79cd32e59c661578d51e7f.php:30中顯示'Undefined index:image'異常'ErrorException' ' –

回答

2

更新你的laravel後,你可以清除你的所有緩存和你的編譯頁面。試着這樣做:

php artisan view:clear 
php artisan cache:clear 
php artisan config:clear 
php artisan route:clear 
php artisan clear-compiled 
php artisan optimize 
+0

我會宣佈測試結果。謝謝。 –

+0

使用這些代碼無法解決問題。我想再次做更新可能會解決這個問題。 –

+0

你也可以嘗試刪除您的compiled.php文件...值得一試因爲有時清晰的編譯命令不總是工作... – brunohdaniel