$path = field_file_urlencode_path($file['filepath']);
$thumb_path = field_file_urlencode_path($thumb_path);

I am currently commenting those lines out of the module because they are stopping my pages from loading.

Line 349 is the first occurrence. Where should it be getting this function from?

Comments

interestingaftermath’s picture

Priority: Normal » Major
quicksketch’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Fixed

You need to upgrade to FileField 3.9 at the same time.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

frosty29’s picture

I just had this problem on a new site - moved DB to live server from test and forgot to alter the file paths for uploaded images & files in the SQL dump. When I fixed the paths and reuploaded all was well. Seems a little odd that imagefield, in looking for a non-existant image path, can't find a function? No time to investigate here, it's fixed for me!

ñull’s picture

Version: 6.x-3.9 » 6.x-3.10
Category: support » bug
Status: Closed (fixed) » Active

I have also filefield 3.10 installed. Same issue again.

quicksketch’s picture

Category: bug » support

You probably have an old copy of FileField lying around in your modules directory somewhere that Drupal is finding instead of the 3.10 version you intend for Drupal to use. Double-check by looking at the "system" database table and check what path Drupal has set for the filefield entry. There's probably a copy on your system that you don't expect. Delete that copy and then visit the modules page for Drupal to automatically rediscover the new copy.

adixon’s picture

Category: support » bug

[my bad: you were talking about 3.10 for filefield, I see - that solved the problem - AD]

Well, I just had this issue, and to be sure, just checked out fresh copies of 6.x-3.10 via both git and via tarball and the call to that function really is in the .module file (twice).

So I think this is still a bug.

In my case, it seems to be trying to deal with old failed file uploads, so I suspect it's not something that comes up frequently, but it'd still be nice to fix it (e.g. it's blocking my cron run and drush commands).

adixon’s picture

Category: bug » support
Status: Active » Closed (fixed)

Brain failure, my issue.

mandavya’s picture

hi adixon,

what is the correction to be made in line 348 of .module file

i.e.

// Match the default value if no file extensions have been saved at all.
if (!isset($field['widget']['file_extensions'])) {
$field['widget']['file_extensions'] = 'txt';
}

thanx in advance,

Raju

Larrykupar Marwein’s picture

Call to undefined function: field_file_urlencode_path..this error occurred.. Someone help me!!!!