Re: Prototype Mismatch in ModPerl::PerlRun

2021-05-18 Thread Daniel Ragle
code triggers the warnings? Cheers! Dan On 5/18/2021 3:26 PM, Daniel Ragle wrote: Ed, thanks for your response! I had already tried most of your suggestions: Putting the module load in the startup (with or without the import) didn't make a difference (still get the prototype mismatch

Re: Prototype Mismatch in ModPerl::PerlRun

2021-05-18 Thread Daniel Ragle
Ed, thanks for your response! I had already tried most of your suggestions: Putting the module load in the startup (with or without the import) didn't make a difference (still get the prototype mismatch on the second and subsequent runs of the script); and yah, importing nothing and referring

Re: Prototype Mismatch in ModPerl::PerlRun

2021-05-14 Thread Edward J. Sabol
warnings; > > use Time::HiRes qw(time); > > use CGI; > my $cgi = CGI->new(); > > print $cgi->header(); > print "Hello World\n"; > print "HiRes time is: ", time(), "\n"; > # > > The script

Prototype Mismatch in ModPerl::PerlRun

2021-05-14 Thread Daniel Ragle
The script runs properly as far as I can see, but I'm getting Prototype Mismatch warnings in the log with each hit after the first one: Prototype mismatch: sub ModPerl::ROOT::ModPerl::PerlRunPrefork::var_www_test_test2_2epl::time: none vs () at /var/www/test/test2.pl line 6. Other tests r

Re: Apache2::Reload, Prototype mismatch

2017-08-22 Thread Ben RUBSON
Thank you Randolf for your answer. Of course for the "subroutine redefined" messages, I agree. But what about the "Prototype mismatch" messages ? Ben > On 22 Aug 2017, at 16:50, Randolf Richardson <rand...@modperl.pl> wrote: > > The "subroutine re

Re: Apache2::Reload, Prototype mismatch

2017-08-22 Thread Randolf Richardson
Module Apache2::Reload > PerlInitHandler Apache2::Reload > PerlSetVar ReloadDirectories "/d/" > > It works perfectly. > Of course I get the warnings "Subroutine redefined" when modules are reloaded. > > But I also get : > Prototype mismatch: sub Functions::to

Re: Apache2::Reload, Prototype mismatch

2017-08-22 Thread Ben RUBSON
is reloaded : Prototype mismatch: sub Functions::encode_json: none vs ($@) at /d/Mod.pm line 6. encode_json is exported by default, but I don't use it at all. Thank you again, Ben > On 22 Aug 2017, at 12:32, 风河 <m...@fenghe.org> wrote: > > I think JSON module export from_j

Re: Apache2::Reload, Prototype mismatch

2017-08-22 Thread 风河
d" when modules are reloaded. > > But I also get : > Prototype mismatch: sub Functions::to_json: none vs ($@) at /d/Mod.pm line 6. > Prototype mismatch: sub Functions::from_json: none vs ($@) at /d/Mod.pm line > 6. > Prototype mismatch: sub Functions::sha256_hex: no

Apache2::Reload, Prototype mismatch

2017-08-22 Thread Ben RUBSON
Hello, I use Apache2::Reload on my dev env : PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlSetVar ReloadDirectories "/d/" It works perfectly. Of course I get the warnings "Subroutine redefined" when modules are reloaded. But I also get : Prototype mis

Re: Prototype mismatch

2014-11-20 Thread Perrin Harkins
? The line in the script where this ocures says: use FileHandle; cheers Worik Prototype mismatch: sub Apache::AdMachine::Track::LOCK_UN: none vs () Prototype mismatch: sub Apache::AdMachine::Track::LOCK_NB: none vs () Prototype mismatch: sub Apache::AdMachine::Track::SEEK_END: none vs

Prototype mismatch

2014-11-17 Thread Worik Stanton
I get the following messages in my apache2/error.log when I restart. Why is that? What steps should I take to diagnose the problem? The line in the script where this ocures says: use FileHandle; cheers Worik Prototype mismatch: sub Apache::AdMachine::Track::LOCK_UN: none vs () Prototype

Re: Prototype mismatch: sub main::strftime

2008-08-26 Thread Torsten Foertsch
On Tue 26 Aug 2008, Darragh Gammell wrote: Subroutine main::strftime redefined at /usr/share/perl/5.8/Exporter.pm line 66.  at /home/secure/public_html/tagtag/send.cgi line 10 Prototype mismatch: sub main::strftime: none vs ($\@;$) at /usr/share/perl/5.8/Exporter.pm line 66.  at /home/secure

Prototype mismatch: sub main::strftime

2008-08-25 Thread Darragh Gammell
Hi I'm getting this error in my apache logs but I've no idea how to fix it. Any help would be much appreciated. [Tue Aug 26 10:07:55 2008] [error] [client ] Prototype mismatch: sub main::strftime: none vs ($\\@;$) at /usr/share/perl/5.8/Exporter.pm line 66., referer: https://secure.blah.net.au

File::stat prototype mismatch in error log

2008-05-29 Thread John Gateley
Hi, I'm using Apache2 and mod_perl Server: Apache2/2.0.55 (Ubuntu) mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7 I am getting the following error in /var/log/apache2/error.log Prototype mismatch: sub ModPerl::ROOT::ModPerl::PerlRun

Re: File::stat prototype mismatch in error log

2008-05-29 Thread Michael Peters
John Gateley wrote: Prototype mismatch: sub ModPerl::ROOT::ModPerl::PerlRun::home_yadb_httpd_cgi_2dbin_CoverArtSubmitFile_2ecgi::lstat: none vs ($) at /usr/share/perl/5.8/Exporter.pm line 65. at /home/yadb/httpd/cgi-bin/CoverArtSubmitFile.cgi line 13 CoverArtSubmitFile.cgi line 13

Re: File::stat prototype mismatch in error log

2008-05-29 Thread John Gateley
On Thu, 29 May 2008 14:33:54 -0400 Michael Peters [EMAIL PROTECTED] wrote: John Gateley wrote: use File::stat; So by default it's trying to override the built-in stat() function. Seems to be conflicting. Overriding built-in's usually not a good idea. Thanks - I changed it to use