[support] Can't Install Token

Earl Miles merlin at logrus.com
Wed Oct 10 16:39:46 UTC 2007


Fred Jones wrote:
> I have a brand new 5.2 install and I tried to install the Token module 
> (http://drupal.org/project/token) and I get:
> 
> Fatal error: Cannot redeclare token_install() (previously declared in 
> /home/site/www/modules/token/token.install:5) in 
> /home/site/www/sites/all/modules/token/token.install on line 4
> 
> I took the 'official' release of Token: 5.x-1.8.

If you look at the error message, it's really easy to see what's wrong:

/home/site/www/modules/token/token.install
/home/site/www/sites/all/modules/token/token.install

You have two copies of token.module where Drupal can read it. This will 
always lead to very strange errors. Remove one immediately.


More information about the support mailing list