Forward and backward slashes in url's sometimes used wrong

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
crimson
Posts: 2
Joined: Mon Mar 10, 2008 9:32 am
Location: The Netherlands

Forward and backward slashes in url's sometimes used wrong

Post by crimson »

I've setup Cacti 8.7b on Windows XP. Almost everything works great, except that slashes in url's are sometimes wrong. For example http://localhost/cacti/\cacti\logout.php instead of http://localhost/cacti/logout.php. Turned out to be $config['url_path'] was set to '\cacti\' instead of '/cacti/'. Added the following lines to include/plugins.php after line 40:

Code: Select all

if ($config["cacti_server_os"] === "win32") { 
  $config['url_path'] = str_replace("\\", "/", $config['url_path']); 
}
Now everything works okay again. However, I haven't found other users reporting the same problem, so is this a bug or is something wrong with my installation?

Operating System: Windows XP SP2
Webserver: IIS6
Cacti: 0.8.7b
Spine: n/a
MySQL: 5.x
PHP: 5.2.5
RRDTool (Cygwin or Win32 version): 1.2
Net-SNMP: 5.x
Cygwin (cygwin1.dll version): n/a
Plugin Architecture: ?

Edit: this problem is obvious only in Firefox because it breaks the whole layout. In IE, you have to check the html source to see the problem as IE isn't so strict and it doesn't break the layout.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Must be something else you're doing with windows/IIS. I've been running cacti for years on windows 2003 and xp, using FF, and never have ran into this problem before.

include/plugins.php is installed with the plugin architecture, so this is a problem with that, not cacti.

Moving.
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

However, I haven't found other users reporting the same problem, so is this a bug or is something wrong with my installation?
you are not alone with this problem (It's a PA2.0 problem)

http://forums.cacti.net/about26258.html
http://cactiusers.org/forums/topic1370.html
http://forums.cacti.net/viewtopic.php?t=25784
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest