I’m trying to upgrade from version 2.2.2 to 2.3.1. My update went wrong and I found the reason why but i’m unable to fix it. My config.php files keeps resetting itself to only contain this…
<?php if ( ! defined('BASEPATH')) exit('Invalid file request');
$config['protect_javascript'] = "n";
$config['app_version'] = "0";
?>Which the upgrade script doesn’t like of course.
Every time I replace it with a valid backup of that file it reverts itself. I know that as a security measure I normally need to approve config.php changes via the admin interface but as i’ve uploaded all the upgraded files I can not access the admin panel (just the upgrade screens).
How can I approve the config.php change without admin area access?