404 not found on items after upgrading Cacti, PIA & Plugins

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
elpiako
Cacti User
Posts: 85
Joined: Tue Jul 01, 2008 10:02 am
Location: Lille (FRANCE)

404 not found on items after upgrading Cacti, PIA & Plugins

Post by elpiako »

I've upgraded everything on my server : cacti, PIA and plugins
Cacti : from 0.8.7f to 0.8.7g
PIA : from 2.7 to 2.8
and many plugins : settings, aggregate, threshold, autom8, flowviewer

Since that, I've got a display issue : when I go to a plugin section, 'Threshold Templates' for example, i've got a 404 Not found error for all items of the page : main.css, all gif files etc., except the page first concerned : thold_templates.php.
For the main.css, for example, it tries to find it to http://cacti.odiso.com/plugins/thold/include/main.css instead of http://cacti.odiso.com/plugins/thold/include/main.css.
It's the same for every images, and even for every links in the page. Therefore, if I then try to return back on the graph management page for example, it tries to go to http://cacti.odiso.com/plugins/thold/graphs.php instead of http://cacti.odiso.com/graphs.php

I've got this issue for every plugins pages :(

Anyone has an idea ? Thank you.

Screenshot to illustrate the issue :

Image
elpiako
Cacti User
Posts: 85
Joined: Tue Jul 01, 2008 10:02 am
Location: Lille (FRANCE)

Re: 404 not found on items after upgrading Cacti, PIA & Plug

Post by elpiako »

Problem solved : the variable $url_path was not defined in the conf.php...
Server1
Cacti : 0.8.7h | Architecture : 3.0
autom8 : 0.35 | aggregate : 0.75 | settings : 0.71 | thold : 0.4.7 | weathermap : 0.97a

Server2
Cacti : 0.8.7g | Architecture : 2.8
autom8 : 0.35 | aggregate : 0.75 | settings : 0.7 | thold : 0.4.3 | weathermap : 0.97a | flowview : 0.6
miko
Posts: 7
Joined: Tue Jun 28, 2011 11:27 am

Re: 404 not found on items after upgrading Cacti, PIA & Plug

Post by miko »

Where is the conf.php file located? I have searched my entire /usr/share/cacti/site directory to no avail.

Thanks!
miko
Posts: 7
Joined: Tue Jun 28, 2011 11:27 am

Re: 404 not found on items after upgrading Cacti, PIA & Plug

Post by miko »

Ah, you must be referring to /usr/share/cacti/site/include/config.php, correct?
miko
Posts: 7
Joined: Tue Jun 28, 2011 11:27 am

Re: 404 not found on items after upgrading Cacti, PIA & Plug

Post by miko »

Hah, got it :)

What needed to be changed is the global.php file located in /usr/share/cacti/site/include.

Change from:


/* set URL path */
if (! isset($url_path)) {
$url_path = "";
}


To:

/* set URL path */
if (! isset($url_path)) {
$url_path = "/cacti/";
}
elpiako
Cacti User
Posts: 85
Joined: Tue Jul 01, 2008 10:02 am
Location: Lille (FRANCE)

Re: 404 not found on items after upgrading Cacti, PIA & Plug

Post by elpiako »

Correct :)
Server1
Cacti : 0.8.7h | Architecture : 3.0
autom8 : 0.35 | aggregate : 0.75 | settings : 0.71 | thold : 0.4.7 | weathermap : 0.97a

Server2
Cacti : 0.8.7g | Architecture : 2.8
autom8 : 0.35 | aggregate : 0.75 | settings : 0.7 | thold : 0.4.3 | weathermap : 0.97a | flowview : 0.6
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests