简体   繁体   English

无法在Drupal 8中使用新主题登录

[英]Can't login with new theme in Drupal 8

I'm facing some trouble and hope someone can help me. 我面临一些麻烦,希望有人能帮助我。 When I create a new custom theme, I can access the login page normally but just can't login. 创建新的自定义主题时,我可以正常访问登录页面,但无法登录。 I don't know why but the form is just not submitted when I press the login button. 我不知道为什么,但是当我按下登录按钮时,表单没有提交。 What should I do? 我该怎么办?

When you are on login page inspect it (F12 key usually), go to network tab and press login button. 当您在登录页面上进行检查时(通常是F12键),转到“网络”选项卡,然后按登录按钮。 If no request is made it means that form is not submitted properly. 如果未提出请求,则表示表格提交不正确。 Can be that you have some html element over submit button or some event handler is picking up click or submit events. 可以是您在“提交”按钮上有一些html元素,或者某些事件处理程序正在获取单击或提交事件。

If there is a request inspect it for the values. 如果有要求,请检查其值。 If everything is ok then problems is most likely somewhere else, not in your theme. 如果一切正常,那么问题很可能出在其他地方,而不是主题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM