簡體   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