Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3225 "Sections" admin broken; 'sections-all' not defined

open
Chris Nandor
Admin (123)
1
2005-01-11
2004-12-14
MarkG
No

I have a brand new install of the latest stuff as of
12/10/04 and the Admin page for "Sections" section
appears to be broken: the page shows no Sections, just
an "add Section" button, and the appache
<site>_error_log file contains this line:

[Tue Dec 14 02:20:14 2004]
[error] /sections.pl:Apache::ROOT...::sections_2epl:/usr/
local/slash/site/sitename/htdocs/sections.pl:142:getDesc
riptions - no descref for codetype 'sections-all'

This is in reference to the following code in sections.pl
(from the Sections plugin):

sub listSections {
my($user) = @_;
my $slashdb = getCurrentDB();

if ($user->{section}) {
editSection($user->{section});
return;
}
# this is the line that is failing...
my $section_titles = $slashdb->getDescriptions
('sections-all');
...
}

It looks like getDescriptions() is supposed to be able to
know what 'sections-all' is, but I (and the code) can't
find any reference to that symbol anywhere except in
sections.pl.

I know that Sections & Topics were changed a lot this
summer, so maybe I'm expecting something to work that
shouldn't (or doesn't need to). Is this a bug?

Thanks
Mark

Discussion

  • Rob Malda
    Rob Malda
    2005-01-11

    • priority: 5 --> 1
    • assigned_to: nobody --> pudge
     
  • Chris Nandor
    Chris Nandor
    2005-02-02

    Logged In: YES
    user_id=3660

    sections.pl not working is known, and there are no immediate plans to fix
    it. It is a bug of sorts, but more like an incomplete feature: we never
    ported it to work with the new system.