Version 8.3.2 doesn't work with PHP 7.2

Permalink 0 0 Browser Info Environment
An unexpected error occurred.

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

Temporary solution: Rollback to PHP 7.1

Status: New
View Best Answer
mlocati replied on at Best Answer Permalink Reply
concrete5 8.3 should be compatible with PHP 7.2.
The problem is that you may have a 3rd party package that's not compatible with PHP 7.2.

To know which is the affected package, search for the text Object (whole word) in the packages folder, and contact the package author asking to fix this issue.
senia replied on at Permalink Reply
From the concrete5 backend, under environment, the php section says 7.1. That should not be if we are using 8.3. So I dont think it has anything to do with a 3rd part app
Lupo777 replied on at Permalink Reply
You were right! It was a 3rd party package that was not compatible with PHP 7.2.
Thanks for the hint!
Petersewell replied on at Permalink Reply
Sorry to sound thick but how do I search through my packages to find which add-on is causing this error? I'm quite new to concrete5.

Many thanks
surefyre replied on at Permalink Reply
Just turn on the full debug output from the system settings, you should find an error in the stack on the left hand side with a path to an addon which is your smoking gun
DKPatel replied on at Permalink Reply 1 Attachment
Hi mlocati.
I have faced this error in concrete5 8.4.3 with php version 7.2 , please see attached image
mlocati replied on at Permalink Reply
@DKEarthman Your issue is not in the concrete5 itself, it's a problem of your "HostingManagementCenter" package.
You have to replace the line
use Concrete\Core\Fundation\Object,

With this line
use Concrete\Core\Foundation\ConcreteObject,

and replace all the references to Object with ConcreteObject in the same file
DKPatel replied on at Permalink Reply
Yea thanks, that's work
bleenders replied on at Permalink Reply
I'm pretty sure 8.3.2 is not completely compatible with PHP 7.2.
I ran in to trouble with the select attribute.

Exception Occurred: /var/www/DOMAIN/public_html/concrete/attributes/select/controller.php:305 count(): Parameter must be an array or an object that implements Countable (2)

I had to override select attribute controller and change line 306 from:


This impacts the Tags and Tops block as far as I know. I ran in to trouble when placing either of those blocks on the clipboard.
mlocati replied on at Permalink Reply
coderrathore replied on at Permalink Reply
I am new in this. i am getting this error which is mention in below.

Please check me to solve this issue.

Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/fs2/30/tasopinn/public_html/concrete/libraries/object.php on line 3

Thank you.
bleenders replied on at Permalink Reply
That's a path of a 5.6 installation. You cannot use PHP version 7.2 on Concrete 5.6. I think you should revert back to PHP 5.6 if you plan to keep using Concrete 5.6.
mlocati replied on at Permalink Reply
This is not a bug of concrete5 8.3.2: reading your error message, from "concrete/libraries/object.php" it seems you are using concrete5 5.something, which is the legacy version of concrete5.

In order to run concrete5 5.6 with PHP 7+, see
coderrathore replied on at Permalink Reply
Hello Every one,

Fatal error: Cannot use 'Object' as class name as it is reserved in /var/www/fs2/30/tasopinn/public_html/concrete/libraries/object.php on line 5

Please check the screenshot:

How can i update the version without lost the data.

Thank you
mlocati replied on at Permalink Reply

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
C5DK Blog (, EU Cookie Law (, ExchangeCore reCAPTCHA (1.1.1), Form - MailChimp Subscribe (2.0.1), Honest Websites Back To Top (1.0.1), HTML5 Audio Player Basic (2.0.5), Login Notification (0.9.1), PDF Viewer (1.0.1), Touch Gallery 3 (3.0.3)

# concrete5 Overrides
blocks/touch_gallery/templates/lupo/css/touch-gallery.css, blocks/touch_gallery/templates/lupo/css, blocks/touch_gallery/templates/lupo/view.php, blocks/touch_gallery/templates/lupo/js/touch-gallery.js, blocks/touch_gallery/templates/lupo/js, blocks/touch_gallery/templates/lupo/images/194.png, blocks/touch_gallery/templates/lupo/images/preloader.gif, blocks/touch_gallery/templates/lupo/images/sprites.png, blocks/touch_gallery/templates/lupo/images, blocks/touch_gallery/templates/lupo, blocks/touch_gallery/templates, blocks/touch_gallery

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software

# Server API

# PHP Version

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 10000
memory_limit - 128M
post_max_size - 200M
sql.safe_mode - Off
upload_max_filesize - 200M
mysqli.max_links - Unlimited
mysqli.max_persistent - 0
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36