Closed (fixed)
Project:
ImageField
Version:
6.x-3.10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2010 at 19:56 UTC
Updated:
27 May 2012 at 08:00 UTC
$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
Comment #1
interestingaftermath commentedComment #2
quicksketchYou need to upgrade to FileField 3.9 at the same time.
Comment #4
frosty29 commentedI 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!
Comment #5
ñull commentedI have also filefield 3.10 installed. Same issue again.
Comment #6
quicksketchYou 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.
Comment #7
adixon commented[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).
Comment #8
adixon commentedBrain failure, my issue.
Comment #9
mandavya commentedhi 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
Comment #10
Larrykupar Marwein commentedCall to undefined function: field_file_urlencode_path..this error occurred.. Someone help me!!!!