Comments (11)
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.
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?
from roundcube-contextmenu.
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.
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.
from roundcube-contextmenu.
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.
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?
from roundcube-contextmenu.
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.
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.
looks like some kind of server config issue to me, don't block the JS files!
from roundcube-contextmenu.
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.
@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)
- Context-menu frontend error HOT 5
- Visual issue with a selected message HOT 2
- Elastic: Menu sometimes does not disappear HOT 3
- Custom menu on a treelist stopped working HOT 1
- Use browser.menus API HOT 2
- Emptying a folder with unread messages via context menu doesn't remove unread message badge HOT 4
- Option to empty a folder containing messages (e.g. Trash) is sometimes greyed out HOT 2
- Add slovak translation HOT 2
- Version check failed HOT 3
- Need help with a bug HOT 2
- Zipdownload menu items not active HOT 2
- PHP Notice in log HOT 1
- How to use skip_commands ? HOT 1
- how to turn backgrou menu from oscure almost black to white? HOT 1
- Request HOT 2
- Roundcube 1.5-beta and PHP 8 support HOT 1
- How to pass an argument to my command/function? HOT 1
- First have to left click HOT 6
- 404 errors trying to fetch plugin css/js (v3.3.1) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roundcube-contextmenu.