Package installation error.

Permalink 1 user found helpful
I am installing a package and i am getting below error. Please help me.

Cannot use Concrete\Core\Foundation\Object as Object because 'Object' is a special class name

View Replies:
Gondwana replied on at Permalink Reply
Gondwana
This may be because a recent version of php now uses 'Object' as a reserved word in the language. You could try using an earlier version of php.

Alternatively, I think this issue has been addressed in recent builds of c5, but I'm not sure which version, or even whether it has been released yet.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Gondwana

Here is the pull request you are referring to.
"Dont use Object as class name #5820"
https://github.com/concrete5/concrete5/pull/5820...

The current 8.3.2 version does not use Object.
Gondwana replied on at Permalink Reply
Gondwana
Thanks MrK. :) I knew someone would know.

I guess there's a chance that the package being installed may also need to be updated to avoid trying to use the old c5 Object class.
ettersd replied on at Permalink Reply
I just had this happen, too, and now I can't run Concrete5 at all. Newby here - what is my next course of action?
weyboat replied on at Permalink Reply
weyboat
More info required.
What version of concrete5 are you using.
What php version is your host running on your server.
What error messages are you seeing.
ettersd replied on at Permalink Reply
Thanks for the quick reply.

Concrete5 - 8.4.2
PHP - 7.2.8
The error "Cannot use Concrete\Core\Foundation\Object as Object because
'Object' is a special class name"

In my case, I was downloading a new theme when it happened. Since writing
this first message, I found and deleted subfolder with that theme in it and
Concrete was able to run again.

On Sat, Sep 22, 2018 at 5:00 PM concrete5 Community <
[email protected]> wrote:
Gondwana replied on at Permalink Reply
Gondwana
Going back to php 7.1 will be the quickest fix.
Gondwana replied on at Permalink Reply
Gondwana
Deleting a folder without first uninstalling the theme from within c5 may have left corruption in your database. To avoid possible problems associated with this, I recommend rolling back to a backup copy of your site.
weyboat replied on at Permalink Reply
weyboat
Well done for figuring it out..
Which theme was it that caused the error?
ettersd replied on at Permalink Reply
Thanks. The theme I tried to install was Supermint 3, v.3.4.1.3. Once I
was able to get concrete running again, it gave me the option to uninstall
Supermint.

I will go ahead and roll-back anyway. I’m so early in my development that
I could start completely over with little to lose.

On Sun, Sep 23, 2018 at 1:03 AM concrete5 Community <
[email protected]> wrote: