CatEventHandler fatal error when ItemPropertyMappings not defined

2 views
Skip to first unread message

Sergejs Gribs

unread,
Oct 28, 2009, 4:39:19 PM10/28/09
to in-port...@googlegroups.com
OnBeforeItemUpdate event in CatEventHandler class throws fatal error when trying to access undefined variable as object. This happen because $object is defined inside "if" construction, but after that is also used outside. Nobody never tried making custom Category Item without ItemPropertyMappings defined in config (this is "if" condition) until now, so we never have seen this issue.

Attached patch fixes the bug.
fatal_error_if_ItemPropertyMapping_not_set.patch

Alexander Obuhovich

unread,
Oct 29, 2009, 3:06:06 PM10/29/09
to in-port...@googlegroups.com
Such type of error is really hard to pinpoint. The only way is by using problematic code, which you actually did. Thanks for the input.


On Wed, Oct 28, 2009 at 10:39 PM, Sergejs Gribs <serg...@gmail.com> wrote:
OnBeforeItemUpdate event in CatEventHandler class throws fatal error when trying to access undefined variable as object. This happen because $object is defined inside "if" construction, but after that is also used outside. Nobody never tried making custom Category Item without ItemPropertyMappings defined in config (this is "if" condition) until now, so we never have seen this issue.

Attached patch fixes the bug.





--
Best Regards,

http://www.alex-time.com

Dmitry A.

unread,
Dec 7, 2009, 12:05:19 AM12/7/09
to In-Portal Bugs
New bug filed.

440: CatEventHandler fatal error when ItemPropertyMappings not defined

http://tracker.in-portal.org/view.php?id=440


DA.

On Oct 29, 1:06 pm, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> Such type of error is really hard to pinpoint. The only way is by using
> problematic code, which you actually did. Thanks for the input.
>
Reply all
Reply to author
Forward
0 new messages