# Failed update 8.4.4 -\> 9.2.8 + deleted folder in updates directory

**URL:** <https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345>\
**Category:** Installation\
**Created:** [May 5, 2024, 6:04pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345 "2024-05-05T18:04:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 6:04pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/1 "2024-05-05T18:04:06Z")

</div>

Unfortunately I cannot report what I’ve done exactly but my original endeavor was to update from 8.4.4 to 9.2.8.

- I put the 9.2.8 package to the `updates` folder and removed all directories except for the `concrete` directory in the extracted folder I got.
- **stupidly, I also deleted the two folders of some older upgrades** (they were named something along the lines of `concrete5-<version>_remote_updater`, not completely sure)
- Then I changed the referenced `core` in `application/config/update.php` from the (now deleted) directory to `concrete-cms-9.2.8`.
- When I tried to update, I got a message that my php version was too old so I changed it from my provider’s control panel to php 7.4
- After that I got some error saying the `base_dir` restriction was active and since it seemed to have something to do with the memcached caching method I changed that to `filesystem` on my provider’s control panel.
- Then I got some errors apparently related to missing columns in the mysql db:

```auto
 Doctrine \ DBAL \ Exception \ InvalidFieldNameException
An exception occurred while executing 'SELECT t0.siteID AS siteID_1, t0.pThemeID AS pThemeID_2, t0.pThemeSkinIdentifier AS pThemeSkinIdentifier_3, t0.siteIsDefault AS siteIsDefault_4, t0.siteHandle AS siteHandle_5, t0.siteTypeID AS siteTypeID_6 FROM Sites t0': SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.pThemeSkinIdentifier' in 'field list'
Previous exceptions

    SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.pThemeSkinIdentifier' in 'field list' (42S22)
    SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.pThemeSkinIdentifier' in 'field list' (42S22)

```

Now I can’t access my site, let alone the control dashboard anymore. I learned after the fact I shouldn’t have deleted the folders in the `updates` directory.

I then tried to extract a 8.4.4 package to the `updates` directory (and referenced it in `update.php`) in the hopes of getting my installation to work again. I had to change some `continue` statements to `continue 2` in some obscure file, after which I arrived at this error (`application/config/doctrine/proxies/ __CG__ ConcreteCoreEntityFileFile.php:9`):

```auto
Whoops \ Exception \ ErrorException (E_WARNING)
Declaration of DoctrineProxies\ __CG__ \Concrete\Core\Entity\File\File::delete() should be compatible with Concrete\Core\Entity\File\File::delete($removeNode = true)

```

So my question is – am I screwed? Is my site lost or in an unrecoverable state (I spent quite some time customizing the Elemental theme to my requirements)? If not, is there a way to actually get it to update to 9.2.8, or at least back to 8.4.4 or the latest version in the 8 series?

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:17pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/2 "2024-05-05T18:17:41Z")

</div>

You can’t go direct from 8.4.x to v9. The update path would be in 2 steps from 8.4.x to 8.5.latest. Then 8.5.latest to 9.2.latest.

As these are big steps and likely to timeout, best to use the CLI method [How to Upgrade Concrete CMS](https://documentation.concretecms.org/9-x/developers/introduction/upgrading-concrete).

The v8 to v9 update will usually also need to manually fix the character sets for oAuth tables and possibly some Express tables (whether you use them or not). There have been recent forum threads on fixing such.

As for your failed update. There is no easy recovery from where you are at. An experienced developer may be able to hack various files and database tables into shape, but I don’t think anyone can offer a guarantee of success and it is not something that can be done with a few tips through the forums. Best to recover the 8.4 site from a backup and start the process again.

Some of your error messages suggest the theme may not be compatible with v9. So also check theme and addon compatibility and update paths before trying again.

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 6:21pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/3 "2024-05-05T18:21:51Z")

</div>

First off: thanks for the quick reply!  
I also tried to update to 8.5.16 now but I got a different error (`updates/concrete-cms-8.5.16/concrete/vendor/tedivm/stash/src/Stash/Driver/FileSystem/NativeEncoder.php`):

```auto
 Whoops \ Exception \ ErrorException (E_WARNING)
include(<root>application/files/cache/expensive/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/2ddb27c5cdf0b672/745d4c64665be841/50c918ae53514cb2/4443a5f892a089b3.php): failed to open stream: No such file or directory

```

Can I do something about that?

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:24pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/4 "2024-05-05T18:24:43Z")

</div>

Disable all caches in the dashboard before updating. Clear the caches so no ghosts remain. Also put the database entities into development mode. Put the site into maintenance mode so no users get in the way.

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 6:25pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/5 "2024-05-05T18:25:47Z")

</div>

I now got another error (`updates/concrete-cms-8.5.16/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php`):  
´``  
Doctrine \ DBAL \ DBALException  
Unknown column type “datetime\_immutable” requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspection then you might have forgot to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some mapping information.

```auto

```

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:26pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/6 "2024-05-05T18:26:29Z")

</div>

You may be able to get round the error message post-update by manually editing the config to disable the caches and then deleting all sub-directories beneath /cache/

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:27pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/7 "2024-05-05T18:27:26Z")

</div>

The DateTime exception may be because the databse entities are not in development mode

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:29pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/8 "2024-05-05T18:29:53Z")

</div>

Else look back through the forums, the DateTime column type error has shown up on updates for others and I think solutions have been posted.

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 6:30pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/9 "2024-05-05T18:30:29Z")

</div>

Hey, that actually worked! I’m so happy! Thank you!  
I did

```auto
php ./concrete/bin/concrete5 c5:config -g set concrete.maintenance_mode true

```

and just reloaded the page that had shown the error.

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:31pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/10 "2024-05-05T18:31:35Z")

</div>

site maintenance mode is not the same as database entities development mode.

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 6:32pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/11 "2024-05-05T18:32:37Z")

</div>

Still it worked for some reason…  
I wonder whether I should dare to upgrade to 9 now.

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:34pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/12 "2024-05-05T18:34:21Z")

</div>

Test thoroughly at 8.5.latest and make sure what you have is reliable for a few days. Then make a new backup before attempting v9.

Research the oAuth tables issue on the forums.

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 6:41pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/13 "2024-05-05T18:41:41Z")

</div>

I spoke too soon )o: After I logged out and logged back in again, I got

```auto
 Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Doctrine\Common\Proxy\AbstractProxyFactory::getProxyDefinition(): Failed opening required '<root>/application/config/doctrine/proxies/ __CG__ ConcreteCoreEntitySiteType.php' (include_path='<root>/updates/concrete-cms-8.5.16/concrete/vendor:.')

```

> [@JohntheFish](#):
>
> oAuth tables

I’ll do that although it looks like yet some different problem now.

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 5, 2024, 6:42pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/14 "2024-05-05T18:42:48Z")

</div>

> [@JohntheFish](#):
>
> database entities development mode.

You have a classic manifestation of not doing the above

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 6:43pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/15 "2024-05-05T18:43:28Z")

</div>

OK, thanks! I’ll research how to do that.

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 7:17pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/16 "2024-05-05T19:17:02Z")

</div>

> Disable all caches in the dashboard before updating. Clear the caches so no ghosts remain. Also put the database entities into development mode. Put the site into maintenance mode so no users get in the way.

I can’t seem to find a way how to do that from the cli (I cannot log in to my admin account anymore) )o:

All I found was:

```auto
./concrete/bin/concrete5 c5:clear-cache
./concrete/bin/concrete5 c5:entities:refresh

```

When I tried the latter I got:

```auto
                                                                            
  Unknown column type "datetime_immutable" requested. Any Doctrine type th  
  at you use has to be registered with \Doctrine\DBAL\Types\Type::addType(  
  ). You can get a list of all the known types with \Doctrine\DBAL\Types\T  
  ype::getTypesMap(). If this error occurs during database introspection t  
  hen you might have forgot to register all database types for a Doctrine   
  Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your cu  
  stom types implement Type#getMappedDatabaseTypes(). If the type name is   
  empty you might have a problem with the cache or forgot some mapping inf  
  ormation.                                                                 

```

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 5, 2024, 7:23pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/17 "2024-05-05T19:23:03Z")

</div>

This is what I get when I try to log in to the admin account (but I guess that’s a symptom of not having the “database entities in developer mode”):

```auto
An exception occurred while executing 'SELECT t0.iaccID AS iaccID_1, t0.iaccHandle AS iaccHandle_2, t0.iaccName AS iaccName_3, t0.iaccEnabled AS iaccEnabled_4, t0.iaccMaxEvents AS iaccMaxEvents_5, t0.iaccTimeWindow AS iaccTimeWindow_6, t0.iaccBanDuration AS iaccBanDuration_7, t0.iaccSiteSpecific AS iaccSiteSpecific_8, t0.iaccLogChannel AS iaccLogChannel_9, t0.iaccPackage AS iaccPackage_10 FROM IpAccessControlCategories t0 WHERE t0.iaccHandle = ? LIMIT 1' with params ["failed_login"]:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.IpAccessControlCategories' doesn't exist

```

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 6, 2024, 12:07pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/18 "2024-05-06T12:07:44Z")

</div>

As suggested in [Update concrete 8.5.1 to concrete5 9.0.1 - #9 by AsnanBilal01](https://forums.concretecms.org/t/update-concrete-8-5-1-to-concrete5-9-0-1/1981/9) the cache should be disabled and “doctrine/entities” should be put in development mode.

I tried now to put something in development mode but I don’t know whether that is the “doctrine/entities” or “database entities”:

```auto
./concrete/bin/concrete5 c5:config set -g concret
e.cache.doctrine_dev_mode true

```

I grepped for `_dev_mode` and this was the only option I could find.

The values in `application/config/generated_overrides/concrete.php` seem to suggest that caches are disabled and that development mode is enabled:

```auto
'cache' => [
    'blocks' => false,
    'assets' => false,
    'theme_css' => false,
    'overrides' => false,
    'pages' => '0',
    'full_page_lifetime' => 'custom',
    'full_page_lifetime_value' => '0',
    'last_cleared' => 1714931730,
    'themecss' => false,
    'themecsss' => false,
    'doctrine_dev_mode' => true,
],

```

I cleared the cache:

```auto
./concrete/bin/concrete5 c5:clear-cache

```

And I still get the error when logging in:

```auto
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mytableIpAccessControlCategories' doesn't exist

```

And when trying `c5:entities:refresh` `Unknown column type "datetime_immutable" requested.`

I found this thread [IpAccessControlCategories - concrete5](https://archive.concretecms.org/community/forums/chat/ipaccesscontrolcategories/) with the suggestion to set values in a table using an SQL command but that table does not exist, so I tried to create that table but apparently I need to know the data types of the columns which I could guess from the values (bools, ints and strings) except for the last column whose data type I can’t fathom (blob? If so, which size?).

I’m confused/stuck here.

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [May 6, 2024, 12:31pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/19 "2024-05-06T12:31:33Z")

</div>

Do you mean 1 : mytableIpAccessControlCategories  
or 2 : IpAccessControlCategories ?

The first definitely is not a core table. Any code referring to that is erroneous.

The second is a core table. The easiest way to recreate it is to dump the schema for that table from another site (just the schema, not the content) and then import the schema to the site you are updating.

---

<div class="post-metadata">

**Author:** ![lineinthesand](https://forums.concretecms.org/user_avatar/forums.concretecms.org/lineinthesand/32/3495_2.png) [@lineinthesand](https://forums.concretecms.org/u/lineinthesand)\
**Post date:** [May 6, 2024, 6:04pm UTC](https://forums.concretecms.org/t/failed-update-8-4-4-9-2-8-deleted-folder-in-updates-directory/7345/20 "2024-05-06T18:04:22Z")

</div>

I meant 2 (IpAccessControlCategories).  
Unfortunately, I don’t have access to the db of another site.

So it looks like my only option is to try to get hold of a backup of my site from my provider prior to my screw-up.
