Update fron 5.3.3.1 to 5.4.1.1

Permalink 1 user found helpful
Hi, I'm following installation instructions which suggest that I copy the 5.4.4.1 /concrete folder over the current version locally on my PC.

I then upload the entire folder to my server and the following message appears on attempting to open the home page.


Warning: require(/home/content/u/s/e/usexpatukraine/html/parkend/concrete/startup/updated_core_check.php) [function.require]: failed to open stream: No such file or directory in /home/content/u/s/e/usexpatukraine/html/parkend/concrete/dispatcher.php on line 14

Fatal error: require() [function.require]: Failed opening required '/home/content/u/s/e/usexpatukraine/html/parkend/concrete/startup/updated_core_check.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/u/s/e/usexpatukraine/html/parkend/concrete/dispatcher.php on line 14

I then try to run update.php on /concrete/tools (nothing exists where the instructions point to for update.php) and the result is access denied.

I change permission to execute on config folders but the result in unchanged

 
Brainakazariua replied on at Permalink Reply
Brainakazariua
Did you get this before running the actual upgrade? like you replaced the core and then got the error?

in that case: add /tools/upgrade?force=1 or /index.php/tools/upgrade?force=1 behind your domain name (in the browser you use, not in the site.php) to run an upgrade.

if you get it after the upgrade try this:

- Upload a new core (/concrete folder) to your site, this can be the exact same version you are running now.
- add /tools/upgrade?force=1 or /index.php/tools/upgrade?force=1 behind your domain name (in the browser you use, not in the site.php) to run an "upgrade".

if you upload the same /concrete as the version you are running it still "upgrades" to that version.
Doing this results in fixing any missing files and database pieces.
JeffMowatt replied on at Permalink Reply
Thanks. I followed that and "updated" first to 5.3.3.1 then 5.4.1.1in both cases by overwriting the concrete folder but result even with force=1 in the command line is as I reported above.
Brainakazariua replied on at Permalink Reply
Brainakazariua
I see that there is a huge diffence in those files.

The one in 5.3.3.1 and 5.4.0.5. contain this code:

<?php 
   defined('C5_EXECUTE') or die(_("Access Denied."));
   $co = Request::get();
   if ($co->isIncludeRequest() && $co->getFilename() == 'upgrade.php') {
      include(DIR_FILES_TOOLS_REQUIRED . '/' .  $co->getFilename());
      require(DIR_BASE_CORE . '/startup/shutdown.php');
      exit;
   }


while the one in 5.4.1.1 contains this code:

<?php 
if (defined('DIRNAME_APP_UPDATED') && (!isset($GLOBALS['APP_UPDATED_PASSTHRU']) || $GLOBALS['APP_UPDATED_PASSTHRU'] == false)) {
   $GLOBALS['APP_UPDATED_PASSTHRU'] = true;
   if (is_dir(DIR_BASE . '/' . DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED)) {
      require(DIR_BASE . '/' . DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_APP . '/' . 'dispatcher.php');
   } else {
      require(DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_APP . '/' . 'dispatcher.php');
   }
   exit;
}


I'm not sure if this will work since I didn't test it but you can try replacing the file (/concrete/startup/tools_upgrade_check.php) of the 5.4.1.1 core with the one of 5.3.3.1. (or 5.4.0.5) and then run the upgrade.

Note: I can't be sure this works since there is most likely a reason why the file has been modified like that but it's worth a shot.
JeffMowatt replied on at Permalink Reply
Curiously, it's the earlier version from 5.3.3.1 that I have already.

Looking at the 5.4.1.1 files, I find no folder for /concrete/startup which indicates my download/extract failed to complete.

Jeff
Brainakazariua replied on at Permalink Best Answer Reply
Brainakazariua
Seems like it, I suggest you manualy download it (http://www.concrete5.org/download_file/-/view/20470/8497/) and upload the /concrete folder.
ofcourse you can upload it under a different name (concrete_new for example) and then change the folder name of the current /concrete to something like /concrete_old and then you can rename the new core to /concrete.
JeffMowatt replied on at Permalink Reply
No much progress I'm sorry to say, the two commands with or without force=1 either return me to a blank page where the index.php form of the command is used, with the following url shown

(site url)/index.php?cID=

In the other case 'Access Denied' is returned
JeffMowatt replied on at Permalink Reply
Pls disregard that last comment. I tried again and it worked.

Thanks