Undefined Function Error

pikados - April 22, 2009 - 22:03
Project:FileField Paths
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have filefield paths installed on my site, and for a while it worked exactly as I wanted to. I'm OCD about file structure, so this is exactly the module I needed!
However as of a week or two ago I get this error whenever I upload an image through imagefield:

Fatal error: Call to undefined function pathauto_clean_token_values() in /nfs/disk/data/www/httpd-docs/groups/fwclub/sites/all/modules/filefield_paths/filefield_paths.module on line 590

I tried re-installing (about 10 times), re-installing filefield, imagefield and pathauto, and rolling back the filefield path version. I am now using the most recent versions (as of 4/22/09) of all of them.
This is the page I am currently working on: http://oregonstate.edu/groups/fwclub/node/46/
The image does upload, but the path does not use the tokens properly, like it has in the past.

#1

Deciphered - April 22, 2009 - 22:50
Category:support request» bug report

Hi pikados,

When you say you are using the latest versions of everything do you mean latest stable or latest dev?
I guess why I ask is I need to determine exactly which version of Pathauto you are using so I can determine why the function doesn't exist.

Temporary workaround would be to turn off the 'Pathauto cleanup' option for the particular FileField, but as you say you are OCD about the file structure (which is why I created this module :)) then that probably isn't an option.

Let me know and I will continue looking into the issue.

Cheers,
Deciphered.

#2

pikados - April 23, 2009 - 01:09

I could have sworn I tried that, but apparently I didn't.... I was using the dev of pathauto, and switched back to the stable version and it is working again.
Thank you!

#3

Deciphered - April 23, 2009 - 03:20

Hi pikados,

Well that's somewhat good news. I will still have to look into the latest changes with pathauto and find out what alternative function I can hook into.

Cheers,
Deciphered.

#4

pikados - April 23, 2009 - 04:05
Status:active» closed

#5

ggalan1173 - November 12, 2009 - 18:44
Component:Miscellaneous» Code
Status:closed» active

sorry for reopen.
I have the same error, with dev version of file fields paths. Last version of Path auto installed.
I invoked function filefield_paths_process_string in a computed field and the error occurs when user is not admin.

 
 

Drupal is a registered trademark of Dries Buytaert.