PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#52 - Instruction and format plugins are not loaded properly
Opened by Zyx (Zyx) - Saturday, 21 February 2009, 05:29 GMT-8
Last edited by Zyx (Zyx) - Sunday, 22 February 2009, 23:43 GMT-8
When we try to load an instruction plugin, we encounter two errors:
1. Fatal error: OPT_INSTRUCTION constant not found.
2. Opt_Instruction_Xxx not found.
The first problem is generated by the plugin loading code that uses "self::OPT_INSTRUCTION" instead of "Opt_Class::OPT_INSTRUCTION" during the instruction registration.
The second problem is caused by the autoloader - the Opt_Loader::map() method maps the new class according to the library files location, whereas the plugins can be kept in a separate place that has nothing to do with the library files. The solution is to introduce an extra method to the autoloader that allows to provide an absolute path, independent from the autoloader settings.
Sunday, 22 February 2009, 23:43 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 59