Closed (fixed)
Project:
Multi-Language Link and Redirect (MultiLink)
Version:
7.x-2.8
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2012 at 00:39 UTC
Updated:
9 Feb 2012 at 18:36 UTC
Steps I did:
But, you should be able to reproduce by *only* enabling Multilink by itself.
Error:
Fatal error: Call to undefined function _multilink_filter_default_settings() in /var/www/i18n/sites/all/modules/contrib/multilink/multilink.module on line 326
It is not easy to recover from the error, even by manually by disabling the Multilink module or enabling the Multilink Filter module back on via the database (because their statuses are cached). You can remove the multilink directory completely from the modules directory though.
The fix is to check that the function exists before calling it since the Multilink module is not dependent on the Multilink Filter module. Patch is attached. The alternative is to make the modules dependent on each other.
| Comment | File | Size | Author |
|---|---|---|---|
| multilink.module.patch | 403 bytes | kristen pol |
Comments
Comment #1
andy inman commentedThanks for that - I obviously missed it when coding the D7 version (in D6 the core and filter functionality were in the same module.) Your patch will fix it, but looking at the code I can see it would be better to restructure to keep the default settings in the relevant module only.
Comment #2
kristen polOk, sounds good, thanks!
Kristen
Comment #3
andy inman commentedNow implemented in dev, will be in release 2.9. Thanks for your help.
Comment #4
kristen polThanks!
Kristen