Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: clientVars.ep_image_upload is undefined #67

Open
dburr opened this issue Mar 13, 2024 · 2 comments
Open

TypeError: clientVars.ep_image_upload is undefined #67

dburr opened this issue Mar 13, 2024 · 2 comments

Comments

@dburr
Copy link

dburr commented Mar 13, 2024

etherpad 1.9.7, node 21.7.1

Attempting to install this plugin on an Etherpad lite 1.9.7 instance, however I am getting the error message TypeError: clientVars.ep_image_upload is undefined whenever I try uploading an image.

I DO have the following in my settings.json:

  "ep_image_upload": {
        "fileTypes": ["jpeg", "jpg", "bmp", "gif", "png"],
        "maxFileSize": 5000000
  }

And on the terminal where I am running the etherpad server I see:

[2024-03-13T12:59:16.456] [WARN] client - TypeError: clientVars.ep_image_upload
is undefined -- {
  errorId: 'eAJC4Fkkelumyyls0tm1',
  type: 'Uncaught exception',
  msg: 'TypeError: clientVars.ep_image_upload is undefined',
  url: 'http://192.168.12.80:9001/p/quartus-notes',
  source: 'http://192.168.12.80:9001/static/js/require-kernel.js?v=29e99f08 line 1 > Function',
  linenumber: 3,
  userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0',
  stack: '_isValid@http://192.168.12.80:9001/static/js/require-kernel.js?v=29e99f08 line 1 > Function:3:303\n' +
    '(module ep_image_upload/static/js/toolbar.js)/exports.postToolbarInit/</<@http://192.168.12.80:9001/static/js/require-kernel.js?v=29e99f08 line 1 > Function:3:1429\n' +
    'dispatch@http://192.168.12.80:9001/javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define&v=29e99f08:18:39815\n' +
    '(module ep_etherpad-lite/static/js/vendors/jquery.js)/</add/v.handle@http:/
/192.168.12.80:9001/javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?ca
llback=require.define&v=29e99f08:18:37806\n'
}

Yes, I have checked to make sure everything is spelled correctly, that I am NOT using smart quotes, etc.

I don't have any problems with any other plugins that store their settings in settings.json Not sure what the problem is, I can't think of anything else that could be at fault.

@elmatusov
Copy link

elmatusov commented Mar 30, 2024

I have the same problem: etherpad 1.9.7, node 21.7.1, image_upload 1.0.105

I just installed Etherpad 2.0.1 -- there is the same problem.

@manosKas
Copy link

manosKas commented Apr 9, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants