Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages
Node.js, PHP and APIs

ionCube error: the file cannot be decoded by this version of the Loader

Errorcannot be decoded by this version of the ionCube Loader

Short answer

The plugin's files were encoded for a newer ionCube Loader than the one PHP has loaded, or no Loader is loaded for the PHP version your site runs. Install the current Loader for that exact PHP version with the ionCube Loader Wizard, restart PHP, and reload the site. Ask the plugin vendor if the file still fails.

  • Applies to PHP 8.3, PHP 8.4, ionCube Loader 15
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Fix it fast

  1. 1Find out which cause you have

    Find out which PHP version serves the site. The Loader must be built for that exact version. Check the web PHP, not only the command line, since they can differ.

    php -v
  2. 2Match what you see, then jump to its fix

    1. 1The plugin or theme was just installed or updated, and the Loader on the server is older than beforeThe installed Loader is older than the one the files needFix
    2. 2The Loader is set up in php.ini but the Loader Wizard still reports it as not loadedThe Loader file does not match the PHP version, thread safety or architectureFix

What does the error look like?

  • cannot be decoded by this version of the ionCube Loader

Cause 1 of 2

The installed Loader is older than the one the files need

1Check

ionCube Loaders run files from earlier Encoder versions, but not the other way round: a new file can need a new Loader. Encoders can also set a Minimum Loader version that stops files running on a Loader older than that number.

php -v

2Fix

Install the latest Loader for your PHP version. The ionCube Loader Wizard is the recommended route: it inspects the server and tells you which Loader file to use and what to change in php.ini.

# upload the Wizard from ioncube.com/loaders.php to your web space,
# open it in a browser and follow its instructions, then
sudo systemctl restart php8.3-fpm

3Verify

Open the Loader Wizard again, then reload a page that uses the plugin.

sudo systemctl restart php8.3-fpm

Confirmed by ioncube.com

Did this fix it?

Cause 2 of 2

The Loader file does not match the PHP version, thread safety or architecture

1Check

ionCube ships separate packages by operating system, 32 or 64 bit, and for Windows by Visual C++ build and thread-safe or non-thread-safe. A file built for another PHP version will not load.

php -i | grep -i -E 'Thread Safety|Architecture|Loaded Configuration File'

2Fix

Download the package that matches those values, point zend_extension at it, and restart PHP. If you do not know the values, ask the hosting company or use the Wizard.

; php.ini: use the zend_extension line the Loader Wizard shows
; for your server, then restart PHP

3Verify

Restart PHP, then open the Loader Wizard in the browser again: it should report the Loader as installed.

sudo systemctl restart php8.3-fpm

Confirmed by ioncube.com

Did this fix it?

How do I stop it coming back?

  • Update the ionCube Loader whenever you change the PHP version, since each PHP version has its own Loader file.
  • Read the plugin's requirements page for the Loader version it expects before upgrading it.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Projects of mine built on the same technologies:

Related fixes

Back end

Apache returns 403 when a URL contains %3F

a request like /page%3Fname=test is refused while /page?name=test works

Recent Apache httpd blocks a rewrite when the request contains an encoded question mark (%3F) and the rewritten target has a literal ?.

2 causes, each with a fix

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.