AJAX webmail "CSSStyleSheet" error when switching tabs

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Xardas999
Posts: 8
Joined: Thu Oct 20, 2016 9:51 pm

AJAX webmail "CSSStyleSheet" error when switching tabs

Post by Xardas999 »

Hello, colleagues!

Since some time I keep receiving the error in the Webmail " Failed to execute 'removeRule' on 'CSSStyleSheet': The index provided (9) is larger than the maximum index (8)." when I switch tabs, for example, from "Compose" to "Mail". It needs to refresh the browser to get access to the webmail. Also the mailboxes, folders in the Mail tab fail to open when I click - it needs to refresh the browser few times for them to get available again.

Zimbra 8.8.12_GA_3794 (build 20190329045002)
CentOS 7


all patched/updated. Looked for tmcat exploits - seems clean. Any ideas?
certificates are self-signed/ expired

------ UPDATE ---------
updating Chrome + resetting Chrome's settings to their defaults + Advanced Cleaning ALL site information was the solution. The issue has been closed.

-----------------------

The extended error report:

Failed to execute 'removeRule' on 'CSSStyleSheet': The index provided (9) is larger than the maximum index (8).
msg: Failed to execute 'removeRule' on 'CSSStyleSheet': The index provided (9) is larger than the maximum index (8).
code: 1
message: Failed to execute 'removeRule' on 'CSSStyleSheet': The index provided (9) is larger than the maximum index (8).
name: IndexSizeError
stack: Error: Failed to execute 'removeRule' on 'CSSStyleSheet': The index provided (9) is larger than the maximum index (8). at Function.DwtCssStyle.removeRule (https://mail.lambdalab.com/js/Startup1_ ... 10:5881:57) at ZmMailMsgListView.DwtListView._createHeaderCssStyle (https://mail.lambdalab.com/js/Startup1_ ... 10:8976:34) at ZmMailMsgListView.DwtListView.recalculateCssStyle (https://mail.lambdalab.com/js/Startup1_ ... 110:9848:6) at ZmMailMsgListView.DwtListView._resetColWidth (https://mail.lambdalab.com/js/Startup1_ ... 110:9866:7) at ZmMailMsgListView.ZmMailListView._resetColWidth (eval at AjxPackage.eval (https://mail.lambdalab.com/:1:1), <anonymous>:2438:71) at ZmTradView.ZmDoublePaneView._resetSize (eval at AjxPackage.eval (https://mail.lambdalab.com/:1:1), <anonymous>:2967:21) at ZmTradView.ZmDoublePaneView._controlEventListener (eval at AjxPackage.eval (https://mail.lambdalab.com/:1:1), <anonymous>:3062:6) at AjxEventMgr.notifyListeners (https://mail.lambdalab.com/js/Startup1_ ... 10:2320:35) at ZmTradView.DwtControl.notifyListeners (https://mail.lambdalab.com/js/Startup1_ ... 10:7439:74) at ZmTradView.DwtControl.setBounds (https://mail.lambdalab.com/js/Startup1_ ... 110:7539:6)
dleveque_IT
Posts: 1
Joined: Tue Jun 28, 2022 4:22 pm

Re: AJAX webmail "CSSStyleSheet" error when switching tabs

Post by dleveque_IT »

Hello everybody,
After trying a lot of thing to resolve this case I finally found (the solution from the author didn't work)
So the file which seems to have a problem is Startup1_1_all.js.zgz stored in the folder /opt/zimbra/jetty_base/webapps/zimbra/js (under Zimbra 8.8.15)
It's a Zimbra archive with only one file and you could read with the following command:

Code: Select all

gunzip -S zgz ./Startup1_1_all.js.zgz
Which will produce the file "Startup1_1_all.js." Open it with your favorite editor and search "removeRule".
https://developer.mozilla.org/en-US/doc ... removeRule

This method seems to be deprecated and replaced by "deleteRule", so I replace all "removeRule" by "deleteRule", I save the file and quit.
Now, I need to recreate the archive "Startup1_1_all.js.zgz", I do that with the following command:

Code: Select all

gzip -S zgz Startup1_1_all.js.
And to finish I restart my zimbra server:

Code: Select all

su - zimbra
zmcontrol restart
You could clear cache of your browser or process a full refresh of your webmail.
And Tadaaaaaa :P :P :P
Post Reply