所以我在drupal 8中关注了Hello World自定义模块教程,并且我得到了我见过的最大错误,我不知道如何调试它,错误发生在drupal / admin / structure / block当我尝试将我的hello world块应用于标题。
Uncaught AjaxError:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /drupal/admin/structure/block/add/hello_block/bartik?region=header
StatusText: OK
CustomMessage: The response failed verification so will not be processed.
ResponseText: [{"command":"settings","settings":{"ajaxTrustedUrl":{"form_action_cc611e1d":true},"machineName":{"#edit-settings-label--Iv5Pc3nzWIo":{"exists":"\\Drupal\\block\\Entity\\Block::load","replace_pattern":"[^a-z0-9_.]+","source":["settings","label"],"target":"#edit-id--TcX7cq-nUb8","label":"Machine name","replace":"_","standalone":false,"field_prefix":"","field_suffix":"","suffix":"#edit-settings-label--Iv5Pc3nzWIo-machine-name-suffix"}},"langcode":"en","ajaxPageState": {"theme":"seven","libraries":"block\/drupal.block,block\/drupal.block,bloc k\/drupal.block.admin,block\/drupal.block.admin,block\/drupal.block.admin,
它继续为100行奇怪的json输出。
现在,我已经接着另一个教程,这是官方网站上另一个名为Lorem Ipsum生成器的教程,完全正常,并且该模块没有任何问题,所以我的计划是最终制作了一个精确的副本loremipsum模块,然后它会工作。但有人可以为如何调试这些问题添加一些理由,或者这个问题通常在drupal上下文中意味着什么?
我自己最好的猜测是它的权限以某种方式相关,但我以管理员身份登录,我基本上拥有所有权限。