Invenzzia »

IMPORTANT ANNOUNCEMENT

Due to the uncertain status of the Flyspray project, lack of new releases and moving the code repository to Github, we decided to shutdown this issue tracker by the end of January 2011. From that date, the bugs should be reported directly in Github project repositories.

List of repositories:

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!
Tasklist

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-8
Last edited by Zyx (Zyx) - Sunday, 22 February 2009, 23:43 GMT-8
Task Type Bug Report
Category Base class
Status Closed
Assigned To Zyx (Zyx)
Operating System OS-independent
Severity Medium
Priority Normal
Reported Version 2.0-beta2
Due in Version 2.0-beta3
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

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.
This task depends upon

Closed by  Zyx (Zyx)
Sunday, 22 February 2009, 23:43 GMT-8
Reason for closing:  Fixed
Additional comments about closing:  Fixed in rev. 59

Loading...