When uninstalling linkchecker 2.6 from Drupal 6, I get a php error along the lines of: "Missing argument 2 for variable_get()" for bootstrap.inc (Sorry, fixed it before copying the whole error...)

Looking at issue: http://drupal.org/node/113946 helped trace down the issue to a line in the linkchecker.install file.

On line 35:

variable_get('linkchecker_check_connections_max');

Needs to have NULL added to it to get rid of the error.

variable_get('linkchecker_check_connections_max',NULL);

I don't know the first thing about programming to know if this has other implications, but I do know it gets rid of the error on uninstall.

Comments

hass’s picture

Version: 6.x-2.6 » 7.x-1.x-dev

Need to be "del" for delete, not "get".

hass’s picture

Title: Uninstall Linkchecker D6 "Missing argument 2 for variable_get()" » Uninstall of 'linkchecker_check_connections_max' variable fails
philsward’s picture

So line 35 should actually be:

variable_del('linkchecker_check_connections_max');

I thought it was odd to have the "get" in among the "delete" but figured there was a reason for it :-)

hass’s picture

Status: Fixed » Closed (fixed)

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