Problem: Notice: Undefined index

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

Moderators: Developers, Moderators

Post Reply
jordi
Posts: 7
Joined: Fri Apr 07, 2006 11:07 pm

Problem: Notice: Undefined index

Post by jordi »

I got an error from device page:

Code: Select all

Notice: Undefined index: host_status in /usr/local/apache/htdocs/cacti/host.php on line 730
Has anyone met this before? How to fix it?

Thanks a lot.

Cheers~~
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Post by zheka »

Hi jordi!

I have the same problem with this message. Have you figured it out?

Eugene
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

quinten
Posts: 6
Joined: Wed May 24, 2006 12:29 pm

Post by quinten »

Mine is in the "mactrack" plugin, but same issue...

PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 52,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 53,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,

I checked out the lines in the file and they show:
  • 48?>
    59<html>
    50<head>
    51 <title>cacti</title>
    52 <link href="<?php echo $config['url_path']; ?>include/main.css" rel="stylesheet">
    53 <script type="text/javascript" src="<?php echo $config['url_path']; ?>include/layout.js"></script>
    54</style>
    55</head>
    56
    57<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    58
    59<table width="100%" cellspacing="0" cellpadding="0">
    60 <tr height="37" bgcolor="#a9a9a9">
    61 <td valign="bottom" colspan="3" nowrap>
    62 <table width="100%" cellspacing="0" cellpadding="0">
    63 <tr>
    64 <td valign="bottom">
    65 <?php if ($show_console_tab == true) {?><a href="<?php echo $config['url_path']; ?>index.php"><img src="<?php
    66 echo $con$
    67 }?><a href="<?php echo $config['url_path']; ?>graph_view.php"><img src="<?php echo $config['url_path']; 68?>images/tab$
    69 do_hook("top_graph_header_tabs");
    70 ?>

Do not know what is wrong.. But I get the same error message as you guys.
quinten
Posts: 6
Joined: Wed May 24, 2006 12:29 pm

Post by quinten »

quinten wrote:65 <?php if ($show_console_tab == true) {?><a href="<?php echo $config['url_path']; ?>index.php"><img src="<?php
66 echo $con$

Made an error in the paste.. 66 is just an continuation...

I tried the patches and looked at the functions some more.. but nope.. nadda. Still get the message of an Undefined Index..

Permissions are good.. I can comment those lines out of top_mactrack_header.php, and I at least get some display.. but other errors occur..

PHP Fatal error: Call to undefined function: do_hook() in /var/www/html/mactrack/include/top_mactrack_header.php on line 67, referer: http://192.168.1.115/graph_view.php?act ... first=true

Q
quinten
Posts: 6
Joined: Wed May 24, 2006 12:29 pm

Post by quinten »

quinten wrote:Mine is in the "mactrack" plugin, but same issue...

PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 52,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 53,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,

52 <link href="<?php echo $config['url_path']; ?>include/main.css" rel="stylesheet">
53 <script type="text/javascript" src="<?php echo [/list]


I fixed the issues by hardcoding the url_path with the right http: url for now...

However.. I am still getting the...

PHP Fatal error: Call to undefined function: do_hook() in /var/www/html/mactrack/include/top_mactrack_header.php on line 67

Error..
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This looks like messed up plugins ...
Please post this in the mactrack thread
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests