Revert to previous version of concrete5

i have upraded my concrete 5 to ve 9.1.1 and am now getting a “Cannot use Concrete\Core\Foundation\Object as Object because ‘Object’ is a special class name”

How do I go about clearing this or if I need to revert to an earlier version, how do I do that, thanks

This must be a caching problem because in version 9 the path to that file is Concrete\Core\Foundation\ConcreteObject.php
So try clearing out all caches including your browser cache

I have cleared cahces and still getting the same message. The path in error is Concrete\Core\Foundation\ConcreteObject without the .php if that is any help in solving this.
At teh moment my whole site is down.
I am using php 7.3 if that gives any clues

Try switching your PHP version to 7.4 or PHP version 8.1 (recommended)

Hi, just changed the php to 8.1 , cleared cache and still getting the same

Yeah it is your theme that is trying to access ‘Concrete\Core\Foundation\Object’ on line 7 of packages/theme_supermint/src/Models/ThemeSupermintOptions.php.
If you can edit that file and change Concrete\Core\Foundation\Object
to
Concrete\Core\Foundation\ConcreteObject

Just noticed that line 25 has
“class ThemeSupermintOptions extends Object”
Change that line to
“class ThemeSupermintOptions extends ConcreteObject”

Theme Supermint has not been updated to work on ConcreteCMS Version 9 and I would advise you to switch to a Version 9 compatible theme asap.

If you have access to your hosts control panel, you may be able to restore your files and database from a recent backup.
If you do restore from a backup don’t forget to switch back to your previous php version.

1 Like

I have managed to restore my site thanks. I will need to look into updating from Suermint themem and then upgrading the CMC. Thanks for your help

1 Like