Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 16, 2019 3:46 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Mon Jun 10, 2019 4:37 pm 
Offline

Joined: Thu Jun 06, 2019 8:10 pm
Posts: 17
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?


Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Mon Jun 10, 2019 5:01 pm 
Offline

Joined: Thu Jun 06, 2019 8:10 pm
Posts: 17
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 116 times ]
exception return json.png
exception return json.png [ 21.51 KiB | Viewed 116 times ]
Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Mon Jun 10, 2019 5:11 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2761
Location: B/CS Texas
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.

_________________
Report a bug
Download Releases
1.X Compatible Plugins


Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Mon Jun 10, 2019 5:31 pm 
Offline

Joined: Thu Jun 06, 2019 8:10 pm
Posts: 17
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


Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Tue Jun 11, 2019 5:13 pm 
Offline

Joined: Thu Jun 06, 2019 8:10 pm
Posts: 17
i think something is wrong with the source of the application, not letting it to be displayed.
now i have [url][url]https://www.smarthostingplans.com/uncategorized/how-to-install-cacti-on-centos-7/[/url][/url], but still running into same issue

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


Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Tue Jun 11, 2019 9:21 pm 
Offline

Joined: Thu Jun 06, 2019 8:10 pm
Posts: 17
in chrome devtools, i see following error,while trying to launch the http://myserver/cacti/:

Code:
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:
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".


Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Wed Jun 12, 2019 12:07 am 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2761
Location: B/CS Texas
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
Quote:
<link href='/cacti/include/themes/modern/jquery.zoom.css?aabc6f45db68bd321ca27338899ef75d' type='text/css' rel='stylesheet'>

You are getting this error
Quote:
Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://myserver/cacti/include/themes/modern/jquery.zoom.css?aabc6f45db68bd321ca27338899ef75d".

which means that something on your side (browser or something) is screwing with things.

_________________
Report a bug
Download Releases
1.X Compatible Plugins


Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Wed Jun 12, 2019 5:54 am 
Offline

Joined: Thu Jun 06, 2019 8:10 pm
Posts: 17
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?


Top
 Profile  
 
 Post subject: Re: cacti 1.2.3 fresh install web interface broken
PostPosted: Wed Jun 12, 2019 12:01 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2761
Location: B/CS Texas
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.

_________________
Report a bug
Download Releases
1.X Compatible Plugins


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group