【发布时间】:2017-08-22 21:28:03
【问题描述】:
当一个页面只加载一次时,我多次收到相同的错误日志消息,我想知道这对于 Wordpress 是否正常?如果没有,我该如何解决这个问题? 以下是我的错误日志中的 sn-p。前 5 行在加载 1 页时会复制 5 次。这不可能是对的,对吧?谢谢!
[22-Aug-2017 19:18:11 UTC] PHP Notice: Use of undefined constant ‘TwitterOAuth’ - assumed '‘TwitterOAuth’' in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Woothemes_Widget_Testimonials is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Affiliates_Registration_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Twitter_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Recent_Posts_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Flickr_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: Use of undefined constant ‘TwitterOAuth’ - assumed '‘TwitterOAuth’' in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Woothemes_Widget_Testimonials is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Affiliates_Registration_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Twitter_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Recent_Posts_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Flickr_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: Use of undefined constant ‘TwitterOAuth’ - assumed '‘TwitterOAuth’' in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Woothemes_Widget_Testimonials is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Affiliates_Registration_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Twitter_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Recent_Posts_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Flickr_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: Use of undefined constant ‘TwitterOAuth’ - assumed '‘TwitterOAuth’' in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Woothemes_Widget_Testimonials is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Affiliates_Registration_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Twitter_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Recent_Posts_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Flickr_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: Use of undefined constant ‘TwitterOAuth’ - assumed '‘TwitterOAuth’' in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Woothemes_Widget_Testimonials is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Affiliates_Registration_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Twitter_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Recent_Posts_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
[22-Aug-2017 19:18:11 UTC] PHP Notice: The called constructor method for WP_Widget in Etheme_Flickr_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /filedir
【问题讨论】:
-
Igor Yavych 已经为您提供了答案,如果您想了解更多信息,请阅读:gist.github.com/chriscct7/d7d077afb01011b1839d
标签: php wordpress error-handling