Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Custom System Messages - PHP 8.2 Error
Status | Resolved |
Add-on / Version | Custom System Messages 3.0.6 |
Severity | |
EE Version | 6.4.16 |
Boiler Room Digital
Apr 04, 2024Trying to update a site ready to run on PHP 8.2 (client’s host charges fees for legacy PHP versions). Works fine on PHP 8.1, but on 8.2 I see the following errors (See below). Would be great if this add-on could be updated, if it’s still needed…
Thanks.
Deprecated
Creation of dynamic property System_messages_ext::$cache is deprecated
user/addons/system_messages/ext.system_messages.php, line 621
Severity: E_DEPRECATED Deprecated
Creation of dynamic property System_messages_ext::$global_settings is deprecated
user/addons/system_messages/ext.system_messages.php, line 51
Severity: E_DEPRECATED Deprecated
Creation of dynamic property System_messages_ext::$settings is deprecated
user/addons/system_messages/ext.system_messages.php, line 55
Severity: E_DEPRECATED Deprecated
Creation of dynamic property System_messages_ext::$cache is deprecated
user/addons/system_messages/ext.system_messages.php, line 621
Severity: E_DEPRECATED Deprecated
Creation of dynamic property System_messages_ext::$global_settings is deprecated
user/addons/system_messages/ext.system_messages.php, line 51
Severity: E_DEPRECATED Deprecated
Creation of dynamic property System_messages_ext::$settings is deprecated
user/addons/system_messages/ext.system_messages.php, line 55
Severity: E_DEPRECATED
BoldMinded (Brian)
Try downloading 3.0.6, I’ve been sitting on that release for too long. Just pushed it live.
Boiler Room Digital
Hello - thanks. Is it on the EE website as well? Or just on your site? I already have 3.0.6 (donwloaded from EE website this afternoon before your reply) but maybe something strange has happened with the numbering?
BoldMinded (Brian)
Both sites should have the same version.
Boiler Room Digital
Thanks - I just downloaded again from EE site. This was the version I installed this afternoon - still creating the errors. For me, a fix is to include
[\AllowDynamicProperties]
on line 38, but I don’t know if that is an appropriate fix - it does suppress the errors in PHP 8.2 though.
BoldMinded (Brian)
I’m running 8.2 and after a quick test I don’t get any errors, everything works fine.
BoldMinded (Brian)
In the version you downloaded is this what the beginning of the class file looks like?
Boiler Room Digital
Hi thanks for your help. It doesn’t start like that, no - it starts like this:
class System_messages_ext {
This is what I downloaded from the EE store this morning (same as yesterday). It’s labelled up as version 3.0.6, but doesn’t seem the same as what you’re showing and describing as 3.0.6. Should it be 3.0.7.
I added my license to your site, but can’t see how to download from here.
Thanks.
BoldMinded (Brian)
Comment has been marked private.
Boiler Room Digital
Thanks - that seems to have worked well. No errors. Great! Thanks.