- 🇫🇷France florent8
A quick fix for this issue is to upgrade the `max_allowed_packet` of your mysql.cnf to a higher value. (for me, going from 32M to 64M did the trick)
Do we know what's causing this issue though ? I'm having the same error after upgradring from Drupal 9.4.6 to 9.5.2. I do not have access to the mysql configuration file on my production environment so I would like to know if there's another way to fix this issue.
- 🇦🇹Austria maxilein
Upgraded max_allowed_packets now I get (D9.5.2 php 8.1):
PHP Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/html/core/lib/Drupal/Core/Utility/Token.php on line 401
Even if I increase it to 180 seconds it ends up blank.
So I did 360 seconds max execution time. StillI watched memory usage with top. There is nothing going crazy.
I have these other modules connected to tokens enabled:
Bamboo Twig - Token
Token Filter
Tokens in Views Filter Criteria
Views Extras (Session/Cookie/Token Support)
Views TokenizedIs there a verbose mode for devel tokens?
Maybe we could see where there are recursions taking place to localize the problem? - 🇦🇹Austria maxilein
I set it to 3600 and it finally ran through...
The question remains, why for a simple node like article it takes soo long?! - 🇦🇹Austria maxilein
Looking at the list I see it loads a lot of tokens from all kind of nodes ... 435 tokens ...
- 🇲🇦Morocco redamakhchan
Facing the same issue only when i want to edit one of my custom content types, it takes too much time to show the edit page (I added more php memory_limit), then it shows this error about MySQL. I don't know why this started happening suddenly (on production), am still inspecting about the issue as temporary fix, as I said I increased memory_limit on php.ini, and max_allowed_packet on my.cnf.
- 🇦🇹Austria maxilein
On D10.1 with the latest token module the error moves to another line.
PHP Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/web/core/lib/Drupal/Core/Utility/Token.php on line 408
Maybe there is a possibility to create large lists of tokens in batches? Just an idea...