繁体   English   中英

PHP 解析错误:语法错误,意外的“terror_reporting”

[英]PHP Parse error: syntax error, unexpected 'terror_reporting'

我的网站今天早上根本无法运行:错误日志正在拉出此消息:

[2022 年 8 月 2 日 19:19:09 UTC] PHP 解析错误:语法错误,/home/arthomson/public_html/wp-load.php 中的意外“terror_reporting”(T_STRING)上线

这是第 71 行及其附近的代码,第 71 行以“terror_reporting”开头:

if ( function_exists( 'error_reporting' ) ) {

t/*

t * Initialize error reporting to a known set of levels.

t *

t * This will be adapted in wp_debug_mode() located in wp-includes/load.php based on WP_DEBUG.

t * @see http://php.net/manual/en/errorfunc.constants.php List of known error levels.

t */

terror_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );

}

起初我认为这个问题是由于“恐怖”而不是“错误”这句话造成的,但这似乎并没有什么不同。

嗨@braydenf17 我最近也看到了这个。 看起来服务器被在 wp-load.php 和 wp-config.php 文件中的多行开头添加“t”或“tt”的人入侵/访问。

这导致 WordPress 网站瘫痪,只能通过编辑这两个文件并删除已添加到多行的所有 t/tt 来再次修复。

我还发现了一个名为 hi5.php 的文件,该文件仅包含“hi”一词,已上传到多个目录。

谷歌搜索参考“hi5.php”黑客没有返回体面的结果。 应该是新事物...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM