Avoid
Avoid

Reputation: 353

PHP error on deploying to heroku

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.

enter image description here

Upvotes: 1

Views: 307

Answers (2)

Rahul Thakur
Rahul Thakur

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

Nabeel Qadri
Nabeel Qadri

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

Related Questions