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.
I've upgraded to rc1 following the usual procedure - but now when I try to view the /admin/reports/updates/list or /admin/build/modules/list pages, I get an error:
Fatal error: Cannot redeclare filefield_token_list() (previously declared in /home/adambro3/public_html/cpag/sites/all/modules/filefield/filefield_token.module:7) in /home/adambro3/public_html/cpag/sites/all/modules/filefield/filefield.token.inc on line 29
Comments
Comment #1
awolfey CreditAttribution: awolfey commentedSame here.
Comment #2
awolfey CreditAttribution: awolfey commentedLooks like filefield_token.inc is the the filefield directory and the filefield_token directory. Removing from the first solves the problem.
Comment #3
Junro CreditAttribution: Junro commentedSame error, subscribe.
Comment #4
Junro CreditAttribution: Junro commented@awolfey
I don't have filefield_token directory.
here my message error:
Fatal error: Cannot redeclare filefield_token_list() (previously declared in /home/pariscin/www/sites/all/modules/filefield/filefield_token.module:7) in /home/pariscin/www/sites/all/modules/filefield/filefield.token.inc on line 29
Comment #5
awolfey CreditAttribution: awolfey commentedThe filefield_token directory is within the filefield directory.
Comment #6
awolfey CreditAttribution: awolfey commentedOh...my mistake see #421220: Cannot redeclare filefield_token_list().
Disregard my instructions in #2.
Comment #7
mudd CreditAttribution: mudd commentedSame here. Subscribe.
PS, #421220 is marked 'fixed', but doesn't say how. Token hasn't been updated, nor FF-rc1. You write "disregard ... #2" -- can you please help out us dimwits and explain :)
Thanks!
Comment #8
Junro CreditAttribution: Junro commentedWhen you upgrade the module, erase the old directory before uploading.
Comment #9
mudd CreditAttribution: mudd commentedI did. I completely removed CCK and all sub dirs, then:
- unpacked the new cck 2.2,
- unpacked FF rc1 into modules
- unpacked FF Paths 1.0 into FF
- unpacked Token 1.11 into FF
Update.php, and when I enabled FileField, Paths & Token sceeen went white with the error in log.
Are you saying to remove Token FF sub-sub-module altogether?
Comment #10
Junro CreditAttribution: Junro commentedIt's very simple.
To upload new Filefield module. Juste erase the old Filefield module, and upload the new one.
Erase old Filefiled module entirely to be sure the token directory inside the old filefield module don't exist anymore.
Comment #11
mudd CreditAttribution: mudd commentedAgain, I deleted and replaced my entire CCK tree, unpacking modules from dist files. This includes FileField, FileField Token and FileField path. Since my live site uses FileField Token, so should my QA site.
Since FF-Token is a sub module of FileField, shouldn't it be tested against it? If it's incompatible, then perhaps some mention like "RC1 may be incompatible with earlier FF sub modules". I haven't seen it written anywhere that FileField Token is depreciated when using FileField 3.0 RC1? If that's the case, then information like this is critical and should be in the Release Notes. Since it's not, assume this is not the case.
If Token has been depreciated and is incompatible with FF-3.0-rc1, then kindly include such info in release notes.
Comment #12
Junro CreditAttribution: Junro commentedmaybe you should reopen this issue http://drupal.org/node/421220 and explain your problem or change the status of this one. Or create a new one.
Comment #13
mudd CreditAttribution: mudd commentedGreat idea! :)
(Sorry, guess I wasn't paying attention that this was a dup and that I could actually do something as proactive as reopen an issue :) )
Comment #14
greggleshttp://drupal.org/node/421556#comment-1430880 has the right answer from my perspective. Changing the title of the issue to make it easier to find.
Comment #15
ClearXS CreditAttribution: ClearXS commentedAnyway, I installed the latest version today for the first time and had the same error... Site unreachable, only deleting or renaming module works to get the site back.
Comment #16
ClearXS CreditAttribution: ClearXS commentedhttp://drupal.org/node/421556#comment-1429500
Yes, that works, although I had no duplicate; bringing over that file to the subdir solves the problem. But I suspect that the module might not work anymore either...
(will report the result here)
Then the readme.txt gives new info that the module "Content" (=CCK) is neccessary (&possibly Mimedetect and Transliteration).
The readme.txt of CCK says:
So then the filefield install:
=> nothing shows up considering "File", what ofcourse must be caused by changing filefield.token.inc to that subdir.
So moved filefield.token.inc back again =>
Fatal error: Cannot redeclare filefield_token_list() (previously declared in ... /sites/all/modules/filefield/filefield_token/filefield_token.module:7) in ... /sites/all/modules/filefield/filefield.token.inc on line 29
Comment #17
ClearXS CreditAttribution: ClearXS commentedHere I explained the problem and might have found the solution:
http://drupal.org/node/787334
Comment #18
qpro#10 worked for me