dongmi1221 2017-10-23 12:28
浏览 173

wordpress警告甚至在关闭时显示

I know this question has been asked a kazillion times, but I've read the responses and done all suggestions. My phpinfo shows:

display_errors = off
error_reporting = 0

and I've set all of the suggestions in my config file, e.g.

define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

and yet I'm STILL getting warnings like the following:

Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /Users/.../wp-includes/plugin.php on line 601
Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /Users/.../wp-includes/plugin.php on line 601

Please note, I'm using MAMP for a local server and wordpress. Also I've searched the entire site to see if WP_DEBUG is being set elsewhere and it's not.

I'm banging my head against a wall. Any ideas?

Thanks, Heather

  • 写回答

1条回答 默认 最新

  • dsdfd2322 2017-10-23 13:20
    关注

    Which version of php and Wordpress are you running? There are several posts in the wordpress core tracker pointing similar issues with php 7.1:

    https://core.trac.wordpress.org/ticket/38144

    https://core.trac.wordpress.org/ticket/37772

    Regarding why is WP showing this warnings although you have disabled all debug options here are some suggestions:

    • Search in your php.ini for something like this and comment it:

    error_reporting = E_ALL & ~E_NOTICE error_reporting = E_ALL & ~E_NOTICE | E_STRICT error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ER… _ERROR error_reporting = E_ALL & ~E_NOTICE

    • Search your code for error_reporting(whatever) or ini_set('error_reporting', whatever);

    Hope this helps.

    评论

报告相同问题?

悬赏问题

  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器