Skip Menu |

This queue is for tickets about the WWW-CheckSite CPAN distribution.

Report information
The Basics
Id: 30526
Status: open
Priority: 0/
Queue: WWW-CheckSite

People
Owner: abeltje [...] cpan.org
Requestors: josh [...] knowmad.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug
Date: Tue, 6 Nov 2007 14:50:20 -0700 (MST)
To: bug-WWW-CheckSite [...] rt.cpan.org
From: josh [...] knowmad.com
Distribution name and version: WWW-CheckSite-0.018 Perl version: v5.8.8 Operating System vendor and version: linux redhat Here is checksite.pl use lib qw(/var/www/vhosts/babypips.com/scripts); use WWW::CheckSite; use BP_Mech; use Data::Dumper; use strict; my $website = 'http://dev.babypips.com'; my $wcs = WWW::CheckSite->new( uri => $website, prefix => 'babypips', dir => '/var/www/vhosts/babypips.com/public_html/w3c_test/', save => 1, validate => 'by_uri', v => 2, ua_class => 'BP_Mech' ); #print Dumper($wcs); print "Checking $website for validity\n"; $wcs->validate; print "Writing Report\n"; $wcs->write_report; print "Done.\n"; ------------------------------------ Here is BP_Mech.pm package BP_Mech; use base 'WWW::Mechanize'; sub get_basic_credentials { ( 'babypips', 'forexpips' ) } 1; ---------------------------------- Here is the error. Cannot initialise a UserAgent: Can't locate URI/javascript.pm in @INC (@INC contains: /babypips.com/scripts /us.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/lo at /usr/local/lib/perl5/site_perl/5.8.8/WWW/CheckSite.pm line 192 ----------------------------------- And i also had to add.. validate => 'by_uri', v => 2, It failed to run the script if i didn't have these things in there. Any suggestions or help?
There is a version 0.019_51 (beta) release on CPAN with a slight interface change, but could you try that, please? -- Abe.
Subject: Re: [rt.cpan.org #30526] Bug
Date: Wed, 7 Nov 2007 12:05:46 -0700 (MST)
To: bug-WWW-CheckSite [...] rt.cpan.org
From: josh [...] knowmad.com
Hey, We tried that today and upgrade to your beta version and ran the same script and it dies at the same location with the same error message. Any more ideas? Is there a module we could be missing that is causing this to die? Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=30526 > > > There is a version 0.019_51 (beta) release on CPAN with a slight > interface change, but could you try that, please? > > -- Abe. >
CC: josh [...] knowmad.com
Subject: Re: [rt.cpan.org #30526] Bug
Date: Wed, 07 Nov 2007 23:57:09 +0100
To: bug-WWW-CheckSite [...] rt.cpan.org
From: Abe Timmerman <abeltje [...] cpan.org>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 josh@knowmad.com via RT wrote: Show quoted text
> Queue: WWW-CheckSite > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=30526 > > > Hey, > > We tried that today and upgrade to your beta version and ran the same > script and it dies at the same location with the same error message. > > Any more ideas? Is there a module we could be missing that is causing this > to die?
Hi Josh, Sorry, I pointed you to the wrong snapshot. The one I meant is only on my website: http://www.test-smoke.org/download/WWW-CheckSite-0.019_52.tar.gz and please first try to run the check with the provided checksite script. If that works we can move on to your own script. you will have to specify both --html_validator and --css_validator as well as --html_upload and --css_upload (the last two because the site is behind basic authentication, so the validators cannot get at the content) You will also have to set your spcial --ua_class=BP_Mech There may still be issues, but can try and solve 'm along the way. As the interface has changed, please read the manpages to get more info. Thanks for your interest + HTH, - -- Abe. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHMkLF0u0nt7xxiCIRAhM3AKCKvuwZpuxXlpKPOIkB098drq5FgQCgoLmM WssimRRDYRXhVOyX2EZJtKo= =NVaI -----END PGP SIGNATURE-----
Subject: Re: [rt.cpan.org #30526] Bug
Date: Thu, 8 Nov 2007 14:21:26 -0700 (MST)
To: bug-WWW-CheckSite [...] rt.cpan.org
From: josh [...] knowmad.com
Hey, I have little more information and would like you to review. I installed the new version from your site and using your script when we run it on our test server dev.babypips.com behind the http auth we get that URI::javascript.pm error. But when we run it again with dev.babypips.com/index.php behind the http auth it doesn't crash. We our running it on our live production server now ( babypips.com ) with no http auth and so far it seems to be running fine. Here is the command we used ( This one fails with the error ): perl checksite.pl -p babypips --html_validator http://validator.w3.org --html_upload -d /var/www/vhosts/babypips.com/public_html/w3c_test/ --css_validator http://jigsaw.w3.org/css-validator/ --css_upload --ua_class BP_Mech http://dev.babypips.com/ Thanks for your help and again any feedback or suggestions would help! Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=30526 > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > josh@knowmad.com via RT wrote:
>> Queue: WWW-CheckSite >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=30526 > >> >> Hey, >> >> We tried that today and upgrade to your beta version and ran the same >> script and it dies at the same location with the same error message. >> >> Any more ideas? Is there a module we could be missing that is causing >> this >> to die?
> > Hi Josh, > > Sorry, I pointed you to the wrong snapshot. > > The one I meant is only on my website: > > http://www.test-smoke.org/download/WWW-CheckSite-0.019_52.tar.gz > > and please first try to run the check with the provided checksite script. > If > that works we can move on to your own script. > > you will have to specify both --html_validator and --css_validator as well > as --html_upload and --css_upload (the last two because the site is behind > basic authentication, so the validators cannot get at the content) > > You will also have to set your spcial --ua_class=BP_Mech > > There may still be issues, but can try and solve 'm along the way. > > As the interface has changed, please read the manpages to get more info. > > > Thanks for your interest + > HTH, > > - -- Abe. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHMkLF0u0nt7xxiCIRAhM3AKCKvuwZpuxXlpKPOIkB098drq5FgQCgoLmM > WssimRRDYRXhVOyX2EZJtKo=NVaI > -----END PGP SIGNATURE----- > >