wp-admin/wp-blog-header.php Failed to open wp-admin/index.php on line 19 16如何解决

发布于:2025-07-08 ⋅ 阅读:(22) ⋅ 点赞:(0)

Warning: require(/www/wwwroot/abc_com/wp-admin/wp-blog-header.php): Failed to open stream: No such file or directory in /www/wwwroot/abc_com/wp-admin/index.php on line 19

Fatal error: Uncaught Error: Failed opening required '/www/wwwroot/abc_com/wp-admin/wp-blog-header.php' (include_path='.:') in /www/wwwroot/abc_com/wp-admin/index.php:19 Stack trace: #0 {main} thrown in /www/wwwroot/abc_com/wp-admin/index.php on line 19

解决方法1:

聽起來像是 wp-blog-header.php 這個檔案不見了。你可以透過 WordPress 重新載入你的佈景主題,或者建立一個空白檔案,命名為 wp-blog-header.php,然後登入你的 cPanel/宝塔,把這個空白檔案上傳到 wp-admin 資料夾。我試過這樣做,而且不只一次成功。程式碼不一定真的要用到這個檔案,它只是需要知道它存在而已。

解决方法2:

According to wordpress rule, avoid over writing the wp-admin and wp-include folder files. Because the changers in this folder (like: wp-admin, wp-includes) exist till the wordpress in not updated. So, It means your application is not secure and any virus or hacking is effecting your application.

Solution:

Temporary: Download any wordpress version in your local system or open any existing wordpress in you system and go to wp-admin/index.php file and copy the whole code and paste the code in your application at the same location( wp-admin/index.php).

Permanent: Clean your code and file's in you hosting.

Note: if you have multiple application running in your hosting then clean all the application

翻译如下:

根据 WordPress 规则,请避免覆盖 wp-admin 和 wp-include 文件夹文件。因为这些文件夹中的修改器(例如:wp-admin、wp-includes)会一直存在,直到 WordPress 更新为止。这意味着您的应用程序不安全,并且可能受到病毒或黑客攻击

解决方案:

临时解决方案:在本地系统中下载任意版本的 WordPress,或打开系统中现有的 WordPress,然后转到 wp-admin/index.php 文件,复制完整代码并将其粘贴到应用程序中的同一位置 (wp-admin/index.php)。

永久解决方案:清理主机中的代码和文件。

注意:如果您的主机中运行了多个应用程序,请清理所有应用程序。

 解决方法3:

So the solution is.

  1. Change the file wp-load.php permission 644 to 444.
  2. Then download the specific version of WordPress from here. Release Archive – WordPress.org (for check your current WordPress version goto wp-includes/version.php) you can see your WordPress version.
  3. Open the zip folder then copy the wp-load.php code and paste to empty file in your server

网站公告

今日签到

点亮在社区的每一天
去签到