Upgrade Concrete versions 9.3.1 and 9.3.2

Sep 10, 2024
By myq for Developers

Problem

When trying to upgrade from Concrete versions 9.3.1 and 9.3.2 through the dashboard, you may encounter the following error message:

The directory /www/public_html/updates/ already exists. Perhaps this item has already been installed.

However, if you delete the updates/ directory, you will get another error about not being able to find the updates/ directory. How can you get past this catch-22?

There are two ways:

  1. patch the relevant code, or
  2. manually download the update

Patch the relevant code

  1. Find the directory holding the currently used Concrete core. If you have ever updated Concrete through the dashboard, the directory is going to be in the updates/ directory and will likely be the most recently modified directory or the directory with the latest version in the name. If you are unsure, check the value of the core key in application/config/update.php which should match the name of one of the directories.

    If you have never updated through the Dashboard, then the directory is probably concrete/.

  2. Within the directory identified in the previous step, find the following file: concrete/controllers/single_page/dashboard/system/update/update.php.
  3. Make the following 3 changes described here:

    Line 120: change $file = uniqid(time(), true) . '.zip'; to
    $file = uniqid(time(), true);
    Line 124: change RequestOptions::SINK => $location . '/' . $file, to RequestOptions::SINK => $location . '/' . $file . '.zip',
    Line 138: change $ar->install($location . '/' . $file); to
    $ar->install($file);

  4. Go to the Dashboard > System & Settings > Update Concrete and select "Install Update".

manually download the update

  1. Download the latest version of the Concrete core here: https://www.concretecms.com/latest.zip.
  2. Unzip the archive into the updates/ directory.
  3. Either delete application/config/update.php or change the value of the core key inside of that file to match the name of the directory that you just decompressed in the updates/ directory.
  4. Go to the Dashboard > System & Settings > Update Concrete and select "Install Update".
Recent Tutorials
Configure Composer to work with a Page Type
Feb 20, 2025
By myq.

Fix the "Unable to load block into composer. You must edit this content from within the context of the page." error message

Restoring deleted pages using advanced search
Jan 16, 2025
By myq.

How to recover deleted pages when there are more than a few to choose from.

How to Automate the Copyright Year
Dec 27, 2024

Learn how to keep your website's copyright year updated automatically in Concrete CMS.

How to change the path of a group of pages
Dec 23, 2024
By myq.

Change the canonical path without breaking things

Bi-directional Express associations
Dec 18, 2024
By myq.

Set up associations between Express entries in both directions

Display Express Data Across Multiple Sites
Dec 17, 2024
By myq.

A guide to configuring Express entities and the Express Entry List block to ensure proper data display across multiple sites.

Improvements?

Let us know by posting here.