I just enabled Token 7.x-1.0-beta2 on our Drupal 7.2 installation, and going to the help page for it (/admin/help/token) produced a WSOD with the following error message:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 91359251 bytes) in /data/all/004/drupal-7.2-prod/includes/database/database.inc on line 2095

I then updated it to the dev version (2011-Jun-12), cleared caches, cleared the browser cache, etc etc, and got the same result. No other pages are producing this error or any WSOD that I'm aware of. The server is tuned for high performance so I don't think that's the issue.

My understanding is this is the only interface to the module, and the only way to get a complete list of tokens.

Comments

tomsherlock’s picture

Any updates on this issue? There are no comments (besides mine).

Is no one else experiencing this issue. Or are there not many people using this most
recent, beta version of the module?

My reflexive response would be to check memory in the php.ini. But somatics doesn't seem to think that is an issue.

dave reid’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #1068990: Optimize and add caching for theme_token_tree() and #1058912: Prevent recursive tokens. If you are using the 'Entity tokens' module you may want to disable it.

somatics’s picture

Dave,
Thanks for this information. I am using Entity Tokens. However, I can't disable that module, as it required by about a skillion of our other modules (notably, most all of Drupal Commerce).

I have read through those two issues you mention, as well as some other links. Now, I am a bit of a loss to actually understand the actual fix. Since I can't simply disable Entity Tokens, is the solution to install token_tweaks? Or is it some other patch (there is a mob of patches dropped in these threads, and I don't know where to start or which to use)? Or is the answer that there is no fix yet? I can't even figure that much out on this issue?

If you could decipher the current status of this all for us, we'd really appreciate it, so we know what steps to take.

Thanks in advance!

drupalok’s picture

i can confirm: ENTITY TOKEN produces this error. i even had huge memory amount exhausted...
disabling entity token made the problems go away

predde’s picture

Anyway to do this without disabling Entity Tokens?

fuerst’s picture

@predde: Yes, see #46 in #1058912: Prevent recursive tokens