dongliqian6245 2019-04-12 12:45
浏览 889

如何修复“致命错误:未捕获错误:调用未定义函数get_header()”

I am trying to put this website back online. The error message is the following :

Fatal error: Uncaught Error: Call to undefined function get_header() in /homepages/25/d584099293/htdocs/clickandbuilds/X3DSYSTEMS/wp-content/themes/x3dprotheme/index.php:4 Stack trace: #0 {main} thrown in /homepages/25/d584099293/htdocs/clickandbuilds/X3DSYSTEMS/wp-content/themes/x3dprotheme/index.php on line 4

The client told me he "accidentaly reseted the domain". First when I went on the website I had an error message about Wordfence and I did what I needed to do to correct it (here what I did : https://docs.wordfence.com/en/After_moving_a_site_or_deleting_some_files%2C_I_see__PHP_Fatal_error__Unknown__Failed_opening_required_/var/www/html/wordfence-waf.html ) I removed the firewall setup manually.

Then I got this new message of error about index.php

In this index.php, here what I found :

<?php get_header(); ?>

<?php get_footer(); ?>

I try to get this website back online. Thanks for your help.

  • 写回答

3条回答 默认 最新

  • du8442 2019-04-12 13:18
    关注

    What webhost is this? Maybe if we know, we can ascertain what the "domain reset" involved and backtrack the fix once we know exactly what those steps entailed. When these sorts of things happen to me (I manage about 30 WP sites), first thing I do is disable all plugins, and sometimes if I can't actually log into WP, I remove the plugins via sftp or through cPanel.

    You're stuck though if you have no access to the host. It'll extremely difficult to solve this without access to the server or control panel for the hosting environment. Do you at least have sftp access?

    评论

报告相同问题?

悬赏问题

  • ¥15 数学的三元一次方程求解
  • ¥20 iqoo11 如何下载安装工程模式
  • ¥15 本题的答案是不是有问题
  • ¥15 关于#r语言#的问题:(svydesign)为什么在一个大的数据集中抽取了一个小数据集
  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 蓝桥杯单片机第十三届第一场,整点继电器吸合,5s后断开出现了问题