I have installed Testopia 2.2 on Bugzilla 3.2.3/ MySQL 5.0 on a Windows box
(Win2003 Server SP2) and got this error when I click on the Testopia:
search:
Web browser display:
Bareword "JSON::false" not allowed while "strict subs" in use at
Bugzilla/Testopia/Classification.pm line 81.
Bareword "JSON::false" not allowed while "strict subs" in use at
Bugzilla/Testopia/Classification.pm line 86.
Bareword "JSON::true" not allowed while "strict subs" in use at
Bugzilla/Testopia/Classification.pm line 84.
Compilation failed in require at C:/Apachedocs/bugzilla-3.2.3/tr_query.cgi
line 34.
BEGIN failed--compilation aborted at
C:/Apachedocs/bugzilla-3.2.3/tr_query.cgi line 34.
Apache error log:
[Thu Sep 17 17:34:43 2009] [error] [client 127.0.0.1] [Thu Sep 17 17:34:43
2009] tr_quicksearch.cgi: Use of uninitialized value $product_name in string
eq at Bugzilla/User.pm line 626., referer:
http://localhost:8080/bugzilla-3.2.3/tr_new_plan.cgi
[Thu Sep 17 17:34:43 2009] [error] [client 127.0.0.1] [Thu Sep 17 17:34:43
2009] tr_quicksearch.cgi: Use of uninitialized value $product_name in string
eq at Bugzilla/User.pm line 626., referer:
http://localhost:8080/bugzilla-3.2.3/tr_new_plan.cgi
[Thu Sep 17 17:35:04 2009] [error] [client 127.0.0.1] [Thu Sep 17 17:35:04
2009] tr_query.cgi: Bareword "JSON::false" not allowed while "strict subs"
in use at Bugzilla/Testopia/Classification.pm line 81., referer:
http://localhost:8080/bugzilla-3.2.3/tr_new_run.cgi?plan_id=&case_status_id=
2
[Thu Sep 17 17:35:04 2009] [error] [client 127.0.0.1] [Thu Sep 17 17:35:04
2009] tr_query.cgi: Bareword "JSON::false" not allowed while "strict subs"
in use at Bugzilla/Testopia/Classification.pm line 86., referer:
http://localhost:8080/bugzilla-3.2.3/tr_new_run.cgi?plan_id=&case_status_id=
2
[Thu Sep 17 17:35:04 2009] [error] [client 127.0.0.1] [Thu Sep 17 17:35:04
2009] tr_query.cgi: Bareword "JSON::true" not allowed while "strict subs" in
use at Bugzilla/Testopia/Classification.pm line 84., referer:
http://localhost:8080/bugzilla-3.2.3/tr_new_run.cgi?plan_id=&case_status_id=
2
[Thu Sep 17 17:35:04 2009] [error] [client 127.0.0.1] [Thu Sep 17 17:35:04
2009] tr_query.cgi: Compilation failed in require at
C:/Apachedocs/bugzilla-3.2.3/tr_query.cgi line 34., referer:
http://localhost:8080/bugzilla-3.2.3/tr_new_run.cgi?plan_id=&case_status_id=
2
[Thu Sep 17 17:35:04 2009] [error] [client 127.0.0.1] [Thu Sep 17 17:35:04
2009] tr_query.cgi: BEGIN failed--compilation aborted at
C:/Apachedocs/bugzilla-3.2.3/tr_query.cgi line 34., referer:
http://localhost:8080/bugzilla-3.2.3/tr_new_run.cgi?plan_id=&case_status_id=
2
Is there anybody who can give a hint?
-Thanks in advance!!
Frank
Have you installed the JSON perl module?
Greg
-----Ursprüngliche Nachricht-----
Von: Gregary Hendricks [mailto:ghend...@novell.com]
Gesendet: Donnerstag, 17. September 2009 20:58
An: Frank Schimmelpfennig; support-...@lists.mozilla.org
Betreff: Re: Error on the Testopia search
JSON::false is defined there. I am guessing there is some issue with the version on Windows (I am using 2.12 on Linux) either that or it is not being included in your @INC path.
What does checksetup.pl --check-modules show?
Greg
=+= May the source be with you =+=
Gregary Hendricks
Novell IS&T Engineer
GHend...@novell.com
Office: (801) 861-3481
www.novell.com/open
Hi Greg,
I ran checksetup.pl again:
* This is Bugzilla 3.2.3 on perl 5.10.0
* Running on Win2003 Build 3790 (Service Pack 2)
Checking perl modules...
Checking for CGI.pm (v3.33) ok: found v3.41
Checking for TimeDate (v2.21) ok: found v2.22
Checking for PathTools (v0.84) ok: found v3.2501
Checking for DBI (v1.41) ok: found v1.607
Checking for Template-Toolkit (v2.15) ok: found v2.20
Checking for Email-Send (v2.16) ok: found v2.194
Checking for Email-MIME (v1.861) ok: found v1.863
Checking for Email-MIME-Modifier (v1.442) ok: found v1.443
Checking for JSON (v2.10) ok: found v2.15
Checking for Text-Diff (v0.35) ok: found v1.37
Checking for GD-Graph3d (v0.63) ok: found v0.63
Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.00) ok: found v4.005
Checking for DBD-Oracle (v1.19) ok: found v1.21
The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.41
Checking for Chart (v1.0) ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking for XML-Twig (any) ok: found v3.32
Checking for MIME-tools (v5.406) ok: found v5.427
Checking for libwww-perl (any) ok: found v5.814
Checking for PatchReader (v0.9.4) ok: found v0.9.5
Checking for PerlMagick (any) ok: found v6.4.8
Checking for perl-ldap (any) ok: found v0.39
Checking for Authen-SASL (any) ok: found v2.12
Checking for RadiusPerl (any) ok: found v0.13
Checking for SOAP-Lite (any) ok: found v0.69
Checking for HTML-Parser (v3.40) ok: found v3.56
Checking for HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for mod_perl (v1.999022) ok: found v2.000004
Checking for Text-CSV (v1.06) ok: found v1.13
Reading ./localconfig...
OPTIONAL NOTE: If you want to be able to use the 'difference between
two
patches' feature of Bugzilla (which requires the PatchReader Perl
module
as well), you should install patchutils from:
http://cyberelk.net/tim/patchutils/
Checking for DBD-mysql (v4.00) ok: found v4.005
Checking for MySQL (v4.1.2) ok: found v5.0.77-community-nt
Removing existing compiled templates...
Precompiling templates...done.
Checking Testopia setup ...
Populating test plan ACLs ...
Done checking Testopia setup.
Now that you have installed Bugzilla, you should visit the
'Parameters' page (linked in the footer of the Administrator
account) to ensure it is set up as you wish - this includes
setting the 'urlbase' option to the correct URL.
And I checked the Perl include path:
perl -e "print @INC"
C:/Perl/site/libC:/Perl/lib.
As I told allready that I installed JSON via CPAN I find in C:\Perl
\lib a JSON subdir tree and a JSON.pm file.
-Thaks so far!
Frank
I seem to recall that there was an issue with the latest JSON on Windows. Installing 2.12 instead of 2.15. You can get it from CPAN.
Greg
Hi Greg,
thanks for this hint!!
After some trouble uninstalling JSON 2.15 (via PPM) and re-installing
JSON 2.12 via CPAN (had to copy the JSON.pm and the JSON dir manually
into /site/lib) and re-installing Testopia from scratch everythings
seeems to work!!
Frank