簡體   English   中英

ioncube“路徑/到/file.php已損壞”錯誤

[英]ioncube “the path/to/file.php is corrupted” error

我有一個wordpress網站,安裝插件后突然崩潰了,並且出現錯誤消息“文件/home/omdikalc/public_html/wp-content/themes/martfury/functions.php已損壞。”。 錯誤所指向的文件是我主題的function.php文件,並且該文件使用ioncube進行了編碼,並且包含這部分引發錯誤的代碼:

    <?php //00543
    // Encoded by www.Rtl-Theme.com
    // Encoded at 24 August 2018 - 15:14:53
    if (!extension_loaded('ionCube Loader')) {
        $__oc = strtolower(substr(php_uname(), 0, 3));
        $__ln = 'ioncube_loader_' . $__oc . '_' . substr(phpversion(), 0, 3)         . (($__oc == 'win') ? '.dll' : '.so');
        if (function_exists('dl')) {
            @dl($__ln);
        }
        if (function_exists('_il_exec')) {
            return _il_exec();
        }
        $__ln   = '/ioncube/' . $__ln;
        $__oid  = $__id = realpath(ini_get('extension_dir'));
        $__here = dirname(__FILE__);
        if (strlen($__id) > 1 && $__id[1] == ':') {
            $__id   = str_replace('\\', '/', substr($__id, 2));
            $__here = str_replace('\\', '/', substr($__here, 2));
        }
        $__rd = str_repeat('/..', substr_count($__id, '/')) . $__here . '/';
        $__i  = strlen($__rd);
        while ($__i--) {
            if ($__rd[$__i] == '/') {
                $__lp = substr($__rd, 0, $__i) . $__ln;
                if (file_exists($__oid . $__lp)) {
                    $__ln = $__lp;
                    break;
                }
            }
        }
        if (function_exists('dl')) {
            @dl($__ln);
        }
    } else {
        die('The file ' . __FILE__ . " is corrupted.\n");
    }
    if (function_exists('_il_exec')) {
        return _il_exec();
    }
    echo ("Site error: the " . (php_sapi_name() == 'cli' ? 'ionCube' : '<a         href="http://www.ioncube.com">ionCube</a>') . " PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit " . (php_sapi_name() == 'cli' ? 'get-loader.ioncube.com' : '<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>') . " for install assistance.\n\n");
    exit(199);
    ?>

我與主題提供者聯系后,他們說代碼沒有錯,問題出在主機服務器上。 我與我的網站托管服務提供商競爭,他們說ioncube在服務器上正常運行。 我該怎么辦?

“已損壞”(而不是“已損壞”)來自ionCube文件開頭的PHP序言,表示ionCube Loader認為該文件可能不是ionCube文件。 如果它具有前導,則將永遠不會執行,因為加載程序將接管文件的處理。 原因之一是對顯示在編碼數據之前的文本大小進行了重大更改,例如,如此處所述,美化了通常緊湊的PHP代碼。 您應該確保使用的是腳本提供者提供的未經修改的原始文件,如果仍然遇到問題,請聯系ionCube支持。 如果收到“已損壞”消息,則通常表明加載程序已將文件識別為ionCube文件,但已損壞,例如通過刪除開發人員嵌入的版權文本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM