Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
mastoll CreditAttribution: mastoll commentedI had jQuery Update enabled. When I disabled it, the Token list loaded fine. Is this a Tokens vs. jQuery issue?
Comment #2
bforchhammer CreditAttribution: bforchhammer commentedYes, 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.
Comment #3
mastoll CreditAttribution: mastoll commentedThanks, @bforchhammer.
I appreciate it when a module owner responds even to things like this that turn out to be irrelevant to their module.
Comment #4
bisonbleu CreditAttribution: bisonbleu commentedRan 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.
Comment #5
bforchhammer CreditAttribution: bforchhammer commentedIf 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...
Comment #6
bisonbleu CreditAttribution: bisonbleu commented@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!
Comment #7
bforchhammer CreditAttribution: bforchhammer commentedClosing this issue, as per #6. :)
Comment #8
roald CreditAttribution: roald commentedGot the same problem. Solved by selecting "None" for CDN in /admin/config/development/jquery_update
Comment #9
newswatch CreditAttribution: newswatch commented#8 fixed my problem.
Comment #10
QBMan CreditAttribution: QBMan commentedI'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.
Comment #11
maxplus CreditAttribution: maxplus commentedHi,
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!
Comment #12
Robar CreditAttribution: Robar commentedThanks, dropped jQuery to 10.7 for theme and all fine.
Comment #13
mtdaveo CreditAttribution: mtdaveo commentedSimilar 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?
Comment #14
tryitonce CreditAttribution: tryitonce as a volunteer commentedHi, 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.
Comment #15
raghwendra CreditAttribution: raghwendra commentedI 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.