ether / ep_file_menu_toolbar

File Menu Toolbar plugin for Etherpad
Other
4 stars 8 forks source link

Uncaught SyntaxError: Identifier 'printPad' has already been declared #34

Open Manumie opened 2 years ago

Manumie commented 2 years ago

Hi, I have a fresh etherpad install with a few plugins (the ones for Rich Editing inside a Docker container, with MariaDB. I'm using node.js 16.15.0 (installed with nvm ; 18.0 requires a version of glibc that is not yet packaged for Debian 9), and npm 8.5.5 I built a custom image to have ABIWORD installed, along with the plugins. I installed ep_aa_file_menu_toolbar from the admin panel. The installation goes fine. Once the plugin is installed, if I refresh an open Pad or launch a new one, the pad doesn't load correctly :

An error occurred while loading the page:

Uncaught SyntaxError: Identifier 'printPad' has already been declared in http://localhost:17201/p/UGGhxjW2Pedrw9097EEL at line 512:9

Stack trace:

SyntaxError: Identifier 'printPad' has already been declared at http://localhost:17201/p/UGGhxjW2Pedrw9097EEL:512:9

Then come what seem to be widgets of the pad (error messages (like all posible error messages), chat window, settings, import/export, etc.) with no CSS-styling and at the bottom of the page another error message :

TypeError: Cannot read property 'sheet' of null at unknown at line -1 ErrorId: uMCn8Ds3OIlycrgeVZex Unhandled Promise rejection URL: http://localhost:17201/p/UGGhxjW2Pedrw9097EEL UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36

There's a little more output in the container's log :

TypeError: Cannot read property 'sheet' of null -- {
  |   errorId: 'uMCn8Ds3OIlycrgeVZex',
  |   type: 'Unhandled Promise rejection',
  |   msg: "TypeError: Cannot read property 'sheet' of null",
  |   url: 'http://localhost:17201/p/UGGhxjW2Pedrw9097EEL',
  |   source: 'unknown',
  |   linenumber: -1,
  |   userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36',
  |   stack: "TypeError: Cannot read property 'sheet' of null\n" +
  |     '    at Ace2Editor.init (http://localhost:17201/javascripts/lib/ep_etherpad-lite/static/js/pad.js?=require.define&v=517b93c8:19:4922)\n' +
  |     '    at async Object.init (http://localhost:17201/javascripts/lib/ep_etherpad-lite/static/js/pad.js?callback=require.define&v=517b93c8:14:413)'

I've tried installing other plugins and the error doesn't occur. And the error is gone when I remove the plugin. I haven't tried to install the plugin with docker build

Can you help ?

Thanks in advance.


Here is the troubleshooting information from the admin panel :

Version d’Etherpad
Numéro de version: 1.8.17

Dernière version disponible: 1.8.17

Git sha: [745c78c](https://github.com/ether/etherpad-lite/commit/745c78c)

Greffons installés
ep_aa_file_menu_toolbar
ep_comments_page
ep_embedded_hyperlinks2
ep_etherpad-lite
ep_font_color
ep_font_family
ep_font_size
ep_mammoth
ep_spellcheck
ep_print
ep_subscript_and_superscript
ep_table_of_contents

Parties installées
ep_table_of_contents/ep_table_of_contents
ep_subscript_and_superscript/main
ep_print/ep_print
ep_spellcheck/ep_spellcheck
ep_mammoth/ep_mammoth
ep_font_size/main
ep_font_family/main
ep_font_color/main
ep_etherpad-lite/openapi
ep_etherpad-lite/adminsettings
ep_etherpad-lite/adminplugins
ep_etherpad-lite/admin
ep_etherpad-lite/tests
ep_etherpad-lite/socketio
ep_etherpad-lite/errorhandling
ep_etherpad-lite/importexport
ep_etherpad-lite/apicalls
ep_etherpad-lite/padurlsanitize
ep_etherpad-lite/specialpages
ep_etherpad-lite/i18n
ep_etherpad-lite/stats
ep_etherpad-lite/express
ep_etherpad-lite/Minify
ep_etherpad-lite/DB
ep_embedded_hyperlinks2/main
ep_etherpad-lite/webaccess
ep_comments_page/comments_page
ep_etherpad-lite/static
ep_aa_file_menu_toolbar/aa_file_menu_toolbar

Crochets installés
Crochets côté serveur
aceAttribClasses:
ep_font_family:
main:
ep_font_family/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/index
asyncLineHTMLForExport:
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/index
clientVars:
ep_comments_page:
comments_page:
ep_comments_page/index
collectContentPost:
ep_font_color:
main:
ep_font_color/static/js/shared
ep_font_family:
main:
ep_font_family/static/js/shared
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/shared
collectContentPre:
ep_comments_page:
comments_page:
ep_comments_page/static/js/shared
ep_font_color:
main:
ep_font_color/static/js/shared
ep_font_family:
main:
ep_font_family/static/js/shared
ep_font_size:
main:
ep_font_size/static/js/shared
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/shared
createServer:
ep_etherpad-lite:
express:
ep_etherpad-lite/node/hooks/express
eejsBlock_body:
ep_aa_file_menu_toolbar:
aa_file_menu_toolbar:
ep_aa_file_menu_toolbar/eejs
eejsBlock_dd_format:
ep_font_color:
main:
ep_font_color/index
ep_font_family:
main:
ep_font_family/index
ep_font_size:
main:
ep_font_size/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/index
eejsBlock_dd_view:
ep_spellcheck:
ep_spellcheck:
ep_spellcheck/spellcheck
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/index
eejsBlock_editbarMenuLeft:
ep_comments_page:
comments_page:
ep_comments_page/index
ep_embedded_hyperlinks2:
main:
ep_embedded_hyperlinks2/index
ep_font_color:
main:
ep_font_color/index
ep_font_family:
main:
ep_font_family/index
ep_font_size:
main:
ep_font_size/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/index
eejsBlock_editbarMenuRight:
ep_print:
ep_print:
ep_print/eejs
eejsBlock_editorContainerBox:
ep_embedded_hyperlinks2:
main:
ep_embedded_hyperlinks2/index
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/index
eejsBlock_mySettings:
ep_comments_page:
comments_page:
ep_comments_page/index
ep_spellcheck:
ep_spellcheck:
ep_spellcheck/spellcheck
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/index
eejsBlock_scripts:
ep_comments_page:
comments_page:
ep_comments_page/index
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/index
eejsBlock_styles:
ep_aa_file_menu_toolbar:
aa_file_menu_toolbar:
ep_aa_file_menu_toolbar/eejs
ep_comments_page:
comments_page:
ep_comments_page/index
ep_print:
ep_print:
ep_print/eejs
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/index
exportEtherpadAdditionalContent:
ep_comments_page:
comments_page:
ep_comments_page/index
exportHTMLAdditionalContent:
ep_comments_page:
comments_page:
ep_comments_page/exportHTML
exportHtmlAdditionalTags:
ep_font_family:
main:
ep_font_family/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/index
exportHtmlAdditionalTagsWithData:
ep_comments_page:
comments_page:
ep_comments_page/exportHTML
ep_font_color:
main:
ep_font_color/exportHTML
ep_font_size:
main:
ep_font_size/exportHTML
expressCloseServer:
ep_etherpad-lite:
socketio:
ep_etherpad-lite/node/hooks/express/socketio
expressConfigure:
ep_etherpad-lite:
webaccess:
ep_etherpad-lite/node/hooks/express/webaccess
expressCreateServer:
ep_comments_page:
comments_page:
ep_comments_page/index
ep_etherpad-lite:
admin:
ep_etherpad-lite/node/hooks/express/admin
adminplugins:
ep_etherpad-lite/node/hooks/express/adminplugins
adminsettings:
ep_etherpad-lite/node/hooks/express/adminsettings
apicalls:
ep_etherpad-lite/node/hooks/express/apicalls
errorhandling:
ep_etherpad-lite/node/hooks/express/errorhandling
i18n:
ep_etherpad-lite/node/hooks/i18n
importexport:
ep_etherpad-lite/node/hooks/express/importexport
openapi:
ep_etherpad-lite/node/hooks/express/openapi
padurlsanitize:
ep_etherpad-lite/node/hooks/express/padurlsanitize
socketio:
ep_etherpad-lite/node/hooks/express/socketio
specialpages:
ep_etherpad-lite/node/hooks/express/specialpages
static:
ep_etherpad-lite/node/hooks/express/static
tests:
ep_etherpad-lite/node/hooks/express/tests
getLineHTMLForExport:
ep_comments_page:
comments_page:
ep_comments_page/exportHTML
ep_font_color:
main:
ep_font_color/exportHTML
ep_font_family:
main:
ep_font_family/index
ep_font_size:
main:
ep_font_size/exportHTML
handleMessageSecurity:
ep_comments_page:
comments_page:
ep_comments_page/index
import:
ep_mammoth:
ep_mammoth:
ep_mammoth/import.js
padCopy:
ep_comments_page:
comments_page:
ep_comments_page/index
padInitToolbar:
ep_comments_page:
comments_page:
ep_comments_page/index
ep_font_color:
main:
ep_font_color/index
ep_font_size:
main:
ep_font_size/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/index
padRemove:
ep_comments_page:
comments_page:
ep_comments_page/index
restartServer:
ep_etherpad-lite:
express:
ep_etherpad-lite/node/hooks/express
shutdown:
ep_etherpad-lite:
DB:
ep_etherpad-lite/node/db/DB
express:
ep_etherpad-lite/node/hooks/express
Minify:
ep_etherpad-lite/node/utils/Minify
stats:
ep_etherpad-lite/node/stats
socketio:
ep_comments_page:
comments_page:
ep_comments_page/index
ep_etherpad-lite:
adminplugins:
ep_etherpad-lite/node/hooks/express/adminplugins
adminsettings:
ep_etherpad-lite/node/hooks/express/adminsettings
socketio:
ep_etherpad-lite/node/handler/PadMessageHandler
stylesForExport:
ep_font_color:
main:
ep_font_color/exportHTML
ep_font_size:
main:
ep_font_size/exportHTML

Crochets côté client
aceAttribClasses:
ep_font_family:
main:
ep_font_family/static/js/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/index
aceAttribsToClasses:
ep_comments_page:
comments_page:
ep_comments_page/static/js/index
ep_embedded_hyperlinks2:
main:
ep_embedded_hyperlinks2/static/js/index
ep_font_color:
main:
ep_font_color/static/js/index
ep_font_family:
main:
ep_font_family/static/js/index
ep_font_size:
main:
ep_font_size/static/js/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/index
aceCreateDomLine:
ep_embedded_hyperlinks2:
main:
ep_embedded_hyperlinks2/static/js/index
ep_font_color:
main:
ep_font_color/static/js/index
ep_font_size:
main:
ep_font_size/static/js/index
aceEditEvent:
ep_comments_page:
comments_page:
ep_comments_page/static/js/index
ep_font_color:
main:
ep_font_color/static/js/index
ep_font_family:
main:
ep_font_family/static/js/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/index
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/static/js/aceEditEvent:aceEditEvent
aceEditorCSS:
ep_comments_page:
comments_page:
ep_comments_page/static/js/index
ep_font_color:
main:
ep_font_color/static/js/index
ep_font_family:
main:
ep_font_family/static/js/index
ep_font_size:
main:
ep_font_size/static/js/index
aceInitialized:
ep_comments_page:
comments_page:
ep_comments_page/static/js/index
ep_embedded_hyperlinks2:
main:
ep_embedded_hyperlinks2/static/js/index
ep_font_color:
main:
ep_font_color/static/js/index
ep_font_size:
main:
ep_font_size/static/js/index
aceRegisterBlockElements:
ep_font_family:
main:
ep_font_family/static/js/index
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/index
collectContentPost:
ep_font_family:
main:
ep_font_family/static/js/shared
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/shared
collectContentPre:
ep_comments_page:
comments_page:
ep_comments_page/static/js/shared
ep_embedded_hyperlinks2:
main:
ep_embedded_hyperlinks2/static/js/index
ep_font_color:
main:
ep_font_color/static/js/shared
ep_font_family:
main:
ep_font_family/static/js/shared
ep_font_size:
main:
ep_font_size/static/js/shared
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/shared
handleClientMessage_ACCEPT_COMMIT:
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/static/js/aceEditEvent:aceEditEvent
handleClientMessage_NEW_CHANGES:
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/static/js/aceEditEvent:aceEditEvent
postAceInit:
ep_aa_file_menu_toolbar:
aa_file_menu_toolbar:
ep_aa_file_menu_toolbar/static/js/index:documentReady
ep_comments_page:
comments_page:
ep_comments_page/static/js/index
ep_embedded_hyperlinks2:
main:
ep_embedded_hyperlinks2/static/js/index
ep_font_color:
main:
ep_font_color/static/js/index
ep_font_family:
main:
ep_font_family/static/js/index
ep_font_size:
main:
ep_font_size/static/js/index
ep_spellcheck:
ep_spellcheck:
ep_spellcheck/static/js/spellcheck:postAceInit
ep_subscript_and_superscript:
main:
ep_subscript_and_superscript/static/js/index
ep_table_of_contents:
ep_table_of_contents:
ep_table_of_contents/static/js/postAceInit:postAceInit
postToolbarInit:
ep_comments_page:
comments_page:
ep_comments_page/static/js/index
ep_font_color:
main:
ep_font_color/static/js/index
ep_font_size:
main:
ep_font_size/static/js/index