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

awolfey’s picture

Same here.

awolfey’s picture

Looks like filefield_token.inc is the the filefield directory and the filefield_token directory. Removing from the first solves the problem.

Junro’s picture

Same error, subscribe.

Junro’s picture

@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

awolfey’s picture

The filefield_token directory is within the filefield directory.

awolfey’s picture

Status: Active » Closed (duplicate)

Oh...my mistake see #421220: Cannot redeclare filefield_token_list().

Disregard my instructions in #2.

mudd’s picture

Same 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!

Junro’s picture

When you upgrade the module, erase the old directory before uploading.

mudd’s picture

I 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?

Junro’s picture

It'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.

mudd’s picture

Again, 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.

Juste erase the old Filefield module

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.

Junro’s picture

maybe 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.

mudd’s picture

Great 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 :) )

greggles’s picture

Title: Upgrade to rc1 gives fatal error » fatal error Cannot redeclare filefield_token_list

http://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.

ClearXS’s picture

Anyway, 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.

ClearXS’s picture

http://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:

Go to Administer -> Site building -> Modules and enable the Content module and one or
more field type modules:
- text.module
- number.module
- userreference.module
- nodereference.module
Now go to Administer -> Content management -> Content types. Create a new content type and edit it to add some fields. Then test by creating a new node of your new type using the Create content menu link.
The included optionswidget.module provides radio and check box selectors for the various field types.
The included fieldgroup.module allows you to group fields together in fieldsets to help organize them.
A comprehensive guide to using CCK is available as a CCK Handbook at http://drupal.org/node/101723.

So then the filefield install:

3) Create a new file field in through CCK's interface. Visit Administer -> Content management -> Content types (admin/content/types), then click Manage fields on the type you want to add an file upload field. Select "File" as the field type and "File" as the widget type to create a new field.

=> 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

ClearXS’s picture

Here I explained the problem and might have found the solution:
http://drupal.org/node/787334

qpro’s picture

#10 worked for me