GT Staff -- help please, this has just started happening today ...
Running nph-build.cgi --changed, from both shell and browser, we get this fatal error ...
A fatal error has occured:GT::SQL::Table (48591): Wrong argument passed to this subroutine.
Usage: Must pass category id to parents at <PATH_TO>/admin/Links/Category.pm line 334.
Stack Trace
======================================
Links (48695): Links::environment called at <PATH_TO>/admin/Links.pm line 430 with no arguments.
Links (48695): Links::fatal called at GT::Base::error line 360 with arguments
(GT::SQL::Table (48695): Wrong argument passed to this subroutine.
Usage: Must pass category id to parents at <PATH_TO>/admin/Links/Category.pm line 334.
).
Links (48695): GT::Base::error called at <PATH_TO>/admin/Links/Category.pm line 334 with arguments
(Links::Category=HASH(0x864a6dc), BADARGS, FATAL, Must pass category id to parents).
Links (48695): Links::Category::parents called at Links::Build::build_changed_flags line 50 with arguments
(Links::Category=HASH(0x864a6dc), 0).
Links (48695): Links::Build::build_changed_flags called at <PATH_TO>/admin/GT/Plugins.pm line 108 with arguments
(HASH(0x82d7670)).
Links (48695): GT::Plugins::dispatch called at <PATH_TO>/admin/Links/Build.pm line 30 with arguments
(GT::Plugins, <PATH_TO>/admin/Plugins, build_changed_flags, *Links::Build::build_changed_flags, HASH(0x82d7670)).
Links (48695): Links::Build::build called at <PATH_TO>/admin/nph-build.cgi line 756 with arguments
(changed_flags, HASH(0x82d7670)).
Links (48695): main::_build_changed_flags called at <PATH_TO>/admin/nph-build.cgi line 129 with no arguments.
Links (48695): main::build_changed called at <PATH_TO>/admin/nph-build.cgi line 41 with no arguments.
Links (48695): main::main called at <PATH_TO>/admin/nph-build.cgi line 32 with no arguments.
Line 334 is in sub parents ...
All the categories have a valid FatherID.
We are going to comment out _build_changed_flags() as a temporary avoidance measure, but there is obviously something wrong and we can't find it.
Running nph-build.cgi --changed, from both shell and browser, we get this fatal error ...
Code:
Updating Changed Flags ... A fatal error has occured:GT::SQL::Table (48591): Wrong argument passed to this subroutine.
Usage: Must pass category id to parents at <PATH_TO>/admin/Links/Category.pm line 334.
Stack Trace
======================================
Links (48695): Links::environment called at <PATH_TO>/admin/Links.pm line 430 with no arguments.
Links (48695): Links::fatal called at GT::Base::error line 360 with arguments
(GT::SQL::Table (48695): Wrong argument passed to this subroutine.
Usage: Must pass category id to parents at <PATH_TO>/admin/Links/Category.pm line 334.
).
Links (48695): GT::Base::error called at <PATH_TO>/admin/Links/Category.pm line 334 with arguments
(Links::Category=HASH(0x864a6dc), BADARGS, FATAL, Must pass category id to parents).
Links (48695): Links::Category::parents called at Links::Build::build_changed_flags line 50 with arguments
(Links::Category=HASH(0x864a6dc), 0).
Links (48695): Links::Build::build_changed_flags called at <PATH_TO>/admin/GT/Plugins.pm line 108 with arguments
(HASH(0x82d7670)).
Links (48695): GT::Plugins::dispatch called at <PATH_TO>/admin/Links/Build.pm line 30 with arguments
(GT::Plugins, <PATH_TO>/admin/Plugins, build_changed_flags, *Links::Build::build_changed_flags, HASH(0x82d7670)).
Links (48695): Links::Build::build called at <PATH_TO>/admin/nph-build.cgi line 756 with arguments
(changed_flags, HASH(0x82d7670)).
Links (48695): main::_build_changed_flags called at <PATH_TO>/admin/nph-build.cgi line 129 with no arguments.
Links (48695): main::build_changed called at <PATH_TO>/admin/nph-build.cgi line 41 with no arguments.
Links (48695): main::main called at <PATH_TO>/admin/nph-build.cgi line 32 with no arguments.
Line 334 is in sub parents ...
Code:
my $id = shift or return $self->error ('BADARGS', 'FATAL', "Must pass category id to parents");All the categories have a valid FatherID.
We are going to comment out _build_changed_flags() as a temporary avoidance measure, but there is obviously something wrong and we can't find it.