Upgrade problem path issues 9.2.6 to 9.3.5

I attempted to upgrade a 9.3.6 site to 9.35 but replacing the concrete directory, but it didn’t take, so I ran the normal web based install. This worked and the files were in the update folder. I then wanted to clean it up so I removed those file and deleted the update.php in the application folder and replaced the concrete folder with the latest 9.3.5 version. This obviously wasn’t the best idea.

the site comes up bit it is blank. In the PHP logs I saw

#0 {main}
  thrown in /home/xxxsitefoldernamexx/public_html/concrete/vendor/illuminate/support/Facades/Crypt.php on line 16
[20-Oct-2024 05:12:29 UTC] PHP Warning:  Use of undefined constant APP_UPDATED_PASSTHRU - assumed 'APP_UPDATED_PASSTHRU' (this will throw an Error in a future version of PHP) in /home/xxxsitefoldernamexx/public_html/concrete/bootstrap/paths.php on line 14
[20-Oct-2024 05:12:29 UTC] PHP Warning:  Use of undefined constant DIRNAME_UPDATES - assumed 'DIRNAME_UPDATES' (this will throw an Error in a future version of PHP) in /home/xxxsitefoldernamexx/public_html/concrete/bootstrap/paths.php on line 17
[20-Oct-2024 05:12:29 UTC] PHP Warning:  Use of undefined constant DIRNAME_APP_UPDATED - assumed 'DIRNAME_APP_UPDATED' (this will throw an Error in a future version of PHP) in /home/xxxsitefoldernamexx/public_html/concrete/bootstrap/paths.php on line 17
[20-Oct-2024 05:12:29 UTC] PHP Warning:  Use of undefined constant DIRNAME_CORE - assumed 'DIRNAME_CORE' (this will throw an Error in a future version of PHP) in /home/xxxsitefoldernamexx/public_html/concrete/bootstrap/paths.php on line 17
[20-Oct-2024 05:12:29 UTC] PHP Warning:  Use of undefined constant DIRNAME_APPLICATION - assumed 'DIRNAME_APPLICATION' (this will throw an Error in a future version of PHP) in /home/xxxsitefoldernamexx/public_html/concrete/bootstrap/paths.php on line 31
[20-Oct-2024 05:12:29 UTC] PHP Warning:  Use of undefined constant DIRNAME_LANGUAGES - assumed 'DIRNAME_LANGUAGES' (this will throw an Error in a future version of PHP) in /home/xxxsitefoldernamexx/public_html/concrete/bootstrap/paths.php on line 40
[20-Oct-2024 05:12:29 UTC] PHP Warning:  Use of undefined constant DIRNAME_LANGUAGES_SITE_INTERFACE - assumed 'DIRNAME_LANGUAGES_SITE_INTERFACE' (this will throw an Error in a future version of PHP) in /home/xxxsitefoldernamexx/public_html/concrete/bootstrap/paths.php on line 40
[20-Oct-2024 07:03:19 UTC] PHP Fatal error:  Uncaught Error: Class 'Illuminate\Support\Facades\Facade' not found in /home/xxxsitefoldernamexx/public_html/concrete/vendor/illuminate/support/Facades/URL.php:27
Stack trace:
  • This seems to indicate it is a path issue, but I’m not sure where to look to fix someplace where the path might still be.

I thought it was all controlled by the update.php in the application folder.

FYI i also deleted all the files in the files/application/tmp folder thinking that might help - but it did not.

thanks for any suggestions on where to look!

In theory, that should be the best idea. I always use your procedure BUT I leave the old root/concrete folder there but rename it. Then I just rename the update.php file so it’s still there but isn’t used to direct traffic. I leave the new version in updates/remote…/concrete folder for a while in case I need to turn the clock back. Once things are clearly working out of the root/concrete folder then I’ll clean up my left-overs. Two things I would check. First, did you get ALL the files into the root/concrete folder? I never use FTP to upload that many individual files. I always ZIP up just the new concrete folder and use the host’s File Manager to upload the ZIP and ‘Expand’ it to where it needs to be. FTP’ing all those individual files is unreliable (I have found) The only other thing I can think off the top of my head is to delete everything under application/files/cache leaving an empty cache folder.

I’m NOT an expert on PHP error messages re: warnings and deprecations but for any other PHP experts who may chime in here to help, what version of PHP is running on the server?

Here’s the execution flow:

  • /index.php runs /concrete/dispatcher.php
    1. /concrete/dispatcher.php runs /concrete/bootstrap/configure.php
      • /bootstrap/configure.php defines APP_UPDATED_PASSTHRU to false if there’s no /application/config/update.php file
    2. /concrete/dispatcher.php then run Concrete\Core\Foundation\Runtime\DefaultRuntime::boot()
      • Concrete\Core\Foundation\Runtime\DefaultRuntime::boot() runs Concrete\Core\Foundation\Runtime\Boot\DefaultBooter::boot()
        • Concrete\Core\Foundation\Runtime\Boot\DefaultBooter::boot() runs /concrete/bootstrap/paths.php

So, you should never have a Use of undefined constant APP_UPDATED_PASSTHRU warning in /concrete/bootstrap/paths.php

1 Like

Thanks. I was able to revert to another theme and that seems to have solved it. Seems the theme has some issues with the updated version.