Question
Something is clustering the Apache
error_log file of our system with tons of the following 'errors'
... [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
... view: Use of uninitialized value in hash element at ../lib/TWiki/Prefs.pm line 413.
....
... view: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Prefs.pm line 636.
... view: Use of uninitialized value in pattern match (m//) at ../lib/TWiki/Plugins/TablePlugin.pm line 187.
What may be the problem?
Environment
| TWiki version: |
TWikiRelease01Sep2004 |
| TWiki plugins: |
DefaultPlugin, SpreadSheetPlugin (26 Sep 2004) , MacrosPlugin ('1.001'), ChildTopicTemplatePlugin (V1.000p), ActionTrackerPlugin (2.013), BeautifierPlugin (V1.14), BugzillaQueryPlugin (1.03), CalendarPlugin (V1.012), ChartPlugin (V1.400), CommentPlugin (3.007), EditTablePlugin (16 Sep 2004), FormQueryPlugin (1.3), GaugePlugin (01 May 2003), GnuSkinPlugin (1.2), HeadlinesPlugin (V1.001), InterwikiPlugin (1.005), LdapPlugin (22 Apr 2002), LocalCityTimePlugin (23 Nov 2003), NotificationPlugin (V1.03p), RandomQuotePlugin (V0.001), RecursiveRenderPlugin (V0.2), RenderListPlugin (V1.031), SessionPlugin (), SlideShowPlugin (V1.003), SmiliesPlugin (v1.003), TWikiDrawPlugin (1.101), TablePlugin (01 Aug 2004), TocPlugin (1.0), TopicVarsPlugin (23 Jul 2003), TreePlugin (0.311) |
| Server OS: |
RedHat Linux |
| Web server: |
Apache 1.38 |
| Perl version: |
5.6.1 |
| Client OS: |
Windows 2000, Linux |
| Web Browser: |
Internet Explorer, Mozilla (Firebird) |
--
FranzJosefSilli - 14 Oct 2004
Answer
The 401 error is due to using an absolute URL in the
ErrorDocument in your .htaccess.
There are no substitutions at those line numbers in my installation. Is your Cairo hacked/bodged/patched?
- Slightly, I just left the old Regex expressions in TWikiDotPm so that older Plugins don't break immediately (till I get newer versions or am able to patch them myself), but I am about to switch it to the latest Alpha from SVN, if ever I get a connection again.
- FJ
TablePlugin I can't help with
--
CrawfordCurrie - 14 Oct 2004
../lib/TWiki is an idication that you use a relative path. Make this absolute in
twiki/bin/setlib.cfg
- Didn't help.
- FJ
--
PeterThoeny - 14 Oct 2004
Thanks for the quick response! Will have another deep look in my configuration today and report back progress. Thanks!
--
FranzJosefSilli - 15 Oct 2004
Didn't find any flaw in my TWiki installation nor in the Plugins. It seems an problem of the Apache configuration which I have no access to

so I changed the first line of the scripts in
~/bin to
#!/usr/bin/perl -XT
That's no solution, but an effective workaround for my problem with the explosively growing
error_log file.
Thanks anyway.
--
FranzJosefSilli - 19 Oct 2004
Maybe the patch in
UploadAndSaveHangingForever does solve my problem too.
--
FranzJosefSilli - 29 Oct 2004
I'm seeing the issue in
TablePlugin.pm using the 20041030 beta. Here's the relevant code:
sub handleTableAttrs
{
my( $args ) = @_;
return "" if( $args =~/^\s*$/ );
I'm guessing that something is invoking
handleTableAttrs with no arguments.
...
I threw in some calls to
carp to track this down and the failing line is in
setDefaults:
handleTableAttrs( $prefsAttrs ); # Preferences setting
$prefsAttrs is
undef, but that shouldn't be, because
TWiki::Func::getPreferencesValue should return an empty string for an undefined preference.
Quick fix is to change line 186 to this:
return "" if( !$args || $args =~/^\s*$/ );
--
KennethPorter - 02 Dec 2004