Closed (fixed)
Project:
File (Field) Paths
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2009 at 12:08 UTC
Updated:
16 Feb 2009 at 00:50 UTC
When saving the settings of a filefield in 'Manage fields' / Configure, I get the following error:
user warning: Column count doesn't match value count at row 1 query: INSERT INTO filefield_paths (type, field, filename, filepath, filealias) VALUES (...) in filefield_paths/filefield_paths.module on line 281.
The following mini-patch seems to fix this here:
db_query(
- "INSERT INTO {filefield_paths} (type, field, filename, filepath, filealias) VALUES ('%s', '%s', '%s', '%s')",
+ "INSERT INTO {filefield_paths} (type, field, filename, filepath, filealias) VALUES ('%s', '%s', '%s', '%s', '%s')",
$ffp['type'], $ffp['name'], serialize($settings['filename']), serialize($settings['filepath']), serialize($settings['filealias'])
);
Comments
Comment #1
Docc commentedConfirmed. Both the bug and solution
Comment #2
decipheredYes, this has been a known issue for a ridiculous amount of time, but I haven't had any time to dedicate to module development.
Will push out fix tonight.
Comment #3
decipheredCommitted to HEAD
Comment #4
decipheredCommitted to DRUPAL-5