Problem with patches

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
cachorroyayo
Cacti User
Posts: 53
Joined: Thu Sep 17, 2009 5:37 pm
Location: Lima - Peru

Problem with patches

Post by cachorroyayo »

Hello Forum

I'm using FreeBSD 8.1-RELEASE.
My recently installed worked fine until I decided install the plugin-architecture to testing it in my testing_box and after try it on my production server.
I follow the standard steps I used to do to install my cacti on BSD. is not my first.

Well

I do:
[root@ /usr/local/share/cacti]# wget http://mirror.cactiusers.org/downloads/ ... 2.8.tar.gz
[root@ /usr/local/share/cacti]# tar zxvf cacti-plugin-0.8.7g-PA-v2.8.tar.gz
[root@ /usr/local/share/cacti]# patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.8.diff
My patch output
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/auth_changepassword.php cacti-0.8.7g/auth_changepassword.php
|--- cacti-0.8.7g-old/auth_changepassword.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/auth_changepassword.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file auth_changepassword.php using Plan A...
Hunk #1 succeeded at 59.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/auth_login.php cacti-0.8.7g/auth_login.php
|--- cacti-0.8.7g-old/auth_login.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/auth_login.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file auth_login.php using Plan A...
Hunk #1 succeeded at 124.
Hunk #2 succeeded at 191.
Hunk #3 succeeded at 279.
Hunk #4 succeeded at 326.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/data_sources.php cacti-0.8.7g/data_sources.php
|--- cacti-0.8.7g-old/data_sources.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/data_sources.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file data_sources.php using Plan A...
Hunk #1 succeeded at 44.
Hunk #2 succeeded at 404.
Hunk #3 succeeded at 549.
Hunk #4 succeeded at 693.
Hunk #5 succeeded at 987.
Hunk #6 succeeded at 1323.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/graph_image.php cacti-0.8.7g/graph_image.php
|--- cacti-0.8.7g-old/graph_image.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/graph_image.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file graph_image.php using Plan A...
Hunk #1 succeeded at 44.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/graph.php cacti-0.8.7g/graph.php
|--- cacti-0.8.7g-old/graph.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/graph.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file graph.php using Plan A...
Hunk #1 succeeded at 32.
Hunk #2 succeeded at 96.
Hunk #3 succeeded at 218.
Hunk #4 succeeded at 251.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/graphs_new.php cacti-0.8.7g/graphs_new.php
|--- cacti-0.8.7g-old/graphs_new.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/graphs_new.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file graphs_new.php using Plan A...
Hunk #1 succeeded at 511.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/graphs.php cacti-0.8.7g/graphs.php
|--- cacti-0.8.7g-old/graphs.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/graphs.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file graphs.php using Plan A...
Hunk #1 succeeded at 45.
Hunk #2 succeeded at 364.
Hunk #3 succeeded at 518.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/host.php cacti-0.8.7g/host.php
|--- cacti-0.8.7g-old/host.php 2010-07-09 18:33:46.000000000 -0400
|+++ cacti-0.8.7g/host.php 2010-07-09 18:34:11.000000000 -0400
--------------------------
Patching file host.php using Plan A...
Hunk #1 succeeded at 44.
Hunk #2 succeeded at 307.
Hunk #3 succeeded at 454.
Hunk #4 succeeded at 542.
Hunk #5 succeeded at 655.
Hunk #6 succeeded at 1120.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur cacti-0.8.7g-old/images/disable_icon.png cacti-0.8.7g/images/disable_icon.png
|--- cacti-0.8.7g-old/images/disable_icon.png 1969-12-31 19:00:00.000000000 -0500
|+++ cacti-0.8.7g/images/disable_icon.png 2010-07-09 18:34:11.000000000 -0400
--------------------------
(Creating file images/disable_icon.png...)
Patching file images/disable_icon.png using Plan A...
patch: **** malformed patch at line 384: diff -Naur cacti-0.8.7g-old/images/enable_icon_disabled.png cacti-0.8.7g/images/enable_icon_disabled.png
My next was edit include/global.php
$config['url_path'] = "/cacti/";
After I patch my cacti_db and restart Apache.
mysql -u root -pdnsmaster cacti < /usr/local/share/cacti-plugin-arch/pa.sql
[root@newdns /usr/local/share/cacti]# /usr/local/etc/rc.d/apache22 restart
Finally I try to log in to my server but this messages is promted

http://1.2.3.4/cacti/index.php
Fatal error: Call to undefined function api_plugin_hook() in /usr/local/share/cacti/auth_login.php on line 284
And i'm unable to login.
And I can't see if the PA is or not correctly installed..



regards.

Eduardo Mejia
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Problem with patches

Post by noname »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest