Open Power Template 2.x family
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!
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
Attached to Project:
Open Power Template
Opened by Zyx (Zyx) - Saturday, 21 February 2009, 05:29 GMT-7
Last edited by Zyx (Zyx) - Sunday, 22 February 2009, 23:43 GMT-7
Opened by Zyx (Zyx) - Saturday, 21 February 2009, 05:29 GMT-7
Last edited by Zyx (Zyx) - Sunday, 22 February 2009, 23:43 GMT-7
|
DetailsWhen 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. |
This task depends upon
Closed by Zyx (Zyx)
Sunday, 22 February 2009, 23:43 GMT-7
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 59
Sunday, 22 February 2009, 23:43 GMT-7
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 59