This question about Missing functionality: Answered

Diff problems after 1.1.6 upgrade

We recently upgraded our 1.1.4 installation to 1.1.6 and now have an issue where diffs run via the Compare Revisions option at the bottom of the page no longer function and generate the following error message:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

Can't locate object method "no_expand_entities" via package "HTML::TreeBuilder"

I tried a clean installation on the same system (which is Ubuntu 10.04) and am seeing the same issue though a 1.1.5 installation works normally. I'm under the impression this functionality is provided by the CompareRevisionsAddOn and I attempted to re-install version 1.1.8 on the system though the issue remains. We're using the default template and don't have any other modifications I am aware of that might be causing the issue.

The Foswiki error log shows this upon failure:
| 2013-01-14T18:45:13Z warning | Can't locate object method "no_expand_entities" via package "HTML::TreeBuilder" at /var/www/fw-1.1.6-virgin/lib/Foswiki/Contrib/CompareRevisionsAddOn/Compare.pm line 331.
 at /var/www/fw-1.1.6-virgin/lib/Foswiki/Contrib/CompareRevisionsAddOn/Compare.pm line 331
   Foswiki::Contrib::CompareRevisionsAddOn::Compare::_getTree('Foswiki=HASH(0x9ffb3e0)', 'Sandbox', 'TestPage', 2) called at /var/www/fw-1.1.6-virgin/lib/Foswiki/Contrib/CompareRevisionsAddOn/Compare.pm line 92
   Foswiki::Contrib::CompareRevisionsAddOn::Compare::compare('Foswiki=HASH(0x9ffb3e0)') called at /var/www/fw-1.1.6-virgin/lib/Foswiki/UI.pm line 316
   Foswiki::UI::__ANON__() called at /var/www/fw-1.1.6-virgin/lib/CPAN/lib/Error.pm line 379
   eval {...} called at /var/www/fw-1.1.6-virgin/lib/CPAN/lib/Error.pm line 371
   Error::subs::try('CODE(0x9917658)', 'HASH(0x9ffc968)') called at /var/www/fw-1.1.6-virgin/lib/Foswiki/UI.pm line 435
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x9e05788)', 'CODE(0x9fdacd0)', 'comparing', 1, 'diff', 1) called at /var/www/fw-1.1.6-virgin/lib/Foswiki/UI.pm line 274
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x9e05788)') called at /var/www/fw-1.1.6-virgin/lib/Foswiki/Engine/CGI.pm line 41
   Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x9a740c0)') called
 |

Any ideas?

Thanks.

-- JohnV - 14 Jan 2013

We had an unfortunate change that added a dependency on HTML::TreeBuilder > 4.0. See Tasks.Item12337 / distro:7b15a58808d7 for a fix. This will be corrected in 1.1.7. Release Candidate 3 for 1.1.7 is available here: Download.FoswikiRelease01x01x07RC3

-- GeorgeClark - 14 Jan 2013

Thanks for the quick response. I grabbed the alternate version of Compare.pm from the link and functionality has been restored.

-- JohnV - 15 Jan 2013
 

QuestionForm edit

Subject Missing functionality
Extension CompareRevisionsAddOn
Version Foswiki 1.1.6
Status Answered
Related Topics
Topic revision: r3 - 15 Jan 2013, JohnV
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy