我所做的:
有谁知道Apache为什么会这样做,以及如何解决这个问题?
如果需要进一步的信息,请直接问我。
编辑1:谢谢回答Mark,不幸的是,我已经查看了服务器日志。服务器日志显示“父进程:退出状态为3221225725的子进程--重新启动”。Google显示此错误导致连接到Windows机器的堆栈溢出。然后,我还将其添加到httpd.conf中,使最大堆栈大小实际上接近不可到达的程度。但我还是会犯同样的错误。
另外,如果我回到第一个主题,所有的问题都会消失。
我还尝试了一个新的WordPress安装这个错误的主题,并遇到了同样的问题。我将检查调试日志是否在那里找到任何提示。
编辑2:所以现在我设置了WP_DEBUG和WP_DEBUG_LOG,不幸的是,这并没有帮助。wp内容中的调试日志文件保持为空。没有错误、警告或注释。看起来这确实是Apache / XAMPP问题。再深入一点。
编辑3:尤里卡!我已经接近错误了。好像我在functions.php里搞砸了什么东西。
/*
* Load Scripts
*/
function wpbootstrap_scripts_with_jquery()
{
// Register the script like this for a theme:
wp_register_script( 'customdrink', get_template_directory_uri() . '/js/customdrink.js', array( 'jquery','jquery-ui-slider' ) );
wp_register_script( 'jquery-ui-10', get_template_directory_uri() . '/js/jquery-ui-1.10.4.custom.min.js', array( 'jquery' ) );
wp_register_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array( 'jquery' ) );
wp_register_script( 'awesome-landing-page', get_template_directory_uri() . '/js/awesome-landing-page.js', array( 'jquery', 'jquery-ui-10', 'boostrap' ) );
// For either a plugin or a theme, you can then enqueue the script:
wp_enqueue_script( 'customdrink' );
wp_enqueue_script( 'jquery-ui-1.10' );
wp_enqueue_script( 'bootstrap' );
wp_enqueue_scripts( 'awesome-landing-page' );
}
add_action( 'wp_enqueue_scripts', 'wpbootstrap_scripts_with_jquery' );我不太确定我到底哪里出了问题。有什么主意吗?
发布于 2016-04-17 11:20:05
经过长时间的搜索,我发现了我的错误。
在functions.php中
wp_enqueue_scripts( 'awesome-landing-page' );应该是
wp_enqueue_script( 'awesome-landing-page' );没有“S”。
似乎是初学者的错误,很抱歉打扰了你。
不过,我还是觉得阿帕奇人的不当行为具有误导性。
现在再见!
发布于 2016-04-16 18:07:30
在开发主题时,您应该在WP_DEBUG中打开wp-config.php。它会告诉你错误是什么。
就您的情况而言,这似乎是导致服务器停机的语法问题,而不是apache问题。
https://wordpress.stackexchange.com/questions/223871
复制相似问题