Text in Boxes is displayed as white (invisible in Classic theme)

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
rfluharty
Posts: 4
Joined: Wed Jan 29, 2020 1:33 pm

Text in Boxes is displayed as white (invisible in Classic theme)

Post by rfluharty »

I'm running Cacti 1.2.2 on Debian 10.2. In many screens, the text in the boxes appear as white with a white background. I can only read the text if I highlight it with my mouse (the background color of the text changes, thus causing it to be readable.) This seems to be only with the classic theme. I don't want to use the other included themes as they show limited options in dropdown boxes and it's a pain to always narrow by search to less than 30 objects.

This post: http://forums.cacti.net/viewtopic.php?p=279434 seems to be the only user with a similar problem. No solution was given. He did propose a workaround which I tried, but it had other side effects as you can see in my post at the end of that thread.

That was an older post, so I thought MAYBE a new thread would get some results. I was hoping someone would have an answer by now.

I hope someone can help. It does appear that there's something with the .css used for that theme? I'm not a web guy and have a minimal understanding of those things.

Also, if it helps in diagnosis, I do have these packages installed:
ii libjs-jquery-ui 1.12.1+dfsg-5 all JavaScript UI library for dynamic web applications
ii libjs-jquery-ui-theme-smoothness 1.12.1+dfsg-1 all Smoothness theme for jQuery UI
ii libjs-jquery-ui-theme-south-street 1.12.1+dfsg-1 all South Street theme for jQuery UI
ii libjs-jquery-ui-theme-ui-darkness 1.12.1+dfsg-1 all UI Darkness theme for jQuery UI
ii libjs-jquery-ui-theme-ui-lightness 1.12.1+dfsg-1 all UI Lightness theme for jQuery UI


Thanks in advance for any help.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Text in Boxes is displayed as white (invisible in Classic theme)

Post by netniV »

I think you need an upgrade. To get the latest stuff, Paul Gevers has a PPA with 1.2.8 in it. We will likely be releasing 1.2.9 this weekend.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
rfluharty
Posts: 4
Joined: Wed Jan 29, 2020 1:33 pm

Re: Text in Boxes is displayed as white (invisible in Classic theme)

Post by rfluharty »

netniV,

Thanks for the reply. I'm posting my solution in case someone else hits this thread later.

I found the offending parts by using development tools in Chrome and FireFox. It allows you to move your cursor to a point in the page and it shows the stanza in the appropriate .css file.

I ended up modifying /usr/share/cacti/site/include/themes/classic/main.css. I added "color: #FFFFF" where the text was rendering white, but should have been black and such.

I also had to do something similar for the calendar to work under Nectar plugin. It was under /usr/share/cacti/site/include/themes/classic/jquery-ui.css.
Again, these are the paths on my Debian system. Yours may be different depending on the distribution and if you installed via packages or whatever.

I should have made comments in the file so others could compare theirs, but I didn't have the foresight to do so.
I'm attaching my modified version in case someone else needs it.

YOU WILL HAVE TO CHANGE THE EXTENSION FROM .txt back to .css. I apologize for that, but it wouldn't let me upload a .css file.

I hope this helps someone.
Attachments
jquery-ui.txt
(35.99 KiB) Downloaded 105 times
main.txt
(28.42 KiB) Downloaded 118 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Text in Boxes is displayed as white (invisible in Classic theme)

Post by netniV »

If you can, I would open that as a bug report and submit a PR for it too.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
DeathAndTaxes
Posts: 13
Joined: Sat Feb 28, 2004 1:09 pm
Contact:

Re: Text in Boxes is displayed as white (invisible in Classic theme)

Post by DeathAndTaxes »

Thank you, @rfluharty.
DeathAndTaxes
Posts: 13
Joined: Sat Feb 28, 2004 1:09 pm
Contact:

Re: Text in Boxes is displayed as white (invisible in Classic theme)

Post by DeathAndTaxes »

Wow, ok. Coming upon this issue again on a fresh install of 1.2.19 on ubuntu 22.04.1 lts, using classic theme. I changed one element (.ui-corner-all) in main.css to use color: #000000, not #FFFFFF, starting at line 2009 on my file:

Code: Select all

.ui-corner-all {
        border-radius: 0px;
        color: #000000;
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Text in Boxes is displayed as white (invisible in Classic theme)

Post by TheWitness »

Ubuntu has this interesting approach to their packages. Therefore, they use stock versions of things like jQueryUI instead of what comes packaged with Cacti. So, due to that the Classic Theme on Ubuntu/Debian has this artifact. If you open a bug with Debian, they will come bug us. It's working fine in stock Cacti though.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests