[英]Wordpress doesn't start - 500 Error : PHP Fatal error: Call to undefined function define() index.php on line 14
Error 错误
Wordpress doesn't start - 500 Error : PHP Fatal error: Call to undefined function define() index.php on line 14
Line # 14 : define('WP_USE_THEMES', true);
it works sometimes, it doesn't work and shows the above error, please help me to find the cause. 有时它可以工作,但是不起作用,并显示上述错误,请帮助我找到原因。
This is a tough one to answer without lots of background information, is this perhaps nginx with php-fpm where php can't find the file included in the "require" part that comes at the end of index.php? 如果没有大量背景信息,这是一个很难回答的问题,这可能是带有php-fpm的nginx,其中php无法找到index.php末尾的“ require”部分中包含的文件吗?
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
The above line is at the end of index.php and it eventually includes all the wordpress functionality. 上一行在index.php的末尾,它最终包括所有的wordpress功能。 If your server cant find that file, and that is where I guess the error comes from.
如果您的服务器找不到该文件,那是我猜错误的出处。
(Sorry, I dont have enough points to comment, so it had to become an answer). (对不起,我没有足够的意见要发表,所以它必须成为答案)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.