启用注册页面的Visitos时无效标记的Drupal 7错误

时间:2014-03-10 10:17:34

标签: drupal drupal-7

我想允许访客注册我的网站。

我启用了模块tokenentity token

为此,我在我的drupal 7网站上做了以下。

  • 列表项
  • 转到网址:http:// my-site-url / admin / config / people / accounts
  • 更改注册和取消选项
  • 谁可以注册帐户?
  

仅限1位管理员

     

2 访客已检查

     

3位访客,但需要管理员批准复选框已选中   用于电子邮件验证。

然后,点击< 保存>按钮。

我在updating the admin/config/people/accounts设置时给出了以下错误。

The Subject is using the following invalid tokens: [site:name].
The Body is using the following invalid tokens: [user:name], [user:one-time-login-url], [site:name], [site:login-url].
The Subject is using the following invalid tokens: [user:name], [site:name].
The Body is using the following invalid tokens: [user:name], [site:name].
The Subject is using the following invalid tokens: [user:name], [site:name].
The Body is using the following invalid tokens: [user:name], [user:one-time-login-url], [site:name], [site:login-url].
The Subject is using the following invalid tokens: [user:name], [site:name].
The Body is using the following invalid tokens: [user:name], [user:one-time-login-url], [site:name].
The Subject is using the following invalid tokens: [user:name], [site:name].
The Body is using the following invalid tokens: [user:name], [user:one-time-login-url], [site:name], [site:login-url].
The Subject is using the following invalid tokens: [user:name], [site:name].
The Body is using the following invalid tokens: [user:name], [site:name].
The Subject is using the following invalid tokens: [user:name], [site:name].
The Body is using the following invalid tokens: [user:name], [user:cancel-url], [site:name], [site:url-brief].
The Subject is using the following invalid tokens: [user:name], [site:name].
The Body is using the following invalid tokens: [user:name], [site:name].

我不明白为什么在更新设置时给我这个错误。

1 个答案:

答案 0 :(得分:0)

在帐户设置屏幕的底部,有一组电子邮件模板,因此您可以配置系统将针对各种用户帐户操作发送的所有各种电子邮件("帐户激活,"&# 34;帐户被阻止等)。他们都在他们的身体,主题等中使用令牌,并且这些令牌由于某种原因而变得无效。

检查您的站点信息配置(admin/config/system/site-information)并确保相关字段已正确填写。或者,对于快速而肮脏的解决方案,请编辑模板,删除令牌,并替换为您网站的等效内容。但最好确保这些令牌都具有有效值。