我是在Heroku上部署PHP应用程序的新手。我的应用程序在本地运行良好,但在heroku上出现错误,如图所示。它是用CodeIgniter框架编写的。
发布于 2014-10-18 20:41:20
在您的system/core/Common.php中,将第257行修改为-
$_config[0] =& $config;
return $_config[0];
进一步阅读- https://ellislab.com/forums/viewthread/244510/#1066393
发布于 2014-09-16 17:24:55
在index.php中,请检查您的设置或将此代码放在那里。
define('ENVIRONMENT', 'development');
error_reporting(0);
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
//error_reporting(E_ALL);
break;
case 'testing':
case 'production':
//error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}
https://stackoverflow.com/questions/25864851
复制相似问题