Item1566: Trunk checkout doesn't work - new Prefs code
Priority: Urgent
Current State: Closed
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
I have a basic checkout of the trunk code (no local modifications). When I try to view
any page I get this:
Can't take log of 0 at /home/foswiki/trunk/core/lib/Foswiki/Prefs.pm line 399.
at /home/foswiki/trunk/core/lib/Foswiki/Prefs.pm line 399
Foswiki::Prefs::getPreference('Foswiki::Prefs=HASH(0x9b7eab8)', 'NOAUTOLINK') called at /home/foswiki/trunk/core/lib/Foswiki/Render.pm line 1236
Foswiki::Render::getRenderedVersion('Foswiki::Render=HASH(0xa11c7b8)', ' </div><!-- /foswikiTopic-->\x{a}<div class="foswikiContentFooter...', 'Foswiki::Meta=HASH(0xa101950)') called at /home/foswiki/trunk/core/lib/Foswiki/Meta.pm line 2130
Foswiki::Meta::renderTML('Foswiki::Meta=HASH(0xa101950)', ' </div><!-- /foswikiTopic-->\x{a}<div class="foswikiContentFooter...') called at /home/foswiki/trunk/core/lib/Foswiki/UI/View.pm line 399
Foswiki::UI::View::_prepare(' %IF{"$raw=\'on\'" then=\'<div class="patternSigLine"><span c...', 'Foswiki::Meta=HASH(0xa101950)', 0) called at /home/foswiki/trunk/core/lib/Foswiki/UI/View.pm line 384
Foswiki::UI::View::view('Foswiki=HASH(0x968b208)') called at /home/foswiki/trunk/core/lib/Foswiki/UI.pm line 289
Foswiki::UI::__ANON__() called at /usr/local/share/perl/5.10.0/Error.pm line 415
eval {...} called at /usr/local/share/perl/5.10.0/Error.pm line 407
Error::subs::try('CODE(0x97650e0)', 'HASH(0xa1016c0)') called at /home/foswiki/trunk/core/lib/Foswiki/UI.pm line 358
Foswiki::UI::_execute('Foswiki::Request=HASH(0x9b58838)', 'CODE(0x9b583d8)', 'view', 1) called at /home/foswiki/trunk/core/lib/Foswiki/UI.pm line 260
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x9b58838)') called at /home/foswiki/trunk/core/lib/Foswiki/Engine/CGI.pm line 27
Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x978af60)') called at /home/foswiki/trunk/core/bin/view line 45.
I tried to understand what the code at that line is supposed to do, but couldn't make any sense of it, and there is no supporting documentation. The log of the ord of the last character in the string? WTF?
This is not reproducible on trunk.foswiki.org at the moment.
--
CrawfordCurrie - 04 May 2009
George reported a similar issue yesterday and I fixed it. Now I don't have access to the code, but I'll look this ASAP. The strange thing is I left home with a trunk checkout working. I'll review my environment.
--
GilmarSantosJr - 04 May 2009
I'm still seeing the same issue.
Can't take log of 0 at /var/www/SVN/foswiki/core/lib/Foswiki/Prefs.pm line 399.
at /var/www/SVN/foswiki/core/lib/Foswiki/Prefs.pm line 399
Foswiki::Prefs::getPreference('Foswiki::Prefs=HASH(0x8f31f1c)', 'NOAUTOLINK') called at /var/www/SVN/foswiki/core/lib/Foswiki/Render.pm line 1236
Foswiki::Render::getRenderedVersion('Foswiki::Render=HASH(0x95bdfb4)', ' </div><!-- /foswikiTopic-->\x{a}<div class="foswikiContentFooter...', 'Foswiki::Meta=HASH(0x95a3814)') called at /var/www/SVN/foswiki/core/lib/Foswiki/Meta.pm line 2130
Foswiki::Meta::renderTML('Foswiki::Meta=HASH(0x95a3814)', ' </div><!-- /foswikiTopic-->\x{a}<div class="foswikiContentFooter...') called at /var/www/SVN/foswiki/core/lib/Foswiki/UI/View.pm line 399
Foswiki::UI::View::_prepare(' %IF{"$raw=\'on\'" then=\'<div class="patternSigLine"><span c...', 'Foswiki::Meta=HASH(0x95a3814)', 0) called at /var/www/SVN/foswiki/core/lib/Foswiki/UI/View.pm line 384
Foswiki::UI::View::view('Foswiki=HASH(0x89f0f4c)') called at /var/www/SVN/foswiki/core/lib/Foswiki/UI.pm line 289
Foswiki::UI::__ANON__() called at /var/www/SVN/foswiki/core/lib/CPAN/lib//Error.pm line 379
eval {...} called at /var/www/SVN/foswiki/core/lib/CPAN/lib//Error.pm line 371
Error::subs::try('CODE(0x8af2150)', 'HASH(0x95a361c)') called at /var/www/SVN/foswiki/core/lib/Foswiki/UI.pm line 358
Foswiki::UI::_execute('Foswiki::Request=HASH(0x8f04944)', 'CODE(0x8f04668)', 'view', 1) called at /var/www/SVN/foswiki/core/lib/Foswiki/UI.pm line 260
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8f04944)') called at /var/www/SVN/foswiki/core/lib/Foswiki/Engine/CGI.pm line 27
Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x8df8028)') called
--
GeorgeClark - 05 May 2009
I realized a scenario where the last byte of map bitstring can be
0
and I fixed it. Can you test it now?
--
GilmarSantosJr - 05 May 2009
That seems to have done the trick. But Gilmar, could you please, please,
please improve the in-code doc of how it is all supposed to work. I really couldn't make any sense of the code when I went to read it, and your latest checkin doesn't help even knowing the symptoms
Thanks!
--
CrawfordCurrie - 05 May 2009
I just added
Item1574 to address the documentation issue. So I'm closing this one.
--
GilmarSantosJr - 05 May 2009