I am editing a content type. I enter the Content Auto Label tab. When I click on the Browse Available Tokens link, the Available Tokens modal/box opens in the center of the screen, the tokens list starts to load, then the screen goes blank. The little info tag in the lower left corner of the screen says, "read ".

Has anyone else had this problem? Any clue what's going on? How can I figure out what is triggering the switch to the blank screen. It looks like the list of tokens is loading fine at first.

Thanks!

Comments

mastoll’s picture

I had jQuery Update enabled. When I disabled it, the Token list loaded fine. Is this a Tokens vs. jQuery issue?

bforchhammer’s picture

I had jQuery Update enabled. When I disabled it, the Token list loaded fine. Is this a Tokens vs. jQuery issue?

Yes, sounds like this is a problem with the token module and the latest jquery version... would probably need to be fixed in the token module. AEL only uses the public API of the token module to display the list of tokens.

mastoll’s picture

Thanks, @bforchhammer.
I appreciate it when a module owner responds even to things like this that turn out to be irrelevant to their module.

bisonbleu’s picture

Ran into the same issue. Screen goes blank while browser spins for ever. When I click [x] to stop the process, i get weird URLs.

E.g. wyciwyg://8/http://mysite/admin/structure/types/manage/action_item/auto_label

Disabled entity_token and increased memory to 1024 M. No changes.
Disabling jquery_update (set to 1.5) fixes this issue. The token browser is back.

bforchhammer’s picture

If you suspect that it may be a performance issue, you could also try the Token Tweaks module, which imposes a limit on the recursion depth of the rendered token tree, thereby reducing the size of stuff required to be rendered by jquery...

bisonbleu’s picture

@bforchhammer, I forgot to mention that I had installed token_tweaks. But that didn't solve anything even when it was set at 1 (level of recursion). So I think it is fair to say that it was not a memory issue but a genuine jquery_update issue.

Cheers!

bforchhammer’s picture

Status: Active » Closed (works as designed)

Closing this issue, as per #6. :)

roald’s picture

Got the same problem. Solved by selecting "None" for CDN in /admin/config/development/jquery_update

newswatch’s picture

#8 fixed my problem.

QBMan’s picture

I'm having a similar problem. But the token browser window doesn't go black or blank, it brings up the front page of the site. Is this likely to be the same issue, just a different manifestation?

UPDATE: I have no trouble browsing available tokens on another site I administer. One difference there, I do not have jQuery Visible installed. On the problem site, I wasn't using jQuery Visible even though it was installed to I disabled and uninstalled it. At first I thought the token browser was going to work, but after awhile, it brought up the front page as it had been all along.

maxplus’s picture

Hi,
I also had no success with jQuery update set to 1.5.
=> the https://www.drupal.org/project/token_tweaks helped me out (set is to depth 2)

Thanks!

Robar’s picture

Thanks, dropped jQuery to 10.7 for theme and all fine.

mtdaveo’s picture

Similar issue: upon browsing for tokens, I'm getting a blue working circle before page crashes. No errors logged. Can anyone help with Jquery location in Drupal 8?

tryitonce’s picture

Hi, thanks for the advice given.
It put me on the right track.

In my case Automatic Entity Labels didn't work - in the Comment Auto Label tab the Tokens were loading, but not under the (Node) Auto Label tab.
https://www.drupal.org/project/token_tweaks is not supported any more.

For me Fast Token Browser solved the problem - jQuery is not installed. I might need it later, we'll see.

raghwendra’s picture

I did #1 #8 and #14but didn't get success trying some other methods. #11 is "Token tweaks" module is not available now due to "security advisory policy." Please advice if something else i need to do.