• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

I tried to add content to Item691 and got this error when saving the topic (tried twice) :

TWiki detected an error or attempted hack - please check your TWiki logs and webserver logs for more information.

Can't call method "mergeHandler" on an undefined value

Here is the text I tried to add:

This is an enhancement that got forgotten in Dakar, caused by duality of tracking in Bugs and Codev. There are probably other ones as well.

At this time I do not suggest to add above feature since this would imply a spec change. With the current spec, a string that does not match an existing Topic or Web.Topic shows a list of simiar topics. This is a very useful feature to quickly narrow down on topics where you remember part of the name. Especially useful in large webs. Above spec changes that to a fulltext search, which is useful too, but you loose the narrow down on topic feature.

Therefore: Postone this to Edingurgh and define a spec that works well fo new users and power users. Such as:

  • foo bar -- full text search, token
  • "foo bar" -- full text search, literal
  • UpperLower -- topic jump
  • Web.UpperLower -- topic jump, different web
  • Partial -- topic name search

Or:

  • foo bar -- full text search, token
  • "foo bar" -- full text search, literal
  • j/ topicInAnyCase -- topic jump
  • j/ Web.topic -- topic jump, different web
  • j/ partial -- topic name search
  • r/ cand(y|ies) -- full text search, regex

-- PTh

This just happended now, around 13 Oct 2005 - 06:15 UTC.

-- PTh

i have some additional information: i tried to edit the topic when i was told peter had a lease. i waited some seconds, and then clicked "Try Again". that didn't work, i hadn't got a lease to the topic, but while peter was editting, i was able to attach a file. hope that helps smile

WN

Now I can save that topic just fine. Seems to be related with simultaneous edit and attach.

-- PTh

I'm afraid that this is similar to what used to happen in cairo - which also did not lock on operations like attach, rename, delete.. i'm not sure we should go near this now frown -- SD

if this is what happens in CairoRelease, we should defer it. -- WN


The only way the error Peter reports can happen is if the insDelMerge is called in a context where the session has not yet been instantiated (the plugins object is undef). Leases should be irrelevant. Without a stack trace it's really hard to say what happened - there should be a stack trace in the webserver logs, can someone have a hunt please? (I would but I'm on dialup)

CC

from the twiki log file

| 12 Oct 2005 - 23:16 | Can't call method "mergeHandler" on an undefined value at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/Merge.pm line 87.
        TWiki::Merge::_acceptA(0, 0, 'ARRAY(0x828140c)', 'ARRAY(0x826a98c)', 'ARRAY(0x8281388)', 'TWiki::Form=HASH(0x89b4b48)', undef) called at /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Algorithm/Diff.pm line 386
        Algorithm::Diff::traverse_balanced('ARRAY(0x826a98c)', 'ARRAY(0x8281388)', 'HASH(0x89c2f6c)', undef, 'ARRAY(0x828140c)', 'ARRAY(0x826a98c)', 'ARRAY(0x8281388)', 'TWiki::Form=HASH(0x89b4b48)', ...) called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/Merge.pm line 65
        TWiki::Merge::insDelMerge('http://twiki.org/cgi-bin/view/Codev/GoIsSearch#OneBox^M^J^M^JI just ...', 'http://twiki.org/cgi-bin/view/Codev/GoIsSearch#OneBox^M^J^M^JI just ...', '(?-xism:(\s+))', 'TWiki::Form=HASH(0x89b4b48)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/Meta.pm line 464
        TWiki::Meta::merge('TWiki::Meta=HASH(0x89b34d8)', 'TWiki::Meta=HASH(0x89b48fc)', 'TWiki::Form=HASH(0x89b4b48)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI/Save.pm line 216
        TWiki::UI::Save::buildNewTopic('TWiki=HASH(0x80fbbf0)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI/Save.pm line 286
        TWiki::UI::Save::_save('TWiki=HASH(0x80fbbf0)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI/Save.pm line 441
        TWiki::UI::Save::save('TWiki=HASH(0x80fbbf0)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI.pm line 98
        TWiki::UI::__ANON__() called at /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Error.pm line 387
        eval {...} called at /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Error.pm line 379
        Error::subs::try('CODE(0x89b3808)', 'HASH(0x89b5500)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI.pm line 147
        TWiki::UI::run('CODE(0x87e0354)') called


| 12 Oct 2005 - 23:18 | Can't call method "mergeHandler" on an undefined value at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/Merge.pm line 87.
        TWiki::Merge::_acceptA(0, 0, 'ARRAY(0x828140c)', 'ARRAY(0x826a98c)', 'ARRAY(0x8281388)', 'TWiki::Form=HASH(0x89b4b48)', undef) called at /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Algorithm/Diff.pm line 386
        Algorithm::Diff::traverse_balanced('ARRAY(0x826a98c)', 'ARRAY(0x8281388)', 'HASH(0x89c2f6c)', undef, 'ARRAY(0x828140c)', 'ARRAY(0x826a98c)', 'ARRAY(0x8281388)', 'TWiki::Form=HASH(0x89b4b48)', ...) called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/Merge.pm line 65
        TWiki::Merge::insDelMerge('http://twiki.org/cgi-bin/view/Codev/GoIsSearch#OneBox^M^J^M^JI just ...', 'http://twiki.org/cgi-bin/view/Codev/GoIsSearch#OneBox^M^J^M^JI just ...', '(?-xism:(\s+))', 'TWiki::Form=HASH(0x89b4b48)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/Meta.pm line 464
        TWiki::Meta::merge('TWiki::Meta=HASH(0x89b34d8)', 'TWiki::Meta=HASH(0x89b48fc)', 'TWiki::Form=HASH(0x89b4b48)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI/Save.pm line 216
        TWiki::UI::Save::buildNewTopic('TWiki=HASH(0x80fbbf0)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI/Save.pm line 286
        TWiki::UI::Save::_save('TWiki=HASH(0x80fbbf0)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI/Save.pm line 441
        TWiki::UI::Save::save('TWiki=HASH(0x80fbbf0)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI.pm line 98
        TWiki::UI::__ANON__() called at /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Error.pm line 387
        eval {...} called at /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Error.pm line 379
        Error::subs::try('CODE(0x89b3808)', 'HASH(0x89b5500)') called at /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI.pm line 147
        TWiki::UI::run('CODE(0x87e0354)') called


OK, Thanks. This is mysterious; I can't reproduce the problem, and I can't think what logic might lead to it. It really needs someone to sit down and do a determined debug, setting ASSERTs to establish how the mergeHandler gets called at a time where it appears that $session->{plugins} has not yet been initialised (this should be impossible). I would love to do it, but I'm running short on volts.

CC

Finally twigged what was wrong and fixed it (bad code) SVN 7216 CC

ItemTemplate
Summary Can't call method "mergeHandler" on an undefined value
ReportedBy PeterThoeny
AppliesTo Engine
Priority Urgent
CurrentState Closed
WaitingFor

Checkins 7216
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2005-10-29 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback