Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updating a site using Drush gives the following warning with PHP 7.2
Use of undefined constant XMLSITEMAP_BATCH_LIMIT - assumed 'XMLSITEMAP_BATCH_LIMIT' (this will throw an Error in a future version of PHP) xmlsitemap.drush.inc:33
Comment | File | Size | Author |
---|---|---|---|
#7 | xmlsitemap-undefined_constant-2996092-7.patch | 681 bytes | pifagor |
| |||
#4 | xmlsitemap-undefined_constant-2996092-4.patch | 358 bytes | toomanypets |
|
Comments
Comment #2
dgtlmoon CreditAttribution: dgtlmoon commented+1 here
Comment #3
toomanypets CreditAttribution: toomanypets commentedSee #2939318-3: Updated xmlsitemap.drush.inc causes install to fail on aegir for possible fix.
Comment #4
toomanypets CreditAttribution: toomanypets commentedComment #5
toomanypets CreditAttribution: toomanypets commentedComment #6
acWorks
Comment #7
pifagorI think we can move the constant XMLSITEMAP_BATCH_LIMIT
Comment #8
alex_optimLooks good.
Comment #9
pifagorComment #11
pifagorComment #12
howdytom CreditAttribution: howdytom as a volunteer commentedThank you, pifagor! #7 patch works for me too. Well done. Error message disappears.