in reply to Weird mod_perl issue, popping up error on error_log
First of all, while it may seem convenient, at least this error stems from your use of Apache::Reload:
Apache2::Reload: Can't locate (set by Moose)
This happens because Apache::Reload tries to reload a package which has been created not from a file but from within Moose. When reloading, Apache::Reload tries to find the file named (set by Moose), which predictably does not exist. This can be harmless but might also mean that the package is not recreated by Moose when you would expect it to. Stop and restarting Apache instead of trying to "smartly" reload it would help here.
[Sat Nov 21 14:13:05 2015] Tools.pm: Prototype mismatch: sub Want::Too +ls::EXDEV: none vs () at /srv/www/site.net/www/cgi-bin/admin/Want/Too +ls.pm line 506.
Maybe the above error also stems from reloading Want::Tools, which overwrites/redeclares the EXDEV subroutine with a slightly different prototype, or you have predeclared EXDEV via:
sub EXDEV;
... but later declare it as sub EXDEV() { ... } or use constant EXDEV => ....
Lastly, let me advise strongly against having any module below /srv/www/site.net/www/cgi-bin/ which is not a .pl script. Keep your configuration files and modules and other stuff out of cgi-bin, as a webserver misconfiguration could expose them (and include passwords or module versions or expose bugs in the modules that would be much harder to find otherwise).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Weird mod_perl issue, popping up error on error_log
by ultranerds (Hermit) on Nov 21, 2015 at 17:59 UTC |