Error message:

Fatal error: Call to undefined function site_country_country_list() in /home/ned/drupal_nedjo/head/contributions/modules/country_code/country_code.module on line 800

Cause:

country_code_init() is invoked on install, indirectly calling site_country_country_list(), which isn't available because that module hasn't been installed yet.

Comments

nedjo’s picture

catch is going to look into this.

catch’s picture

The dependency is there in the .info, and I was unable to reproduce this. I also had country code enabled and updated before enabling site_country, and that worked too. Then I uninstalled both and re-enabled.

One very odd thing I noticed was that it appears to be possible to disable modules, even if their dependencies aren't disabled. I've not noticed this before in D6, so will try to take a closer look.

Leaving this as active, since testing was inconclusive so far.

nedjo’s picture

Steps to reproduce (so far as I can recall):

* disable both modules
* enable both modules at once

catch’s picture

I tried both checking both checkboxes to enable, and also checking on country code to trigger the "site country must be installed to enable this module" core dependency check. In both cases they enabled fine.

recidive’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this either.

However, I got this once, when I had an old version of country_code module (without site_country dependency) and replace that with the new one and added site_country module. Then I got this error when visiting admin/build/modules, IIRC.

Didn't you get this in the same conditions above, Nedjo? If so, this shouldn't happen again.

Moving to "needs more info".

nedjo’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

@recidive: yes, I think that was what happened. So we can close this.