I get the following warning when I regenerate the sitemap. The error goes away when I comment out the "use StringTranslationTrait;" line in "BatchUrlGenerator.php". The line duplicates the same line in the extended class ("Drupal\simple_sitemap\Batch\BatchUrlGenerator").
Strict warning: Drupal\simple_sitemap\Batch\BatchUrlGenerator and Drupal\Core\StringTranslation\StringTranslationTrait define the same property ($stringTranslation) in the composition of Drupal\domain_simple_sitemap\Batch\BatchUrlGenerator. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in require() (line 319 of modules/contrib/domain_simple_sitemap/src/Batch/BatchUrlGenerator.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | domain-simple-sitemap-batchurlgenerator-strict-warning.patch | 522 bytes | slbrassard |
Comments
Comment #2
slbrassard commentedComment #3
jeni_dc commentedI've tested the patch against 8.x-1.0-rc1 and it's working fine here. The error is removed when generating the sitemap and the sitemaps per domain are generated as expected.
Comment #4
keopxFixed and released new version.
Please: slbrassard, jeni_dcnext next time change issue status :)
Comment #5
keopx.
Comment #7
keopx