cacti 1.2.3 fresh install web interface broken

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

Moderators: Moderators, Developers

Author
Message
artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#16 Post by artsx » Mon Jun 10, 2019 4:37 pm

thanks much for reply.

i am connecting via LAN and there is no proxy server between my laptop and the server. also using three different browsers, and all of them reporting same issue. could it be related to database or somehow to the permissions of files? my cacti folder's permissions are apache:apache. is that correct?

artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#17 Post by artsx » Mon Jun 10, 2019 5:01 pm

second time i got the web graphic on the page and here is the exception i am getting

another exception added.

please need help :(
Attachments
another exception.PNG
another exception.PNG (49.73 KiB) Viewed 745 times
exception return json.png
exception return json.png (21.51 KiB) Viewed 745 times

cigamit
Developer
Posts: 2780
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti 1.2.3 fresh install web interface broken

#18 Post by cigamit » Mon Jun 10, 2019 5:11 pm

What version of jquery is it using? Since this is a packaged install (we don't offer packages), sometime they like to swap out our known working versions with the latest which can break things.

artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#19 Post by artsx » Mon Jun 10, 2019 5:31 pm

cigamit wrote:What version of jquery is it using? .
sorry, where i can check that? is it browser related or operating system related?

can you tell me more on how i can check that?

####


in the devtools console:

$().jquery
TypeError: $(...) is null

or

($ === jQuery)?$().jquery:'no jquery';
"no jquery"

or

this is returning 3.3.1 in a popup window:

if (typeof jQuery != 'undefined') {
// jQuery is loaded => print the version
alert(jQuery.fn.jquery);
}



or


console.log(jQuery().jquery);
TypeError: jQuery.fn.init is not a constructor
debugger eval code:139:10
console.log(jQuery.fn.jquery);
3.3.1 debugger eval code:1:9
undefined

artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#20 Post by artsx » Tue Jun 11, 2019 5:13 pm

i think something is wrong with the source of the application, not letting it to be displayed.
now i have [url]https://www.smarthostingplans.com/ ... -centos-7/[/url], but still running into same issue

can you please let me know what could be the issue?

artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#21 Post by artsx » Tue Jun 11, 2019 9:21 pm

in chrome devtools, i see following error,while trying to launch the http://myserver/cacti/:

Code: Select all

Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://myserver/cacti/include/themes/modern/jquery.zoom.css?aabc6f45db68bd321ca27338899ef75d".
does it give you any idea where the problem can be? and I really dont think this problem should be only with me

if you try to install cacti 1.2.3,4 on fresh centos7 install, u should face the same issues


#####

another refresh giving me this:

Code: Select all

6Resource interpreted as Stylesheet but transferred with MIME type text/plain: "<URL>".
index.php:93 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://my-server/cacti/include/themes/modern/jquery.zoom.css?aabc6f45db68bd321ca27338899ef75d".
index.php:94 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://my-server/cacti/include/themes/modern/jquery-ui.css?a7406d654968e3c1531207059a9d15d2".
index.php:95 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://my-server/cacti/include/themes/modern/default/style.css?b16e44c8ea2180ea769a22921bc369ad".
index.php:99 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://my-server/cacti/include/themes/modern/c3.css?4aef467349628c8e407ecc205eac5375".
index.php:101 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://my-server/cacti/include/fa/css/fontawesome.css?c33e55a3e79984d24f3309545701cb1b".
index.php:103 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://my-server/cacti/include/themes/modern/main.css?8791fa69240d3a78a49efb9709975783".
5Resource interpreted as Stylesheet but transferred with MIME type application/x-troff: "<URL>".
index.php:96 Resource interpreted as Stylesheet but transferred with MIME type application/x-troff: "http://my-server/cacti/include/themes/modern/jquery.multiselect.css?e8d1b3ce433249ef1f2f15343caa74fb".
index.php:97 Resource interpreted as Stylesheet but transferred with MIME type application/x-troff: "http://my-server/cacti/include/themes/modern/jquery.timepicker.css?431ab7d4ef48afd9c39a647c5c990b0a".
index.php:98 Resource interpreted as Stylesheet but transferred with MIME type application/x-troff: "http://my-server/cacti/include/themes/modern/jquery.colorpicker.css?24366e47db1fb3b58658a53d9a445214".
index.php:100 Resource interpreted as Stylesheet but transferred with MIME type application/x-troff: "http://my-server/cacti/include/themes/modern/pace.css?813d842ea49d68287a59d7f49575aaa6".
index.php:102 Resource interpreted as Stylesheet but transferred with MIME type application/x-troff: "http://my-server/cacti/include/vendor/flag-icon-css/css/flag-icon.css?216e807dd0b784846799cb18051f250d".

cigamit
Developer
Posts: 2780
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti 1.2.3 fresh install web interface broken

#22 Post by cigamit » Wed Jun 12, 2019 12:07 am

As I said earlier, the Cacti code is properly setting the MIME type
If you look at your earlier post where you posted the source code of the page
https://forums.cacti.net/viewtopic.php?p=278297#p278297

You see it set to
<link href='/cacti/include/themes/modern/jquery.zoom.css?aabc6f45db68bd321ca27338899ef75d' type='text/css' rel='stylesheet'>
You are getting this error
Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://myserver/cacti/include/themes/mo ... 38899ef75d".
which means that something on your side (browser or something) is screwing with things.

artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#23 Post by artsx » Wed Jun 12, 2019 5:54 am

ok maybe you are right, since i am not developer and don't know things as you know, but how this happens on all three browsers on two laptops?
you think all six browsers are screwing things? personally me i don't think so, it maybe apache related configuration issue or web page related, otherwise on browser can screw, second can screw, but not third....and sixth.

dont you agree with me?

cigamit
Developer
Posts: 2780
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti 1.2.3 fresh install web interface broken

#24 Post by cigamit » Wed Jun 12, 2019 12:01 pm

I am just agreeing that it doesn't appear to be an issue with Cacti itself. There are a million other things it could be, anywhere from browser, to transparent proxy, to apache modules, etc... We can sit here and guess all day what it may be, but the software is clearly sending the right HTML back, so you can rule that out. From there its all in your hands.

artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#25 Post by artsx » Mon Jun 17, 2019 10:06 am

i fully agree with you, there could be millions of causes for this. however, i need to narrow down the problem, and to my understanding it could be smth related to the apache config. and since i am unable to narrow down myself, that's why i asked for help on the forum, hoping someone more skills can tell me which modules i should look at...

artsx
Posts: 19
Joined: Thu Jun 06, 2019 8:10 pm

Re: cacti 1.2.3 fresh install web interface broken

#26 Post by artsx » Mon Jun 17, 2019 8:47 pm

just in case someone else reads this forum. issue got resolved by adding below lines to <IfModule mime_module> of apache config file (httpd.conf) of centos and restart of httpd service:

AddType text/css .css
AddType text/javascript .js

this was really insane.

thanks

Post Reply