Currently there is a bug in xmlsitemap version 2.5. When updating the sitemap using drush you get the following warning:
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

There is already a fixed issue for xmlsitemap: #2996092: Use of undefined constant XMLSITEMAP_BATCH_LIMIT

We should include the used patch as well:
#2996092-7: Use of undefined constant XMLSITEMAP_BATCH_LIMIT

Comments

paulvandenburg created an issue. See original summary.

paulvandenburg’s picture

Status: Active » Needs review
StatusFileSize
new628 bytes

This patch adds the xmlsitemap patch.

paulvandenburg’s picture

We could also just update to xmlsitemap version 2.6 as that contains the mentioned patch.

paulvandenburg’s picture

Update xmlsitemap to 2.6 instead, which contains the fix.

paulvandenburg’s picture

joshahubbers’s picture

Status: Needs review » Reviewed & tested by the community
joshahubbers’s picture

Status: Reviewed & tested by the community » Needs review
joshahubbers’s picture

Rerolled for current dev

paulvandenburg’s picture

Status: Needs review » Reviewed & tested by the community

Patch has been in use for a while, looks good.

  • paulvandenburg committed 83aa17c on 7.x-1.x
    Issue #2998977 by paulvandenburg, JoshaHubbers: Patch xmlsitemap for...
paulvandenburg’s picture

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

Issue summary: View changes

Status: Fixed » Closed (fixed)

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