Public bug reported:

running the command line tool "import_template.php" results in errors
due to the directory layout.

$ sudo php /usr/share/cacti/cli/import_template.php --filename=varnish.xml 
PHP Warning:  include(/usr/share/cacti/cli/../include/global.php): failed to 
open stream: No such file or directory in 
/usr/share/cacti/cli/import_template.php on line 33
PHP Warning:  include(): Failed opening 
'/usr/share/cacti/cli/../include/global.php' for inclusion 
(include_path='.:/usr/share/php:/usr/share/pear') in 
/usr/share/cacti/cli/import_template.php on line 33
PHP Warning:  include_once(../lib/import.php): failed to open stream: No such 
file or directory in /usr/share/cacti/cli/import_template.php on line 34
PHP Warning:  include_once(): Failed opening '../lib/import.php' for inclusion 
(include_path='.:/usr/share/php:/usr/share/pear') in 
/usr/share/cacti/cli/import_template.php on line 34
Read 15070 bytes of XML data
PHP Fatal error:  Call to undefined function import_xml_data() in 
/usr/share/cacti/cli/import_template.php on line 70

I need to apply the following patch:

-include(dirname(__FILE__)."/../include/global.php");
-include_once("../lib/import.php");
+include(dirname(__FILE__)."/../site/include/global.php");
+include_once(dirname(__FILE__)."/../site/lib/import.php");

** Affects: cacti (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/933454

Title:
  cli import_template.php contains wrong path

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cacti/+bug/933454/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to