redeclaration in loading updates (I want ot update the core, not overload it)

I have a number of C5 command line functions. I load all the stuff I need up front...

define('DIR_BASE', "/home/jw/sites/beta/web");
define('C5_ENVIRONMENT_ONLY', true);
if (!defined('REDIRECT_TO_BASE_URL')) {
define('REDIRECT_TO_BASE_URL', false);
echo "start";
require '/home/jw/sites/beta/web/concrete/bootstrap/configure.php';
require '/home/jw/sites/beta/web/concrete/bootstrap/autoload.php';
$cms = require '/home/jw/sites/beta/web/concrete/bootstrap/start.php';
use Concrete\Core\Job\Job;
use Concrete\Core\Page\Page;
echo "cli ready...\n";

... code goes here...

Since I upgraded to I am getting the error

PHP Fatal error:  Cannot redeclare t() (previously declared in /home/jw/sites/beta/web/updates/concrete5.7.5.6/concrete/bootstrap/helpers.php:15) in /home/jw/sites/beta/web/concrete/bootstrap/helpers.php on line 39
Whoops\Exception\ErrorException: Cannot redeclare t() (previously declared in /home/jw/sites/beta/web/updates/concrete5.7.5.6/concrete/bootstrap/helpers.php:15) in file /home/jw/sites/beta/web/concrete/bootstrap/helpers.php on line 39
Stack trace:
  1. () /home/jw/sites/beta/web/concrete/bootstrap/helpers.php:39
   | array(0) {
   | }

What I do not understand about this error is why is C5 loading the updates? I mean, isn't the upgrade supposed to replace my core? This implies it loads the core that overrides the core with the updates. Then I look in the web/updates folder I see all the stuff I assumed would replace the core. Is there a way I can have the upgrade the actual core and get rid of the web/updates folder? Or do I have to install from scratch?

When I looked in an associates dir I saw

How can I get rid of all these update files and just have an updated core?

View Replies: View Best Answer
MrKDilkington replied on at Permalink Best Answer Reply
Hi ntisithoj,

Updating does not replace the core files. To update and maintain one set of core files, you should manually upgrade.