You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- ../../DocDB-8.8.9/cgi/DocDBHelp 2018-06-26 20:19:08.000000000 +0200
+++ DocDBHelp 2023-08-17 17:48:23.990017444 +0200
@@ -54,15 +63,15 @@
my $HelpXML = XMLin("DocDBHelp.xml");
-$DefaultText = %{$HelpXML->{entry}{$helpterm}}->{text};
-$DefaultTitle = %{$HelpXML->{entry}{$helpterm}}->{title};
+$DefaultText = $HelpXML->{entry}->{$helpterm}->{text};
+$DefaultTitle = $HelpXML->{entry}->{$helpterm}->{title};
if ($ProjectHelp) {
my $ProjectXML = XMLin("ProjectHelp.xml");
- $ProjectText = %{$ProjectXML->{entry}{$helpterm}}->{text};
- $ProjectTitle = %{$ProjectXML->{entry}{$helpterm}}->{title};
- $Action = %{$ProjectXML->{entry}{$helpterm}}->{action};
+ $ProjectText = $ProjectXML->{entry}->{$helpterm}->{text};
+ $ProjectTitle = $ProjectXML->{entry}->{$helpterm}->{title};
+ $Action = $ProjectXML->{entry}->{$helpterm}->{action};
}
# Remove line breaks and XML element tags
pms967
changed the title
DocDBHelp: “Can't use a hash as a reference” (Perl 5.34)
DocDBHelp: “Can't use a hash as a reference” (Perl 5.34) - easy fix patch included
Aug 17, 2023
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:
The text was updated successfully, but these errors were encountered: