Jump to content


Welcome to IPS!

Feel free to browse our community to get a feel for how our community software operates. Post in the pre-sales forum with any questions you have before purchasing or use the Test Posting forum to post a few messages yourself! You can also get a free demo to try the IPS Community Suite yourself.

Already an active IPS client?

Login with the same email address and password you use for the client area to access client-only areas.

Issue information

  • #020411

  • Fixed

  • 3.0.5

  • 2.0.0 Beta 3

  • 0 - None Assigned


Issue Confirmations

  • Yes (0)No (0)
Photo

Hooks issue

Posted by Mark on 04 January 2010 - 07:02 AM

Quote

When I create 2 or more hooks that extend the same class such as the public_forums_moderate_moderate the last hook installed is the only hook loaded into the IPB system. The hooks and functions are all uniquely defined so it is not a naming problem.

Do you have a fix for this bug?

Ticket reference 626812

Updating status to: Confirmed - Admin CP General
Updating severity to: 2 - Fair
Updating version to: 3.0.5

Not tested, but it sounds like the same issue as this:

http://community.inv...ing-themselves/


Yes, sounds like it. I explained how it was *supposed* to work in the topic - sounds like new hooks aren't being updated to extend the right class however.


Updating status to: Confirmed - Ongoing Research

This is going to require more investigation. As long as the action overloaders each get their extends portion set up properly in the hook XML using (~extends~), then the classes are set up properly, with the first hook extending the IP.Board class, and the second hook extending the first hook's class. But then it never appears to let the second hook actually execute. Doing simple echo statements in each hook only outputs the first one.


Yes, i can confirm it. I had this situation many times with my hooks.


Looks like Josh already fixed this when changing the hooks system, we still need to test this better however :)


Updating status to: Fixed
Issue fixed in: 3.1.0 Beta 1

This is not an issue anymore in 3.1 because of the changes we made but if someone doesn't want to wait for the new release (3.1 will take some time) I have made a patch for the 3.0.x code.

Manual instructions and file already updated (file for 3.0.5 only) are available here: http://community.inv...html?record=305


Confirmed. Now working with fix.






0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users