Themes installation failure : 'Object' is a special class name

Permalink
Hello,
I'm a new user of Concrete5.
When I install a theme (Supermint3, Anitya) via "Get more themes" or via file transfer in "package". All installations failed and sites crashed. Error : "Cannot use Concrete\Core\Foundation\Object as Object because 'Object' is a special class name".
Concrete5 8.4.2., PHP 7.2.
Thank you.
Laurent, France.

 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
'Object' is used by PHP 7 and is 'reserved' for that purpose.
What you can do is roll back your PHP version to one before PHP 7, perhaps PHP 5.
Or you can trace the errors (usually in the controller file) and change Object to ConcreteObject in the line that throws the error..
mnakalay replied on at Permalink Reply
mnakalay
Actually that is not totally correct. You just need to roll back to a PHP version before 7.2. Any 7.1.x will do.

Or you can update C5 to 8.4.3 which will work with your version of PHP.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Yes you are correct @mnakalay, PHP 7.1 would be sufficient..
mlocati replied on at Permalink Reply
mlocati
You have two options: use PHP 7.1 or upgrade concrete5 to version 8.4.3 (older concrete5 versions are non compatible with php 7.2+).
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
But his problem is not concrete but the two themes he has tried Supermint3 and Anitya (if I understood his post correctly)
EDIT
Also 8.4.2 runs on PHP 7.2
mnakalay replied on at Permalink Reply
mnakalay
@weyboat you are totally correct I didn't read the question correctly.

So either switch to PHP 7.1.x
OR
modify the theme and everywhere it says
use Concrete\Core\Foundation\Object;

replace with
use Concrete\Core\Foundation\ConcreteObject;

Normally I wouldn't advise that solution but those 2 themes seem totally abandoned and were switched to free a while ago so they are probably not going to be updated ever again.

Having said so, I keep hearing they have problems with C5 latest version anyway so I am not even sure it is a good idea to use them at all.
laurentkzk replied on at Permalink Reply
Thank you for replies.
I moved back to PHP 7.1 and installed a premium theme (Amplica). It runs.
Laurent