https://bugzilla.wikimedia.org/show_bug.cgi?id=44122

       Web browser: ---
            Bug ID: 44122
           Summary: If a pad gets deleted on EPL, EtherEditor has no clue
                    what to do
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: EtherEditor
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I just revisited an Etherpad Lite instance after some time, and somehow my
database got deleted. So obviously the pad I tried to access at first raised an
error.

We should handle the error instead of dying, else migrating to a different EPL
installation will be nearly impossible.

Text of error:

Unexpected non-MediaWiki exception encountered, of type
"InvalidArgumentException"
exception 'InvalidArgumentException' with message 'padID does not exist' in
/home/administrator/projects/EtherEditor/includes/EtherpadLiteClient.php:93
Stack trace:
#0
/home/administrator/projects/EtherEditor/includes/EtherpadLiteClient.php(74):
EtherpadLiteClient->handleResult(Object(stdClass))
#1
/home/administrator/projects/EtherEditor/includes/EtherpadLiteClient.php(34):
EtherpadLiteClient->call('setText', Array, 'POST')
#2
/home/administrator/projects/EtherEditor/includes/EtherpadLiteClient.php(246):
EtherpadLiteClient->post('setText', Array)
#3 /home/administrator/projects/EtherEditor/EtherEditorHooks.php(120):
EtherpadLiteClient->setText('g.Kzttc59cKsvNy...', 'This is a test!...')
#4 [internal function]:
EtherEditorHooks::editPageShowEditFormInitial(Object(EditPage),
Object(OutputPage))
#5 /home/administrator/projects/mediawiki/includes/Hooks.php(255):
call_user_func_array('EtherEditorHook...', Array)
#6 /home/administrator/projects/mediawiki/includes/GlobalFunctions.php(3871):
Hooks::run('EditPage::showE...', Array)
#7 /home/administrator/projects/mediawiki/includes/EditPage.php(2042):
wfRunHooks('EditPage::showE...', Array)
#8 /home/administrator/projects/mediawiki/includes/EditPage.php(421):
EditPage->showEditForm()
#9 /home/administrator/projects/mediawiki/includes/actions/EditAction.php(51):
EditPage->edit()
#10 /home/administrator/projects/mediawiki/includes/Wiki.php(439):
EditAction->show()
#11 /home/administrator/projects/mediawiki/includes/Wiki.php(305):
MediaWiki->performAction(Object(Article), Object(Title))
#12 /home/administrator/projects/mediawiki/includes/Wiki.php(565):
MediaWiki->performRequest()
#13 /home/administrator/projects/mediawiki/includes/Wiki.php(458):
MediaWiki->main()
#14 /home/administrator/projects/mediawiki/index.php(59): MediaWiki->run()
#15 {main}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to