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

CommentFileSizeAuthor
#1 error_trying_to_disable-2355807-1.patch739 bytes-enzo-
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

-enzo-’s picture

Hi folks

I did a patch to use the proper function to validate the Token Drupal::csrfToken()->validate()

  • clemens.tolboom committed e908003 on 8.x-1.x
    Issue #2355807 by -enzo-: Fixed Error trying to disable a Rest Resource.
    
clemens.tolboom’s picture

Status: Active » Fixed

Thanks!

-enzo-’s picture

Cool @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

-author="enzo <enzo@294937.no-reply.drupal.org>"

Kind regards.

clemens.tolboom’s picture

I use dreditor so I learned today I have to click on names. Hope to remember that next time.

Thanks for the feedback.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.