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

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

<?php
define('DIR_BASE', "/home/jw/sites/beta/web");
define('C5_ENVIRONMENT_ONLY', true);
require_once('/home/jw/sites/beta/web/application/config/database.php');
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';
require('/home/jw/sites/beta/web/concrete/config/app.php');
require('/home/jw/sites/beta/web/packages/istand_tv_tools/vendor/jw/utils/utils.php');
require('/home/jw/sites/beta/web/packages/istand_tv_tools/vendor/jw/uplynk/uplynk.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...
[/code]

Since I upgraded to 5.7.5.6 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
concrete5.7.5.2
concrete5.7.5.3_remote_updater
concrete5.7.5.4_remote_updater
concrete5.7.5.6

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

ntisithoj
 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi ntisithoj,

Updating does not replace the core files. To update and maintain one set of core files, you should manually upgrade.
http://documentation.concrete5.org/tutorials/how-to-manually-upgrad...