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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ac created an issue. See original summary.

dgtlmoon’s picture

+1 here

toomanypets’s picture

toomanypets’s picture

toomanypets’s picture

Status: Active » Needs review
ac’s picture

Status: Needs review » Reviewed & tested by the community

Works

pifagor’s picture

Version: 7.x-2.5 » 7.x-2.x-dev
Status: Reviewed & tested by the community » Needs review
FileSize
681 bytes

I think we can move the constant XMLSITEMAP_BATCH_LIMIT

alex_optim’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

pifagor’s picture

  • pifagor committed f097fd2 on 7.x-2.x
    Issue #2996092 by toomanypets, pifagor, ac, dgtlmoon, alex_optim: Use of...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed
howdytom’s picture

Thank you, pifagor! #7 patch works for me too. Well done. Error message disappears.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.