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: Deprecation error report when running with php 8.1
Status | Resolved |
Add-on / Version | Publisher 3.8.2 |
Severity | |
EE Version | 6.4.5 |
Gavin @ JCOGS
Feb 08, 2023When running under php 8.1.14 am seeing this deprecation error reported:
Deprecated
Automatic conversion of false to array is deprecated
user/addons/publisher/legacy/models/publisher_site_pages.php, line 1219
Severity: E_DEPRECATED
It might have been fixed in more recent version, but nothing about this in Changelog.
BoldMinded (Brian)
Feb 08, 2023
Can you try changing lines 1215 and 1217 to this?
Gavin @ JCOGS
Feb 08, 2023
Yep - that would clear the deprecation error, but unfortunately triggers an exception a couple of lines later ... ;(
BoldMinded (Brian)
Feb 08, 2023
I guess try wrapping that merge line with this conditional
BoldMinded (Brian)
Feb 14, 2023
Gavin did the suggested change resolve the issue for you?
I’m going to go ahead and close this ticket. If that change didn’t resolve the issue please feel free to re-open it.
Gavin @ JCOGS
Mar 04, 2023
So I changed the block of code in the create_page_uri_vars() function thusly (which I *think* is what you suggested…
This removes the first issue, but generates a new one ... this deprecation warning:
where line 1223 is
Bit of 8.1 whack-a-mole to go I guess.
This using publisher-3.9.1-develop-84169571 build.
BoldMinded (Brian)
Mar 08, 2023
Change line 1215 to this
$pageUriVars = $this->cache->get(‘page_uri_vars’) ?: [];
instead of this
$pageUriVars = $this->cache->get(‘page_uri_vars’) ?? [];
Should fix it.
Gavin @ JCOGS
Mar 08, 2023
Super - that’s sorted it. Thanks.