Don't know if anyone else is encountering this but lots of errors output when patching with the latest plugin architecture and now the following is displayed on the webpage:
Code: Select all
Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
Code: Select all
$ sudo patch -p1 -N < cacti-plugin-0.8.7d-PA-v2.4.diff
patching file auth_changepassword.php
Hunk #1 succeeded at 54 (offset -5 lines).
patching file auth_login.php
Hunk #1 succeeded at 205 (offset -7 lines).
Hunk #2 succeeded at 257 (offset -7 lines).
Hunk #3 succeeded at 320 (offset -7 lines).
patching file data_sources.php
Hunk #1 succeeded at 43 (offset -1 lines).
Hunk #2 FAILED at 403.
Hunk #3 FAILED at 537.
Hunk #4 succeeded at 668 (offset -17 lines).
Hunk #5 succeeded at 954 (offset -25 lines).
Hunk #6 succeeded at 1177 (offset -136 lines).
Hunk #7 FAILED at 1206.
3 out of 7 hunks FAILED -- saving rejects to file data_sources.php.rej
patching file graph_image.php
patching file graph.php
Hunk #2 FAILED at 213.
1 out of 3 hunks FAILED -- saving rejects to file graph.php.rej
patching file graphs_new.php
Hunk #1 succeeded at 473 (offset -6 lines).
patching file graphs.php
Hunk #2 succeeded at 359 (offset -3 lines).
Hunk #3 succeeded at 503 (offset -3 lines).
patching file host.php
Hunk #5 FAILED at 654.
Hunk #6 succeeded at 1093 (offset -23 lines).
1 out of 6 hunks FAILED -- saving rejects to file host.php.rej
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/global_arrays.php
Hunk #2 succeeded at 613 (offset -29 lines).
patching file include/global_constants.php
Hunk #1 FAILED at 175.
1 out of 1 hunk FAILED -- saving rejects to file include/global_constants.php.rej
patching file include/global_form.php
Hunk #2 FAILED at 1185.
1 out of 2 hunks FAILED -- saving rejects to file include/global_form.php.rej
patching file include/global.php
Hunk #1 succeeded at 48 (offset 7 lines).
Hunk #2 succeeded at 96 with fuzz 1 (offset 5 lines).
Hunk #3 FAILED at 199.
Hunk #4 succeeded at 226 with fuzz 2 (offset 7 lines).
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1084 (offset -101 lines).
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #2 FAILED at 51.
Hunk #3 succeeded at 152 (offset 45 lines).
Hunk #4 succeeded at 164 (offset 45 lines).
Hunk #5 succeeded at 172 (offset 45 lines).
Hunk #6 succeeded at 201 (offset 45 lines).
1 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 22.
Hunk #2 succeeded at 82 (offset 3 lines).
Hunk #3 succeeded at 90 (offset 3 lines).
Hunk #4 succeeded at 103 (offset 3 lines).
1 out of 4 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file index.php
patching file lib/api_device.php
Hunk #1 succeeded at 131 (offset -1 lines).
patching file lib/auth.php
Hunk #2 succeeded at 154 (offset -1 lines).
patching file lib/functions.php
Hunk #1 succeeded at 1532 (offset -108 lines).
Hunk #2 FAILED at 1545.
Hunk #3 succeeded at 1622 (offset -110 lines).
1 out of 3 hunks FAILED -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #1 succeeded at 657 (offset -4 lines).
Hunk #2 succeeded at 674 (offset -4 lines).
Hunk #3 succeeded at 695 (offset -4 lines).
patching file lib/html.php
Hunk #2 FAILED at 143.
Hunk #3 FAILED at 177.
Hunk #4 FAILED at 263.
Hunk #5 succeeded at 536 (offset -166 lines).
Hunk #6 succeeded at 547 (offset -166 lines).
Hunk #7 succeeded at 576 (offset -166 lines).
Hunk #8 succeeded at 597 (offset -166 lines).
3 out of 8 hunks FAILED -- saving rejects to file lib/html.php.rej
patching file lib/plugins.php
patching file lib/poller.php
Hunk #1 succeeded at 320 (offset -4 lines).
patching file lib/rrd.php
Hunk #1 succeeded at 484 (offset -73 lines).
Hunk #2 succeeded at 1190 (offset -202 lines).
Hunk #3 succeeded at 1205 (offset -202 lines).
patching file lib/variables.php
Hunk #1 succeeded at 181 with fuzz 1 (offset -2 lines).
patching file plugins/index.php
patching file plugins.php
patching file poller.php
Hunk #2 succeeded at 233 with fuzz 1 (offset -30 lines).
Hunk #3 succeeded at 406 (offset -1 lines).
Hunk #4 succeeded at 426 (offset -32 lines).
patching file user_admin.php
Hunk #2 succeeded at 409 (offset -11 lines).
Hunk #3 succeeded at 452 (offset -11 lines).
Hunk #4 succeeded at 904 (offset -11 lines).
Hunk #5 succeeded at 932 (offset -11 lines).
Hunk #6 succeeded at 946 (offset -11 lines).
patching file utilities.php
Hunk #2 succeeded at 1338 (offset -307 lines).
I'm running Ubuntu 8.04 (server, 32bit), pretty barebones.
Installed cacti + prereqs with:
Code: Select all
$ sudo apt-get install cacti
All other posts I've come across for the page error have not been helpful (i.e. national's posts).
Might be related to this:
http://cactiusers.org/bugs/view.php?id=122
(as it's currently unresolved).
Any help is appreciated.
Cheers,
Brennan