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.
If i try to disable a Rest resource I got the following error
[Mon Oct 13 08:21:13 2014] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function Drupal\\restui\\Controller\\drupal_valid_token() in /Users/enzo/www/drupal8/modules/restui/src/Controller/RestUIController.php on line 211, referer: http://drupal8/admin/config/services/rest
The function drupal_valid_token was removed in ticket #2293541: Remove *_token deprecated functions
Comment | File | Size | Author |
---|---|---|---|
#1 | error_trying_to_disable-2355807-1.patch | 739 bytes | -enzo- |
Comments
Comment #1
-enzo- CreditAttribution: -enzo- commentedHi folks
I did a patch to use the proper function to validate the Token Drupal::csrfToken()->validate()
Comment #3
clemens.tolboomThanks!
Comment #4
-enzo- CreditAttribution: -enzo- commentedCool @clemens.tolboom
Just one comment for next time, when you do the commit try to apply the proper authoring, for instance in this commit you mentioned in message but not as author.
To do this just add something like this in the commit
Kind regards.
Comment #5
clemens.tolboomI use dreditor so I learned today I have to click on names. Hope to remember that next time.
Thanks for the feedback.