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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have a wordpress website and after installing a plugin suddenly it has been crashed and I got an error saying "The file /home/omdikalc/public_html/wp-content/themes/martfury/functions.php is corrupted.".
The file that the error is refering to is the function.php file of my theme and the file is encoded with ioncube and contains this part of code that raises the error:



    <?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.nnPlease visit " . (php_sapi_name() == 'cli' ? 'get-loader.ioncube.com' : '<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>') . " for install assistance.nn");
exit(199);
?>


I contacted with my theme provider and they said nothing is wrong with the code and the problem is with the host server.
I contected with my website host service provider and they said the ioncube is running on server properly.
what should I do?










share|improve this question





























    0















    I have a wordpress website and after installing a plugin suddenly it has been crashed and I got an error saying "The file /home/omdikalc/public_html/wp-content/themes/martfury/functions.php is corrupted.".
    The file that the error is refering to is the function.php file of my theme and the file is encoded with ioncube and contains this part of code that raises the error:



        <?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.nnPlease visit " . (php_sapi_name() == 'cli' ? 'get-loader.ioncube.com' : '<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>') . " for install assistance.nn");
    exit(199);
    ?>


    I contacted with my theme provider and they said nothing is wrong with the code and the problem is with the host server.
    I contected with my website host service provider and they said the ioncube is running on server properly.
    what should I do?










    share|improve this question

























      0












      0








      0








      I have a wordpress website and after installing a plugin suddenly it has been crashed and I got an error saying "The file /home/omdikalc/public_html/wp-content/themes/martfury/functions.php is corrupted.".
      The file that the error is refering to is the function.php file of my theme and the file is encoded with ioncube and contains this part of code that raises the error:



          <?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.nnPlease visit " . (php_sapi_name() == 'cli' ? 'get-loader.ioncube.com' : '<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>') . " for install assistance.nn");
      exit(199);
      ?>


      I contacted with my theme provider and they said nothing is wrong with the code and the problem is with the host server.
      I contected with my website host service provider and they said the ioncube is running on server properly.
      what should I do?










      share|improve this question














      I have a wordpress website and after installing a plugin suddenly it has been crashed and I got an error saying "The file /home/omdikalc/public_html/wp-content/themes/martfury/functions.php is corrupted.".
      The file that the error is refering to is the function.php file of my theme and the file is encoded with ioncube and contains this part of code that raises the error:



          <?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.nnPlease visit " . (php_sapi_name() == 'cli' ? 'get-loader.ioncube.com' : '<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>') . " for install assistance.nn");
      exit(199);
      ?>


      I contacted with my theme provider and they said nothing is wrong with the code and the problem is with the host server.
      I contected with my website host service provider and they said the ioncube is running on server properly.
      what should I do?







      php wordpress ioncube






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 7 '18 at 16:43









      Ehsan MahmoudzadeEhsan Mahmoudzade

      11




      11
























          1 Answer
          1






          active

          oldest

          votes


















          0














          "is corrupted" (as opposed to "is corrupt") comes from the PHP preamble at the start of an ionCube file and indicates that the ionCube Loader did not consider the file as being possibly an ionCube file; if it had the preamble would never get executed as the Loader would have taken over processing the file. One cause would be from making a significant change to the size of the text that appears before the encoded data, such as beautifying the normally compact PHP code as has been done here. You should ensure that you are using the original, unmodified files provided by the script provider, and if still stuck contact ionCube support. If you receive an "is corrupt" message this typically indicates that the Loader has recognised the file as an ionCube file but it was damaged, such as by removing copyright text that a developer has embedded.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53194007%2fioncube-the-path-to-file-php-is-corrupted-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            "is corrupted" (as opposed to "is corrupt") comes from the PHP preamble at the start of an ionCube file and indicates that the ionCube Loader did not consider the file as being possibly an ionCube file; if it had the preamble would never get executed as the Loader would have taken over processing the file. One cause would be from making a significant change to the size of the text that appears before the encoded data, such as beautifying the normally compact PHP code as has been done here. You should ensure that you are using the original, unmodified files provided by the script provider, and if still stuck contact ionCube support. If you receive an "is corrupt" message this typically indicates that the Loader has recognised the file as an ionCube file but it was damaged, such as by removing copyright text that a developer has embedded.






            share|improve this answer




























              0














              "is corrupted" (as opposed to "is corrupt") comes from the PHP preamble at the start of an ionCube file and indicates that the ionCube Loader did not consider the file as being possibly an ionCube file; if it had the preamble would never get executed as the Loader would have taken over processing the file. One cause would be from making a significant change to the size of the text that appears before the encoded data, such as beautifying the normally compact PHP code as has been done here. You should ensure that you are using the original, unmodified files provided by the script provider, and if still stuck contact ionCube support. If you receive an "is corrupt" message this typically indicates that the Loader has recognised the file as an ionCube file but it was damaged, such as by removing copyright text that a developer has embedded.






              share|improve this answer


























                0












                0








                0







                "is corrupted" (as opposed to "is corrupt") comes from the PHP preamble at the start of an ionCube file and indicates that the ionCube Loader did not consider the file as being possibly an ionCube file; if it had the preamble would never get executed as the Loader would have taken over processing the file. One cause would be from making a significant change to the size of the text that appears before the encoded data, such as beautifying the normally compact PHP code as has been done here. You should ensure that you are using the original, unmodified files provided by the script provider, and if still stuck contact ionCube support. If you receive an "is corrupt" message this typically indicates that the Loader has recognised the file as an ionCube file but it was damaged, such as by removing copyright text that a developer has embedded.






                share|improve this answer













                "is corrupted" (as opposed to "is corrupt") comes from the PHP preamble at the start of an ionCube file and indicates that the ionCube Loader did not consider the file as being possibly an ionCube file; if it had the preamble would never get executed as the Loader would have taken over processing the file. One cause would be from making a significant change to the size of the text that appears before the encoded data, such as beautifying the normally compact PHP code as has been done here. You should ensure that you are using the original, unmodified files provided by the script provider, and if still stuck contact ionCube support. If you receive an "is corrupt" message this typically indicates that the Loader has recognised the file as an ionCube file but it was damaged, such as by removing copyright text that a developer has embedded.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 17 '18 at 0:40









                NickNick

                1,098714




                1,098714
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53194007%2fioncube-the-path-to-file-php-is-corrupted-error%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Xamarin.iOS Cant Deploy on Iphone

                    Glorious Revolution

                    Dulmage-Mendelsohn matrix decomposition in Python