Closed (fixed)
Project:
Token
Version:
5.x-1.8
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2007 at 19:12 UTC
Updated:
12 Nov 2007 at 22:41 UTC
Hello,
I'm running a test site with Drupal 5. I cannot enable the token module on the module page. What am I doing wrong?
Thanks,
Sean
Comments
Comment #1
kwai6969@gmail.com commentedI'm having what may be the same problem. It's giving me errors
* warning: main(token_node.inc): failed to open stream: No such file or directory in /home/dyates/public_html/modules/added_modules/token/token.module on line 4.
* warning: main(): Failed opening 'token_node.inc' for inclusion (include_path='') in /home/dyates/public_html/modules/added_modules/token/token.module on line 4.
* warning: main(token_user.inc): failed to open stream: No such file or directory in /home/dyates/public_html/modules/added_modules/token/token.module on line 5.
* warning: main(): Failed opening 'token_user.inc' for inclusion (include_path='') in /home/dyates/public_html/modules/added_modules/token/token.module on line 5.
The files are all there:
-rw-r--r-- 1 dyates users 4550 Jan 17 08:39 API.txt
-rw-r--r-- 1 dyates users 14940 Apr 23 2006 LICENSE.txt
-rw-r--r-- 1 dyates users 560 Dec 30 17:41 README.txt
-rw-r--r-- 1 dyates users 281 Jan 17 08:50 token.info
-rw-r--r-- 1 dyates users 7496 Jan 11 09:35 token.module
-rw-r--r-- 1 dyates users 6993 Jan 17 03:59 token_node.inc
-rw-r--r-- 1 dyates users 1497 Jan 11 09:35 token_user.inc
any ideas?
thanks!
Comment #2
kwai6969@gmail.com commentedFixed it... change the include lines of the token.module file to
$tokenpath = drupal_get_path('module', 'token');
include_once("$tokenpath/token_node.inc");
include_once("$tokenpath/token_user.inc");
copied from the views module... previously the include_once didn't include the path.
Comment #3
eaton commentedThe latest dev build of token.module now includes this change. It will be rolled into version 1.5 once it's released. Thanks!
Comment #4
(not verified) commentedComment #5
JonSTeps commentedI'm having this same issue, with token 5.x-1.8 and with 5.x-1.x-dev. I added the token module to my module directory, i enable it under admin/build/modules, updated php, but when i go to my admin page there's nothing for token. Its still checked enabled under admin/build/modules but isn't anywhere else.
I tried editing the include lines like kwai6969 said to do, but that didn't do anything either.
I'm running drupal 5.1, with a heavy assortment of modules. Any ideas?
Comment #6
gregglesYou said "when i go to my admin page there's nothing for token"
Well, there's not supposed to be anything ;)
You only need token if another module has requested it. And in that case, test that other module to see if it works properly. If so, token is working. If not - file a separate issue for that specific problem.
Comment #7
JonSTeps commentedI feel really silly now, thanks for the help greggles. everything worked out
Comment #8
(not verified) commentedComment #9
butler commentedI continue to experience the inability to enable this module due to uncheckable checkbox...
I have tried :
token-5.x-1.8
token-5.x-1.x-dev
from:
http://ftp.drupal.org/files/projects/
If I'm not mistaken, one of those should incorporate the fix referred to in comment #3 on pg /node/115664-"latest dev build of token.module now includes this change" which caused this issue to be closed. The lines:
$tokenpath = drupal_get_path('module', 'token');
include_once("$tokenpath/token_node.inc");
include_once("$tokenpath/token_user.inc");
... are to be found paraphrased in token.inc which is required once as opposed to included in token.module. Anyone have any ideas why this is still a bug for me?
Thanks...
Comment #10
gregglesI believe that what happens is this:
The way that the admin/build/modules page handles keeping the dependency is to check for the token module being enabled *when* pathauto is enabled and then disabling the checkbox ever after that. However, if you upgrade the files for a module (like pathauto) that is already enabled then this dependency check is bypassed, but the token checkbox is still disabled.
The solution is to disable pathauto, enable token, and then re-enable pathauto. And yes, to fix that segmentation fault use the current 5.x-1.x-dev which will become 5.x-1.9.
Thanks.
Comment #11
gregglesno response, assumed to be fixed.
Comment #12
gregglesComment #13
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.