Reputation: 353
I am new in deploying PHP application on Heroku. My app is working fine locally but on heroku it is giving error shown in the image. It is written in CodeIgniter framework.
Upvotes: 1
Views: 307
Reputation: 932
In your system/core/Common.php, modify line 257 to -
$_config[0] =& $config;
return $_config[0];
Further reading - https://ellislab.com/forums/viewthread/244510/#1066393
Upvotes: 2
Reputation: 109
In index.php please check your setting or place this code there.
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.');
}
}
Upvotes: 0