当一个页面刚刚加载一次并且想知道这对于Wordpress是否正常时,我多次收到相同的错误日志消息?如果没有,我怎么麻烦拍这个? 以下是我的错误日志中的代码段。前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
答案 0 :(得分:0)
提供这些小部件的插件/主题已经过时,并且正在使用旧方法调用构造方法。将插件和主题更新到最新版本。
答案 1 :(得分:0)
您没有看到重复的错误消息,这些错误消息都略有不同。第一条消息指定Woothemes_Widget_Testimonials
中的方法已弃用,第二条消息指定Affiliates_Registration_Widget
中的方法已弃用,第三条指向Etheme_Twitter_Widget
,依此类推。
代码将需要在指定它的5个位置中的每个位置修复,以便消息消失。