Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I received this error after updating to 7.x-2.7:
Fatal error: Call to undefined function language_url_split_prefix() in /home/mysite/sites/all/modules/pathologic/pathologic.module on line 316
This resulted in the website being broken and a WSOD. After downgrading to 7.x-2.6 all was fine again.
Comments
Comment #1
Garrett Albright CreditAttribution: Garrett Albright commentedCrap, that's bad. I assumed that was a core function that was always available, but I guess that's not the case. Thanks for the heads-up; I'll try to get a fix release done within a couple of hours.
Comment #2
Garrett Albright CreditAttribution: Garrett Albright commentedOkay, just made a 2.8 release which should fix this problem. Again, thanks for bringing it to my attention.
Comment #3
Garrett Albright CreditAttribution: Garrett Albright commentedWhoops, wrong status.
Comment #4
caktux CreditAttribution: caktux commentedStill getting the same error on line 317 and the locale module is enabled. I suppose language.inc must be included manually.
Comment #5
eule CreditAttribution: eule commentedhi
Fatal error: Call to undefined function language_url_split_prefix() in ./sites/all/modules/pathologic/pathologic.module on line 317
i update it today from 2.7 to 2.8 and get this error. i have a fresh site and get this error under admin/content
Comment #6
eule CreditAttribution: eule commentedstatus change ;) ..i mean is not fixed yet
Comment #7
Garrett Albright CreditAttribution: Garrett Albright commentedArg, well, I can't replicate that file not being included when Locale is enabled, but I'll force it to be required anyway. 7.x-2.9 forthcoming; please give it a try and report back.
Comment #8
eule CreditAttribution: eule commentedHi,
after updating to 2.9 the error is not gone Fatal error: Call to undefined function language_url_split_prefix() in ./sites/all/modules/pathologic/pathologic.module on line 320
the whole site works i mean only if i try to visit admin/content the error appears. but i am not sure haven't mutch tested
Comment #9
bago CreditAttribution: bago commentedSame problem here on most search_api views page, also with 2.9
To temporarily fix the issue I changed this line:
I have many caching options enabled and performance modules enabled.
Maybe you have to explicity load the module (module_load_include) in order to use that method...
Comment #10
ioanmar CreditAttribution: ioanmar commentedI was getting the same exact error after updating pathologic module to 2.9. Replacing that line according to #9 fixed the issue. Thank you bago.
Comment #11
Garrett Albright CreditAttribution: Garrett Albright commentedNow that's just crazy talk. We're require_once-ing the file that defines that function right before calling it; there's no possible way an undefined function error could be happening in 7.x-2.9. (But then again, there was no way it could be happening in 7.x-2.8, either, but now I'm sure of it.) Does anyone know what's going on here?
Comment #12
Garrett Albright CreditAttribution: Garrett Albright commentedWait, I'm a dumbass. The function is in language.inc, not locale.inc, despite this all having to do with the Locale module. So I'm require_once-ing the wrong file.
Drama sigh. 7.x-2.10 forthcoming.
Comment #13
hass CreditAttribution: hass commented2.10 is out.