因此,我正在尝试升级WordPress项目,其中一个部分我得到了404,而不是看到产品页面。我环顾四周,试图将此添加到functions.php
add_action(\'wp_head\', \'show_template\');
function show_template() {
global $template;
print_r($template);
}
但在顶部它只显示了我
wordpress-3.5.2/wp-content/themes/mytheme/404.php
. 有人能教我如何追踪错误吗?WP\\u DEBUG\\u LOG确实有一些depracation和东西,但我不确定这是否相关。。。是否有一种系统的方法来跟踪哪个功能负责这一点?
我将粘贴WP\\U调试显示的内容,以防万一:
注意:未定义索引:HTTPS in/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-content/plugins/audio-player/audio-player。php在线127
注意:未定义索引:SERVER\\u PORT\\u SECURE in/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-content/plugins/audio-player/audio-player。php在线127
警告:session\\u start()[函数.session start]:无法发送会话缓存限制器-已发送的标头(输出开始于/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-content/plugins/audio player/audio player.php:127),位于/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants。php在线17
注意:自3.4版以来,add\\u custom\\u background已被弃用!改用add\\u theme\\u支持(\'自定义背景\',$args)。在/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-includes/functions中。php在线2841
注意:自3.4版以来,add\\u custom\\u image\\u标头已被弃用!改为使用add\\u theme\\u支持(\'自定义标题\',$args)。在/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-includes/functions中。php在线2841
注意:未定义索引:/js/js\\u gallery/jquery-1.6.1。min.js in/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-includes/class。wp脚本。php在线163
注意:正在尝试获取/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-includes/class中非对象的属性。wp脚本。php在线163/Users/emai/Documents/wordpress\\u projects/mytheme/wordpress-3.5.2/wp-content/themes/mytheme/404。php