Tags:
create new tag
, view all tags

Bug: File Not Found Errors When Switching to ModPerl

I hope I'm doing the right thing by opening a bug report instead of adding to ModPerl or TigerSkin...

Everthing was working fine, if a little slowly. Some of the other pages on performance mention mod_perl makes an improvement. I installed mod_perl using CPAN.

Test case

  • modified twiki/bin/.htaccess as per ModPerl page
  • modified /var/www/conf/httpd.conf in the same spirit:
    # added by matt, modified 28-September-2001
    ScriptAlias /twiki/bin/ "/var/www/twiki/bin/"
    Alias /twiki/ "/var/www/twiki/"
    <Directory "/var/www/twiki/bin">
       #SetHandler cgi-script
       SetHandler perl-script
       PerlHandler Apache::Registry
       Options ExecCGI
       PerlSendHeader On
       AllowOverride all
       Allow from all
    </Directory>
    <Directory "/var/www/twiki/pub">
       Options FollowSymLinks +Includes
       AllowOverride None
       Allow from all
    </Directory>
* restarted apache and ...yuk, all the icons and graphics disappeared (I'm using TigerSkin). These errors are showing up in my apache log:
[Fri Sep 28 15:24:25 2001] [notice] Apache/1.3.19 (Unix) mod_perl/1.26 configured -- resuming normal operations
[Fri Sep 28 15:24:57 2001] view: Use of uninitialized value in string eq at ../lib/TWiki.pm line 444.
[Fri Sep 28 15:24:57 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 62.
[Fri Sep 28 15:24:57 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 62.
[Fri Sep 28 15:24:57 2001] view: Subroutine initPlugin redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 55.
[Fri Sep 28 15:24:57 2001] view: Subroutine DISABLE_commonTagsHandler redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 77.
[Fri Sep 28 15:24:57 2001] view: Subroutine DISABLE_startRenderingHandler redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 92.
[Fri Sep 28 15:24:57 2001] view: Subroutine DISABLE_outsidePREHandler redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 105.
[Fri Sep 28 15:24:57 2001] view: Subroutine DISABLE_insidePREHandler redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 118.
[Fri Sep 28 15:24:57 2001] view: Subroutine DISABLE_endRenderingHandler redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 131.
[Fri Sep 28 15:24:57 2001] view: Subroutine initializeUserHandler redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 142.
[Fri Sep 28 15:24:57 2001] view: Subroutine registrationHandler redefined at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 166.
[Fri Sep 28 15:24:57 2001] view: Use of uninitialized value in split at ../lib/TWiki/Plugins/UserCookiePlugin.pm line 144.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 323.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 324.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 329.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 329.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Store.pm line 1234.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in string eq at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 216.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in string eq at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 216.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in string eq at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 216.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in string eq at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 216.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Store.pm line 1367.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Store.pm line 1367.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Store.pm line 1234.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Store.pm line 1234.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in substitution (s///) at ../lib/TWiki.pm line 1274.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki.pm line 1289.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki.pm line 1290.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/TigerSkinPlugin.pm line 79.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki.pm line 1289.
[Fri Sep 28 15:24:58 2001] view: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki.pm line 1290.
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/twiki.css
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/menuscript.js
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/line1.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/transp_black.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/topbit_twiki.jpg
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/logo.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/top_curve.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/transp.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/question_mark.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/green_arrow2.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/icon_pencil.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/editpage.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/twikilogo3.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/greenfolder.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/bottom_curve.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/green_arrow.gif
[Fri Sep 28 15:24:58 2001] [error] [client 199.247.173.75] File does not exist: /var/www/twiki/pub/pub/TWiki/TigerSkin/dottedVR.gif

(Notice the double '/pub/pub/')

-- MattWilkie - 28 Sep 2001

Fix record

This problem may not be related to mod_perl (?)

* I removed the Tiger, Session, and UserCookie plugins. * I restored the original Sept01 TWIki files changed by the plugins (TWikie.pm, register, etc.) * I restored the original httpd.conf and bin/.htaccess settings

...and still recieved the "uninitialized value" and "pub/pub" error messages.

So, I edited TWiki.cfg to:

#                   %PUBURLPATH% : Public data path of TWiki URL (root of attachments) :
# mattwilkie note: this was originally "/twiki/pub" but it broke when I upgraded perl to 5.6.1 and installed mod_perl
$pubUrlPath       = "/twiki";
#                   Public data directory, must match $pubUrlPath :
$pubDir           = "/var/www/twiki/pub";

Which fixed the problem. I have since reinstalled TigerSkinPlugin, but not the other two, and the problem did not reappear. While I may be misremembering things I did or did not do before encountering (creating?) and attempting to remedy the problem, the one thing I am sure I didn't do is modify TWiki.cfg.

Notes:

* In order to install mod_perl I needed to upgrade to perl-5.6.1, which I did using CPAN. * Although I turned off (I think?) mod_perl by removing the PerlHandler statements mod_perl is still loaded by Apache.

-- MattWilkie - 02 Oct 2001

Environment

TWiki version: 2001September01
TWiki plugins: TigerSkinPlugin, SessionPlugin, UserCookiePlugin
Server OS: Tru64 v5.0 (alpha_dec_osf)
Web server: Apache 1.3.19
Perl version: 5.6.1
Client OS: n/a
Web Browser: n/a

-- MattWilkie - 28 Sep 2001

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2001-12-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.