- Issue created by @hswong3i
- Status changed to Needs review
4 months ago 10:43am 9 August 2024 - 🇮🇳India sarwan_verma
Hi ,
I have resolved the " Deprecated function" issue and also attached patch ,
please review and verify.
thanks! - Status changed to Needs work
4 months ago 4:40pm 14 August 2024 - 🇺🇸United States japerry KVUO
This is not an issue with memcache, and the patch in #4 is not correct, as $memcache is already defined in DriverBase. Not closing the issue yet, because there -might- be a problem with how we're caching object classes (stripping their definitions).
- 🇺🇸United States Chris Burge
I'm running into the same notice in the issue description, and it's filling the logs every request. I can't explain it, but patch #4 fixes it. No more notices.
- 🇺🇸United States Chris Burge
I spoke too soon. I don't believe Memcache is at fault.
The
SectionComponent
class has never had athirdPartySettings
property. It is proposed in ✨ Support third party settings for components within a section Needs work ; however.@hswong3i has your site previously run a patch from ✨ Support third party settings for components within a section Needs work ?
When a Layout Builder component is serialized for storage, it includes properties from its
SectionComponent
object. If a site is patched to add third-party settings to to LB components and that patch is later removed, you'll get the notice you posted. This is the same error without Memcache enabled:Deprecated function: Creation of dynamic property Drupal\layout_builder\SectionComponent::$thirdPartySettings is deprecated in Drupal\Component\Serialization\PhpSerialize::decode() (line 21 of /var/www/html/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php)
I suspect if you search the database, you'll find orphaned
thirdPartySettings
properties inside serializedSectionComponent
objects.