我的浏览器左下角始终收到此消息,即使网站已完全正常运行。这对用户来说有点烦人。我试图用css隐藏它,但似乎不可能。
你们知道如何隐藏错误信息吗?这是日志文件中的错误:
错误:在Drupal \ feeds \ Entity \ Feed-> preSave()中调用null上的成员函数getPlugins()(/ var / www / html / modules / contrib / feeds / src / Entity /的第443行) Feed.php)#0 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(434):Drupal \ feeds \ Entity \ Feed-> preSave(Object(Drupal \ feeds \ FeedStorage)) )#1 /var/www/html/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(298):Drupal \ Core \ Entity \ EntityStorageBase-> doPreSave(Object(Drupal \ feeds \ Entity \ Feed)) #2 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(389):Drupal \ Core \ Entity \ ContentEntityStorageBase-> doPreSave(Object(Drupal \ feeds \ Entity \ Feed))## 3 /var/www/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(761):Drupal \ Core \ Entity \ EntityStorageBase-> save(Object(Drupal \ feeds \ Entity \ Feed)) #4 /var/www/html/core/lib/Drupal/Core/Entity/Entity.php(364):Drupal \ Core \ Entity \ Sql \ SqlContentEntityStorage-> save(Object(Drupal \ feeds \ Entity \ Feed) )#5 / var / www / html / modules / contrib / feeds / fee ds.module(46):Drupal \ Core \ Entity \ Entity-> save()#6 [内部函数]:feeds_cron()#7 / var / www / html / core / lib / Drupal / Core / Extension / ModuleHandler .php(391):call_user_func_array(' feeds_cron',Array)#8 /var/www/html/core/lib/Drupal/Core/Cron.php(223):Drupal \ Core \ Extension \ ModuleHandler - >调用(' feeds',' cron')#9 /var/www/html/core/lib/Drupal/Core/Cron.php(122):Drupal \ Core \ Cron-> invokeCronHandlers()#10 /var/www/html/core/lib/Drupal/Core/ProxyClass/Cron.php(75):Drupal \ Core \ Cron-> run()#11 / var / www / html / core / modules / automated_cron / src / EventSubscriber / AutomatedCron.php(65):Drupal \ Core \ ProxyClass \ Cron-> run()#12 / var / www / html / core / lib / Drupal / Component /EventDispatcher/ContainerAwareEventDispatcher.php(111):Drupal \ automated_cron \ EventSubscriber \ AutomatedCron-> onTerminate(Object(Symfony \ Component \ HttpKernel \ Event \ PostResponseEvent),' kernel.terminat ...',对象(Drupal \ Component \ EventDispatcher \ ContainerAwareEventDispatcher))#13 / var / ww w / vendor / symfony / http-kernel / HttpKernel.php(84):Drupal \ Component \ EventDispatcher \ ContainerAwareEventDispatcher-> dispatch(' kernel.terminat ...',Object(Symfony \ Component \) HttpKernel \ Event \ PostResponseEvent))#14 /var/www/vendor/stack/builder/src/Stack/StackedHttpKernel.php(32):Symfony \ Component \ HttpKernel \ HttpKernel-> terminate(Object(Symfony \ Component \ HttpFoundation) \ Request),Object(Drupal \ Core \ Render \ HtmlResponse))#15 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(634):Stack \ StackedHttpKernel-> terminate(Object(Symfony) \ Component \ HttpFoundation \ Request),Object(Drupal \ Core \ Render \ HtmlResponse))#16 /var/www/html/index.php(22):Drupal \ Core \ DrupalKernel-> terminate(Object(Symfony \ Component) \ HttpFoundation \ Request),Object(Drupal \ Core \ Render \ HtmlResponse))#17 {main}。
答案 0 :(得分:0)
这似乎是一般性错误,为了解决这个问题,您应该尝试从代码中调试/跟踪问题。我从你的问题中得到的是你想删除这个错误并让它现在出现给用户,如果这是在生产环境中你应该禁用错误报告到前端,这可以在D8中通过转到admin / config / development / logging并选择"要显示的错误消息"并保存您的配置。之后,您可以调试并跟踪此错误。
我希望这会对你有所帮助。