知更鸟Begin主题报错

  • A+
所属分类:Wordpress

 


Warning: Use of undefined constant gallerytag - assumed 'gallerytag' (this will throw an Error in a future version of PHP) in /www/wwwroot/0ne.top/wp-content/themes/begin lts/inc/post-taxonomy.php on line 169

Warning: Use of undefined constant videotag - assumed 'videotag' (this will throw an Error in a future version of PHP) in /www/wwwroot/0ne.top/wp-content/themes/begin lts/inc/post-taxonomy.php on line 271

Warning: Use of undefined constant taotag - assumed 'taotag' (this will throw an Error in a future version of PHP) in /www/wwwroot/0ne.top/wp-content/themes/begin lts/inc/post-taxonomy.php on line 374

解决办法 关闭php报错

以上这些错误大概意思是“使用了未定义的常量gallerytag、videotag、taotag、filtersa、filtersb,这将在未来的PHP版本中引发错误“;

解决此种问题其实也不是很难,只是报了”Warning警告“,我们只需要关闭”PHP错误提示“就行了。具体步骤如下:

1、打开 php.ini

2、设置 error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

3、设置 display_errors = Off

宝塔面板方法

知更鸟Begin主题报错

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: