Hi

When I unisntalling the module, I got the error message to stop me finish.

Error: Call to undefined function xmlsitemap_clear_directory() in xmlsitemap_uninstall() (line 372 of /home/abccom/public_html/sites/all/modules/xmlsitemap/xmlsitemap.install).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

freelylw created an issue. See original summary.

jigish.addweb’s picture

Status: Active » Needs review
FileSize
477 bytes

@freelylw, Here's the patch to resolve the error that occurs on module uninstall. Hope this helps you!. Thanks

riddhi.addweb’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
63.89 KB
38.4 KB

@jigish.addweb, Thanks for providing a patch, I checked it using simplytest.me & got the same error without a patch, using your patch I found that issue is resolved. PFA

Thanks for all your work!...

voleger’s picture

Looks good! Thanks

alex_optim’s picture

+1

pifagor’s picture

  • pifagor committed b60d230 on 7.x-2.x authored by jigish.addweb
    Issue #3020270 by jigish.addweb, riddhi.addweb, freelylw, alex_optim,...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed
jacob.embree’s picture

The only reason xmlsitemap_clear_directory() might not exist is if xmlsitemap.module hasn't been loaded. The very next line loads xmlsitemap.module, so why not load xmlsitemap.module first, then run xmlsitemap_clear_directory(), then remove variables?

Status: Fixed » Closed (fixed)

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

ciss’s picture

I have to agree with @jacob.embree, the committed changes only patch the symptoms, not the cause. The patch in #9 would be in line with the original intent.

@jacob.embree If this issue doesn't get reopened, do you feel like creating a follow-up?

jacob.embree’s picture

Sure, ciss. Here it is: #3086542: Clean up uninstall routine.

pifagor’s picture

Status: Closed (fixed) » Needs work
pifagor’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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