After installation of 6.x-1.0-beta12 as well as 6.x-2.x-dev I get the following error (white screen) when visiting the admin/settings page:

PHP Fatal error: Call to undefined function theme_token_help() in .../sites/all/modules/node_invite/node_invite.admin.inc on line 103.

Anyone any suggestion?

Comments

davidshaw’s picture

Token help worked for me with node invite recently on one site, but now on a new Drupal 6.17 install with Token 6.x-1.13 i get the error listed above visiting /admin/settings/node_invite:

Fatal error: Call to undefined function theme_token_help() in /home/dimensio/public_html/action/trunk/sites/all/modules/node_invite/node_invite.admin.inc on line 103

Also when viewing /admin/settings/node_invite/notifications:
Fatal error: Call to undefined function theme_token_help() in /home/dimensio/public_html/action/trunk/sites/all/modules/node_invite/node_invite.admin.inc on line 216

Also when viewing an invite page /node_invite/invite/8:
Fatal error: Call to undefined function theme_token_help() in /home/dimensio/public_html/action/trunk/sites/all/modules/node_invite/node_invite.send.inc on line 41

Based on this related bug report: http://drupal.org/node/820822 i think the issue is with drupal 6.17 or with token.module,v 1.7.4.21 moving the theme_token_help function into token.pages.inc

Checking if the function exists before showing the offending form fieldsets does allow invite to continue working but the token help did not display.

if (function_exists('theme_token_help')){
	$form['node_invite_tokens'] = array(
	  '#type'  => 'fieldset',
	  '#collapsible' => TRUE,
	  '#collapsed' => TRUE,
	  '#description' => "<p>Not all tokens will be available. The following lists all tokens known to Drupal.  The list of <i>available</i> tokens will depend on the type of node to which you are inviting people.</p>" . theme_token_help('all'),
	  '#title' => ("Token Help"),
	);
  }

after upgrading to the 2x dev branch of node invite my token help reappears. I've kept in my function_exists check and added: user_access('admin node invite settings') so that only admins see the tokens.

if (function_exists('theme_token_help') && user_access('admin node invite settings')){
	$form['node_invite_tokens'] = array(
	  '#type'  => 'fieldset',
	  '#collapsible' => TRUE,
	  '#collapsed' => TRUE,
	  '#description' => "<p>Not all tokens will be available. The following lists all tokens known to Drupal.  The list of <i>available</i> tokens will depend on the type of node to which you are inviting people.</p>" . theme_token_help('all'),
	  '#title' => ("Token Help"),
	);
  }

Dave Shaw

Tribe Rising

geerlingguy’s picture

Version: 6.x-2.x-dev » 6.x-1.0-beta12

I'm getting:

Fatal error: Call to undefined function theme_token_help() in token.tags.inc on line 21

(er... this is related to Replacement Tags... sorry!)

hadsie’s picture

Version: 6.x-1.0-beta12 » 6.x-2.x-dev
Status: Active » Fixed

Thanks guys... this is fixed in dev now. I'll be making a new recommended release for the 2.x branch shortly.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.