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
Lupo777
View Best Answer
mlocati replied on at Best Answer Permalink Reply
mlocati
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
Lupo777
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
surefyre
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
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:
$option->setDisplayOrder(count($optionList));

To:
$option->setDisplayOrder(count($optionList->getOptions()));


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
mlocati

concrete5 Environment Information

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

# concrete5 Packages
C5DK Blog (8.3.1.4), EU Cookie Law (1.0.0.4), 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
Apache

# Server API
cgi-fcgi

# PHP Version
7.1.15

# 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