“ioncube”;路径/to/file.php已损坏";错误
我有一个wordpress网站,在安装了一个插件之后,它突然崩溃了,我得到了一个错误:“文件/home/omdikalc/public_html/wp content/themes/martfury/functions.php已损坏。”。 错误引用的文件是my theme的function.php文件,该文件使用ioncube编码,并包含引发错误的这部分代码:“ioncube”;路径/to/file.php已损坏";错误,php,wordpress,ioncube,Php,Wordpress,Ioncube,我有一个wordpress网站,在安装了一个插件之后,它突然崩溃了,我得到了一个错误:“文件/home/omdikalc/public_html/wp content/themes/martfury/functions.php已损坏。”。 错误引用的文件是my theme的function.php文件,该文件使用ioncube编码,并包含引发错误的这部分代码: <?php //00543 // Encoded by www.Rtl-Theme.com // Enco
<?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在服务器上正常运行。
我应该怎么办?< p>“被破坏”(与“腐败”相反)来自于一个IoCube文件开始时的PHP前导,并指示IoCube加载器没有考虑文件可能是一个Iobe立方体文件;如果它有前导将永远不会得到执行,因为加载程序将接管处理文件。其中一个原因是对编码数据之前显示的文本大小进行了重大更改,例如美化了通常紧凑的PHP代码,就像这里所做的那样。您应该确保使用的是脚本提供程序提供的原始、未修改的文件,如果仍然无法使用,请与ionCube支持部门联系。如果您收到“已损坏”消息,这通常表示加载程序已将该文件识别为ionCube文件,但该文件已损坏,例如通过删除开发人员嵌入的版权文本