GithubHelp home page GithubHelp logo

Comments (11)

johndoh avatar johndoh commented on August 17, 2024

If jquery was missing there would be errors in the browser console for sure, it is a core requirement of roundcube.. It sounds like there is an issue in the code which determines the visibility of the individual menu items. what roundcube skin are you using? also have you tried with all other roundcube plugins disabled?

from roundcube-contextmenu.

jamiolee avatar jamiolee commented on August 17, 2024

Thanks for the response. I tried disabling all other plugins and that didn't work. I was using the Elastic theme by Aleksander Machniak, so I tried changing it back to the Larry theme and that got the Context Menu plugin working. Ideally, I would like to use the Elastic theme as it's much nicer looking. I see that this plugin does support the theme. Do you have any suggestions on how I can further debug this?

Roundcube Webmail Preferences

from roundcube-contextmenu.

johndoh avatar johndoh commented on August 17, 2024

For sure it works fine with Elastic. I guess check the network tab in your browser console and make sure all the resources are loaded correctly.

Starting around like 606 in contextmenu.js is where it loops through all the available menu items and adds them to the context menu.

from roundcube-contextmenu.

jamiolee avatar jamiolee commented on August 17, 2024

I have loaded up the Network tab on the console and can see contextmenu.js is loaded. I'm not savvy enough to understand what you mean by the line 606 within the code for loading the menu items. Is there a way for me to troubleshoot this any further?

Here is a screenshot from the Console - Network tab.

Inspector-Network

from roundcube-contextmenu.

johndoh avatar johndoh commented on August 17, 2024

There is something strange here. You said you are running version 3.2.1 of the plugin but the file sizes shown in your latest screenshot do not match up with those in that version. Specifically the contextmenu.min.css, in your screenshot it says 1.98KB but the size of the file shipped in 3.2.1 is 1.33KB, see https://github.com/johndoh/roundcube-contextmenu/blob/3.2.1/skins/elastic/contextmenu.min.css. I confirmed in my browser's network tab the file sizes shown match those shown on the GItHub website. I am assuming you have not customised the CSS so you would appear to have a broken install.

A file size of 1.98KB matches that of the file currently available in git-master which is not the same thing as version 3.2.1 so please make sure you have the correct version of the plugin installed.

from roundcube-contextmenu.

jamiolee avatar jamiolee commented on August 17, 2024

Thank you for pointing that out, you're right I was using the master version by mistake. I went ahead and updated it on my server to v.3.2.1 - unfortunately that did not solve this problem. I ran the same tests previously through Firefox, Chrome and Edge, and even removed it from the plugins config and added it back again to confirm that it is unloading and loading it in Roundcube.

Here's a screenshot from the About window in Roundcube with version numbers, not sure if there's something that might help there?

jl-round-ver

from roundcube-contextmenu.

johndoh avatar johndoh commented on August 17, 2024

Since you said you cannot provide any debug information from the code I'm out of ideas. I cannot recreate the issue. I'll leave this ticket open for a little while in case any one else has the same issue and can provide more information.

from roundcube-contextmenu.

yolorkit avatar yolorkit commented on August 17, 2024

Ubuntu 18.04.5 LTS x64
Hi, i am using roundcube 1.5-rc and neither contextmenu 3.2.1 nor master work.
rc 1.4.10 works fine with cm 3.2.1 though.
There're no errors in roundcube logs.
When i simply switched from rc 1.4.10 to rc 1.5-rc context menu worked on one of the client machines. However when i removed cookies it stopped working in rc 1.5 but still worked fine in 1.4

Inside Firefox console i see these type of messages:

Loading failed for the <script> with source “https://10.0.1.2/roundcube-test/plugins/contextmenu/contextmenu.js?s=1619954791”. roundcube-test:54:1
The resource from “https://10.0.1.2/roundcube-test/plugins/contextmenu/contextmenu.js?s=1619954791” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
The resource from “https://10.0.1.2/roundcube-test/plugins/contextmenu/skins/larry/functions.js?s=1619954791” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Loading failed for the <script> with source “https://10.0.1.2/roundcube-test/plugins/contextmenu/skins/larry/functions.js?s=1619954791”. roundcube-test:54:1

from roundcube-contextmenu.

johndoh avatar johndoh commented on August 17, 2024

looks like some kind of server config issue to me, don't block the JS files!

from roundcube-contextmenu.

johndoh avatar johndoh commented on August 17, 2024

I'm going to close this ticket because I don't know what else to do with it, there is no specific information relating to plugin code here.

from roundcube-contextmenu.

kochs-online avatar kochs-online commented on August 17, 2024

@yolorkit: You probably haven't set the file modes correctly. (Ask me how I guessed… 😁)

If the web server is not allowed to access the plugin files, it will create an error message and serve it with Content-Type: text/html. Firefox in turn will not process these [error message] files because the web server also sends HTTP header X-Content-Type-Options: nosniff disallowing the browser to try and interprete them as text/javascript (cf. MDN Web Docs for details regarding X-Content-Type-Options)

In order to fix this you need to grant the web server sufficient access rights to the files and directories.

from roundcube-contextmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.