Themes installation failure : 'Object' is a special class name
PermalinkI'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.
Or you can update C5 to 8.4.3 which will work with your version of PHP.
EDIT
Also 8.4.2 runs on PHP 7.2
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.
I moved back to PHP 7.1 and installed a premium theme (Amplica). It runs.
Laurent
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..