Technote Details :: MX Kollection files break when using IonCube

Issue

After encoding files that were generated using MX Kollection 3 with the IonCube PHP Encoder, I get an error that required classes cannot be instantiated.

Reason

This happens because when MX Kollection  is used for development on a PHP 5 application server it uses a feature introduces by PHP 5: automatic loading of classes through the autoload function. This feature does not exist in older versions of PHP (you had to manually load the class files).

If you use the PHP 4 encoding setting when defining a new project (the PHP 4 radio button in the encoder GUI ), the classes required by MX Kollection will not be included (the encoder does not know how to access them).

Solution

To solve this problem, configure IonCube PHP Encoder to encode files for PHP 5 only, in order to use the language specific features. To do so, from the IonCube PHP Encoder GUI, select Project > Project Settings and check the PHP 5 radio button.

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.