Reviewed & tested by the community
Project:
Real-time SEO for Drupal
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 May 2023 at 13:49 UTC
Updated:
6 Nov 2025 at 09:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
yogesh_kambari commentedComment #4
yogesh_kambari commentedI have reviewed the MR and i can see no Drupal alert is coming now.
Comment #5
yogesh_kambari commentedComment #6
wilksdotco commentedPlease ignore, added incorrect diff
Comment #7
wilksdotco commentedComment #8
bramdriesen@yogesh_kambari Please, when doing code reviews also look at the actual code being written. Just testing if the code applies is not sufficient to set an issue to RTBC.
Comment #12
dmytro-aragornComment #13
dmytro-aragornI couldn't push any changes into existing MR so here is a patch with a fix of YoastSeoFieldManager service usage.
Comment #14
socialnicheguru commentedUsing composer to install I get an error:
- Installing drupal/yoast_seo (1.8.0): Extracting archive
- Applying patches for drupal/yoast_seo
https://www.drupal.org/files/issues/2023-07-28/yoast_seo-3362165-depreca... (Deprecated function: Creation of dynamic property Drupal\yoast_seo\YoastSeoManager::$yoast_seo_field_manager is deprecated in Drupal\yoast_seo\YoastSeoManager->__construct() (line 44 of modules/contrib/yoast_seo/src/YoastSeoManager.php).)
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-07-28/yoast_seo-3362165-depreca...
Comment #15
bramdriesen@SocialNicheGuru Patches are for the dev release. Not for the latest stable release. If needed you need to rebase the patch manually in order to resolve the conflicts on that release and export it into a new patch file to use.
Comment #16
socialnicheguru commentedThe dev and the current release have the same release date Dec 16 2022.
I assumed they are the same. I guess not.
Comment #18
cobadger commentedUpdated the merge request to correct YoastSeoManager's definition of the Yoast SEO Field Manager, and to inject additional services per Drupal coding standards.
Comment #19
plachThe changes in the MR make things way cleaner, but they seem out of scope for this issue. I'm attaching a patch with the only change that I think is required to get rid of the warning. It would be good to create a separate issue to clean up service injection.
Comment #20
rajab natshahComment #21
rajab natshahComment #22
rishi.kulshreshthaPatch in comment #19 fixed the issue. Thanks.
Comment #23
fernly commentedNoting that this issue is already fixed in version 2 of this module. However this could still be merged into version 1.x.
Comment #24
jmcintyre commentedCould this please be merged into 1.x? Version 2 is still only in alpha... Many thanks!
Comment #25
arunkumarkVerified the patch is applied to the 1.x version(Tested on the
drupal/yoast_seo 1.9.0version) and the warning was removed after the patch.The latest version 2.x works fine without the warning message.
+RTBC
Comment #26
kburakozdemir commentedDrupal 10.5.4
drupal/yoast_seo (1.9.0)
PHP Version 8.3.23
#19 fixed the issue. thanks.
+RTBC