工匠返回空白 [英] Artisan returns blank

查看:93
本文介绍了工匠返回空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我运行任何php artisan命令(如php artisan list)时,我什么也得不到.根本没有任何命令.

Whenever I run any php artisan command like php artisan list, I get nothing back. No commands work at all.

我一直在搜索一些,并尝试了以下方法:

I have been searching a little around, and have tried the following:

  • /root/.composer的权限更改为777
  • 删除bootstrap/compiled.php文件
  • changing permissions for /root/.composer to 777
  • remove bootstrap/compiled.php file

app/storage/logs/log-cli-.txt中没有任何内容.
我可以在浏览器中查看该网站.

There is nothing in app/storage/logs/log-cli-.txt.
I can view the site in the browser.

我正在使用PHP v.5.5.11-Laravel 4.1在CentOS 6.3 64位上运行

I'm running on CentOS 6.3 64bit with PHP v. 5.5.11 - Laravel 4.1

推荐答案

此问题非常普遍,通常与某些CLI中未看到的错误(如无法加载的自定义类)有关,您确定自己有错误吗?报告?

This problem is pretty common and is usually related to some errors that are not seen in the CLI like custom classes that failed to load, are you sure you have error reporting on?

编辑文件artisan,并在PHP开头标记<?php之后添加以下几行:

Edit the file artisan and add the following lines just after the PHP opening tag <?php:

ini_set('display_errors',1);
error_reporting(-1);

尝试再次运行artisan,看看是否有任何输出.

Try running artisan again and see if there is any output.

如果这不起作用,请尝试将app/start/global.php还原为默认状态.

If that doesn't work try reverting app/start/global.php to it's default state.

这篇关于工匠返回空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆