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.
Hello,
After saving node with file upload field, this error messages shows in a white screen:
Fatal error: Call to undefined function _pathauto_include() in /home/abc/public_html/base/sites/all/modules/filefield_paths/filefield_paths.module on line737
File is uploaded, node is saved.
Other info: use latest releases of File Aliases 6.x-1.1, Pathauto 6.x-2.x-dev, Drupal 6.17
Comment | File | Size | Author |
---|---|---|---|
#7 | filefield_paths.module.patch | 417 bytes | tomgf |
#8 | filefield_paths-wsod-877578.3313960.patch | 417 bytes | tomgf |
Comments
Comment #1
Dave ReidIt's bad form to rely on an private module function (functions that start with an underscore). You should use module_load_include('inc', 'pathauto') instead.
Comment #2
basicmagic.net CreditAttribution: basicmagic.net commentedi tried the suggested fix- to filefield_paths.module...
simple... just the one line
find:
replace with:
and it works perfectly
thanks dave!
Comment #3
tcibah CreditAttribution: tcibah commentedThanks Dave & basicmagic.net. Will try that fix in few days. Now we just disabled that module.
Comment #4
Starminder CreditAttribution: Starminder commentedsubscribe
Comment #5
mattcasey CreditAttribution: mattcasey commented#2 Worked for me too thanks!
Comment #6
rootworkThis works for me as well.
Comment #7
tomgf CreditAttribution: tomgf commentedI have created a patch to solve this issue.(see next comment where the same patch with a proper name is attached)
Comment #8
tomgf CreditAttribution: tomgf commentedSorry about the double post but I have renamed the patch according to Drupal guidelines.
Comment #9
giorgio79 CreditAttribution: giorgio79 commented+1, can we get this committed please? :)
Comment #10
flickerfly CreditAttribution: flickerfly commentedThis patch worked like a charm, would appreciate having it committed.
Comment #11
flickerfly CreditAttribution: flickerfly commentedAlso, this is a blocker issue for the rcourier module.
Comment #12
rootworkRTBC!
Comment #13
Deciphered CreditAttribution: Deciphered commentedThis will be fixed in the upcoming 2.x release.
I may also consider fixing it in the 1.x releases, but no guarantee.
Apologies for the inconvenience, it is a side effect of using a modules non-API functions, in a perfect world Pathauto would be the module extending FileField Paths functionality with a FileField Paths API function, which will be possible in the 2.x release.
Cheers,
Deciphered.
Comment #14
asb CreditAttribution: asb commentedThis issue became virent for me for the first time after upgrading to alpha3 of 'Pathauto'. (Duplicate) issue: #935948: Call to undefined function _pathauto_include()
I'd also like to see this fixed in the current Filefield Paths release!
Thanks, -asb
Comment #15
j0nathan CreditAttribution: j0nathan commentedSame issue, subscribing.
Comment #16
Fidelix CreditAttribution: Fidelix commentedThe can also confirm that the patch fixes the issue.
IMHO, this has to be fixed ASAP in the current module version.
Comment #17
Deciphered CreditAttribution: Deciphered commentedCommitted to DRUPAL-6--1: http://drupal.org/cvs?commit=434406
Comment #18
Deciphered CreditAttribution: Deciphered commentedAs a side note, there is a very high chance that Pathauto support will be scrapped in 6.x-2.x and and further official 6.x-1.x builds in favor of CTools, which provides an official approach to clean strings instead of relying on a private function that could be altered at any time (as per this issue).
Comment #20
benford CreditAttribution: benford commentedThanks for posting here folks! I can confirm that the solution proposed by basicmagic.net, solved my problem perfectly. I was facing an error encountered post image upload, in the exact manner as described by the original poster.
The only problem is that I encountered this bug in 6.x-1.4, after the patch had been committed. Any thoughts?
Comment #21
gg4 CreditAttribution: gg4 commented...I encountered this bug in 6.x-1.4
Subscribing
Comment #22
cookiesunshinex CreditAttribution: cookiesunshinex commentedI'm also getting the error in 6.x-1.4
Comment #23
EgbertB CreditAttribution: EgbertB commentedSame here: Patch not in the 6.x-1.x whatever
Mayb eit is in the dev version: Is it production ready?
Comment #24
mattcasey CreditAttribution: mattcasey commentedJust checked and the 1.x dev version includes the patch, but 1.4 does not.
Comment #25
roball CreditAttribution: roball commentedThe fix is now officially available in version 6.x-1.5.
Comment #26
asb CreditAttribution: asb commentedThanks!