【问题标题】:Getting an error message when putting Laravel test project online将 Laravel 测试项目上线时收到错误消息
【发布时间】:2013-05-18 18:29:08
【问题描述】:

当我尝试将我的网站上线时收到此消息

Unhandled Exception

Message:

Error rendering view: [home.index]

Trying to get property of non-object
Location:

/home/bluelynx/public_html/storage/views/4f62cf9f53fafa06c72f532abef2ee2b on line 161
Stack Trace:

#0 /home/bluelynx/public_html/laravel/laravel.php(42): Laravel\Error::native(8, 'Trying to get p...', '/home/bluelynx/...', 161)
#1 /home/bluelynx/public_html/laravel/view.php(386) : eval()'d code(161): Laravel\{closure}(8, 'Trying to get p...', '/home/bluelynx/...', 161, Array)
#2 /home/bluelynx/public_html/laravel/view.php(386): eval()
#3 /home/bluelynx/public_html/laravel/blade.php(71): Laravel\View->get()
#4 [internal function]: Laravel\{closure}(Object(Laravel\View))
#5 /home/bluelynx/public_html/laravel/event.php(199): call_user_func_array(Object(Closure), Array)
#6 /home/bluelynx/public_html/laravel/event.php(138): Laravel\Event::fire('laravel.view.en...', Array, true)
#7 /home/bluelynx/public_html/laravel/view.php(348): Laravel\Event::until('laravel.view.en...', Array)
#8 /home/bluelynx/public_html/laravel/view.php(590): Laravel\View->render()
#9 /home/bluelynx/public_html/laravel/response.php(268): Laravel\View->__toString()
#10 /home/bluelynx/public_html/laravel/laravel.php(180): Laravel\Response->render()
#11 /home/bluelynx/public_html/public/index.php(34): require('/home/bluelynx/...')
#12 {main}

这只是为了确保我可以在继续使用这个框架之前获得它。有什么想法吗?

【问题讨论】:

  • PHP 的版本是什么?
  • php版本为5.3.25
  • 你编辑过什么吗?可以发一下home.indexview的代码吗?
  • 好的,我明白了...我以为我注释掉了数据库连接,但我没有大声笑,谢谢!!

标签: php frameworks laravel


【解决方案1】:

内部有刀片数据库连接忘记注释掉

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-08
    • 2021-12-13
    • 1970-01-01
    • 2021-06-13
    • 1970-01-01
    相关资源
    最近更新 更多