|
|
| Author |
Message |
Khan
Joined: 03 Nov 2003 Posts: 47 Location: Madtown, WI
|
Posted: Wed Nov 05, 2003 1:09 pm Post subject: Error Running cmd.php from latest CVS |
|
|
Error output from running php /var/www/html/cacti/cmd.php:
Warning: main(./include/config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /var/www/html/cacti/cmd.php on line 30
Warning: main() [http://www.php.net/function.main]: Failed opening './include/config.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/cacti/cmd.php on line 30
Warning: main(./lib/snmp.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /var/www/html/cacti/cmd.php on line 31
Warning: main() [http://www.php.net/function.main]: Failed opening './lib/snmp.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/cacti/cmd.php on line 31
Warning: main(./lib/rrd.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /var/www/html/cacti/cmd.php on line 32
Warning: main() [http://www.php.net/function.main]: Failed opening './lib/rrd.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/cacti/cmd.php on line 32
Warning: main(./lib/functions.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /var/www/html/cacti/cmd.php on line 33
Warning: main() [http://www.php.net/function.main]: Failed opening './lib/functions.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/cacti/cmd.php on line 33
Warning: main(./lib/graph_export.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /var/www/html/cacti/cmd.php on line 34
Warning: main() [http://www.php.net/function.main]: Failed opening './lib/graph_export.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in /var/www/html/cacti/cmd.php on line 34
Fatal error: Call to undefined function: db_fetch_assoc() in /var/www/html/cacti/cmd.php on line 36
If I edit cmd.php to not use the ./ in front of all ofthe includes, I don't receive any errors but, HD parition polling does not work. |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Wed Nov 05, 2003 1:26 pm Post subject: |
|
|
I need to do a little cleanup/testing with this code tonight. Continue to check CVS for an updated copy, it should be fixed by tonight.
-Ian |
|
| Back to top |
|
 |
Khan
Joined: 03 Nov 2003 Posts: 47 Location: Madtown, WI
|
Posted: Wed Nov 05, 2003 1:30 pm Post subject: |
|
|
| raX wrote: | I need to do a little cleanup/testing with this code tonight. Continue to check CVS for an updated copy, it should be fixed by tonight.
-Ian |
Will do. I'll follow up tomorrow on what happens. Thanks for the quick reply.
-ac |
|
| Back to top |
|
 |
Khan
Joined: 03 Nov 2003 Posts: 47 Location: Madtown, WI
|
Posted: Thu Nov 06, 2003 12:11 pm Post subject: |
|
|
Ok, I updated from CVS and I no longer receive the errors running cmp.php. However, I now receive this error when attempting to create new graphs:
Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/html/cacti/graphs_new.php on line 778
Let me know what to change. Thanks
-ac |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Thu Nov 06, 2003 8:29 pm Post subject: |
|
|
| Khan wrote: | Ok, I updated from CVS and I no longer receive the errors running cmp.php. However, I now receive this error when attempting to create new graphs:
Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/html/cacti/graphs_new.php on line 778
|
Are you seeing this error when you open the "New Graphs" page, or do you see it when you actually try and create some graphs? Looking at the code, it is not immediately obvious why you are getting this error.
Also, a screenshot might give me a better picture about what is going on.
-Ian |
|
| Back to top |
|
 |
|