简体   繁体   English

Wordpress无法启动-500错误:PHP致命错误:在第14行调用未定义的函数define()index.php

[英]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.

相关问题 PHP致命错误:在第148行上的index.php中调用未定义的函数display_sess_msg() - PHP Fatal error: Call to undefined function display_sess_msg() in index.php on line 148 致命错误:在第105行的/webshop/index.php中调用未定义的函数tep_db_fetch_assoc() - Fatal error: Call to undefined function tep_db_fetch_assoc() in /webshop/index.php on line 105 致命错误:在第 2 行的 index.php 中调用未定义的 function get_header() - Fatal error: Call to undefined function get_header() in index.php on line 2 WordPress:仅index.php出现错误500 - WordPress : Error 500 only with index.php Wordpress PHP致命错误:调用未定义函数 - Wordpress PHP fatal error: Call to undefined function 致命错误:在第170行的/home/path/index.php中的非对象上调用成员函数find() - Fatal error: Call to a member function find() on a non-object in /home/path/index.php on line 170 获取错误:致命错误:调用未定义函数:()在第26行的/homepages/44/d1895123746/htdocs/cll/index.php中。如何解决? - Get Error: Fatal error: Call to undefined function: () in /homepages/44/d1895123746/htdocs/cll/index.php on line 26. How to fix? 致命错误:未捕获错误:调用 F:\WebServer\htdocs\Module15\index.php:14 中未定义的方法 PHPMailer::setForm() 堆栈跟踪:#0 {main} 抛出 - Fatal error: Uncaught Error: Call to undefined method PHPMailer::setForm() in F:\WebServer\htdocs\Module15\index.php:14 Stack trace: #0 {main} thrown Codeigniter 4 composer update PHP Fatal error: Uncaught Error: Call to a member function run() on int in index.php - Codeigniter 4 composer update PHP Fatal error: Uncaught Error: Call to a member function run() on int in index.php 致命错误:在线上/public_html/website/index.php中的非对象上调用成员函数execute() - Fatal error: Call to a member function execute() on a non-object in /public_html/website/index.php on line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM