Skip to content

DocDBHelp: “Can't use a hash as a reference” (Perl 5.34) - easy fix patch included #113

@pms967

Description

@pms967

More troubles with the help system. With up to date Perl (5.34) and libs, DocDBHelp fails with errors like the following in the apache log:

[cgi:error] AH01215: Can't use a hash as a reference at /var/www/docdb/cgi/DocDBHelp line 66.: /var/www/docdb/cgi/DocDBHelp, referer: SearchForm

The error is caused by (any/each of) these lines:

$DefaultText = %{$HelpXML->{entry}{$helpterm}}->{text};
$DefaultTitle = %{$HelpXML->{entry}{$helpterm}}->{title};

  $ProjectText = %{$ProjectXML->{entry}{$helpterm}}->{text};
  $ProjectTitle = %{$ProjectXML->{entry}{$helpterm}}->{title};
  $Action = %{$ProjectXML->{entry}{$helpterm}}->{action};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions