|
|
| Author |
Message |
dbuchner
Joined: 13 Mar 2008 Posts: 13 Location: Sydney
|
Posted: Fri Mar 14, 2008 1:40 am Post subject: Aggregate Plugin ERRNO:2048 |
|
|
Evening
Until recently - not sure what exactly has changed - the plugin architecture was working just fine. It always does until it breaks. grrr
When I go through and select graphs via Graph Management, check the graphs I want to aggregate, select drop down "Create Aggregate Graphs", click Go. Fill in Title and select the colour template of my choosing and click on Yes to create the aggregate.
Error:
| Code: | | PROGERR: ERRNO:'2048' TYPE:'' MESSAGE:'Assigning the return value of new by reference is deprecated' IN FILE:'/usr/local/apache2/htdocs/lib/adodb/adodb-lib.inc.php' LINE NO:'537' |
Line 536 & 537 read (respectively):
| Code: | $recordSet =& new $rsclass(-1,$zthis->fetchMode);
$recordSet->connection = &$zthis; |
Had a look at the SQL statements as per the debug log - however they aren't telling me much...see attached.
Anyone come across this or able to point me in another(right) direction sure would be appreciated.
Yes, I have seen the other thread relating to this error - unfortunately it goes nowhere - except the user being quite rude to the witness.
http://forums.cacti.net/post-110192.html
Cacti: 0.8.7b
Mysql:5.0.51a
Plugin Arch: 2.0
PHP: 5.2.5
Perl: 5.8.5
Apache: 2.2.6
Dan
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Sat Mar 15, 2008 1:26 pm Post subject: |
|
|
What's your setting of php.ini's variable allow_call_time_pass_reference, then?
Reinhard
|
|
| Back to top |
|
 |
dbuchner
Joined: 13 Mar 2008 Posts: 13 Location: Sydney
|
Posted: Sun Mar 16, 2008 5:03 pm Post subject: |
|
|
Hi Reinhardt,
thanks for the reply, the variable is set to ON, should there be a specific value against it or is there a recommended value?
| Code: | Directive Local Value Master Value
allow_call_time_pass_reference On On |
I compiled PHP 5.2.5 with the same config vars as per sunfreeware's version which was working fine with the aggregate plugin - except that it had been compiled without --enable-sockets - hence my reason for the recompile.
| Code: | | './configure' '--prefix=/opt/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/' '--with-config-file-path=/opt/php/etc' '--with-openssl=/usr/local/ssl/' '--with-gd=/usr/local/' '--with-gdbm=/usr/lib' '--with-freetype-dir=/usr/local/' '--with-jpeg-dir=/usr/local/' '--with-png-dir' '--with-zlib=/usr/local/' '--enable-mbstring' '--enable-sockets' |
|
|
| Back to top |
|
 |
dbuchner
Joined: 13 Mar 2008 Posts: 13 Location: Sydney
|
Posted: Mon Mar 17, 2008 12:46 am Post subject: |
|
|
Hmmm soooo now I am a little embarrassed - it is working again...with the exception of the skins for the Color Templates link which isn't loading all the include path details and as such looks a little screwy.
What's changed...
I removed everything I could find in relation to the aggregate plugin, re-installed the plugin and all is well. I had done this before however in the later case I removed the plugin details before I copied it all back.
So in short. User error.
Thanks for your response anyway.
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Mon Mar 17, 2008 11:52 am Post subject: |
|
|
| dbuchner wrote: | | .with the exception of the skins for the Color Templates link which isn't loading all the include path details and as such looks a little screwy. | Please post details
Reinhard
|
|
| Back to top |
|
 |
dbuchner
Joined: 13 Mar 2008 Posts: 13 Location: Sydney
|
Posted: Mon Mar 17, 2008 5:40 pm Post subject: |
|
|
According to the error log the following files are not present in the /images directory.
| Code: | [Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/cacti_backdrop.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/tab_graphs.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/tab_console_down.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/cacti_logo.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/transparent_line.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/left_border.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/shadow_gray.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php
[Tue Mar 18 09:12:24 2008] [error] [client 10.109.10.51] File does not exist: /usr/local/apache2/htdocs/plugins/reportit/images/shadow.gif, referer: http://opwv-syd03-z06.somehost.com/plugins/reportit/cc_templates.php |
Here is my path to the plugin:
| Code: | bash-3.00# pwd
/usr/local/apache2/htdocs/plugins/reportit/images
bash-3.00# ls -la
total 82
drwxrwxrwx 2 root root 512 Mar 18 09:15 .
drwxrwxrwx 7 root root 512 Mar 17 17:02 ..
-r--r--r-- 1 root root 17920 Oct 1 13:46 Thumbs.db
-r--r--r-- 1 root root 900 Sep 23 11:29 bar.gif
-r--r--r-- 1 root root 776 Sep 23 11:29 bar_pie.png
-r--r--r-- 1 root root 1745 Sep 23 11:29 button_back.gif
-r--r--r-- 1 root root 1716 Sep 23 11:29 button_debug.gif
-r--r--r-- 1 root root 2006 Sep 23 11:29 button_next.gif
-r--r--r-- 1 root root 47 Sep 23 11:29 index.php
-r--r--r-- 1 root root 1045 Sep 23 11:29 pie.gif
-r--r--r-- 1 root root 2537 Sep 23 11:29 tab_reportit.gif
-r--r--r-- 1 root root 2622 Sep 23 11:29 tab_reportit_down.png
-r--r--r-- 1 root root 2814 Sep 23 11:29 tab_reportit_up.png |
This is the case for all the plugins I have currently installed. (tools/docs/reportit/aggregate). Clearly I messed something up - somewhere along the way. I have gone and linked the images directory into the plugin directories but this hasn't completely solved the issues.
| Description: |
|
| Filesize: |
94.64 KB |
| Viewed: |
968 Time(s) |

|
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Mon Mar 17, 2008 6:58 pm Post subject: |
|
|
You configuration is not correct. The various colors are indicative to the url_path not be set correctly. Also, from your prior error messages, it would appear that ADODB is not installed in the Cacti directory. This is a sure sine of trouble. You appear to have ADODB installed separately.
TheWitness
|
|
| Back to top |
|
 |
lcj
Joined: 20 Mar 2008 Posts: 2
|
Posted: Thu Mar 20, 2008 12:06 pm Post subject: |
|
|
Well, hmmm. I can't seem to get past this error for the aggregate plugin, which by the way is very cool! The plugin, not the error!
The first time I setup an aggregate I received the adodb reference error. I figured I did something wrong, so went back and did it again and it worked.. and it's still graphing. However, on subsequent attempts I continually get the adodb error.
I have followed Dan's footsteps, removing and reinstalling the AG plug but to no avail. ADODB is where it should be in Cacti /lib/adodb .... Although, I had to do an apt-get install libphp-adodb. Which in turn mentioned that the adodb path in php.ini has changed. So I have corrected the "include path" in php.ini.
Deb - Etch
Apache - 1.3.34
PHP5
MySql 5.0
Cacti - latest port as of 03.20.08
PA - latest port as of 03.20.08
*******
Ok ..... this is interesting ..... I've had this reply window up for a while. Probably an hour or more while doing several other things. I had built an aggregate just prior to starting this reply and, of course, received the adodb error.
Seems like the graph was generated anyway. I just logged back into cacti and went to Graph Management and by golly, there it was.
So .. hmmm... why the error ....
Thanks folks,
Les
|
|
| Back to top |
|
 |
lcj
Joined: 20 Mar 2008 Posts: 2
|
Posted: Thu Mar 20, 2008 12:50 pm Post subject: |
|
|
and after a bit more re-googling ...
This error is caused by this line # 537 as Dan stated.
| Quote: |
$recordSet =& new $rsclass(-1,$zthis->fetchMode);
$recordSet->connection = &$zthis;
|
An adjusted line:
| Quote: |
$recordSet = new $rsclass(-1,$zthis->fetchMode);
$recordSet->connection = &$zthis;
|
Remove the & after the " = " and the error goes away.
Don't know what else that breaks now ...
**
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Fri Mar 21, 2008 5:03 am Post subject: |
|
|
Send that to the ADODB forum's/support group. Keep us posted. It may be a PHP setting to maintain depricated option:
| Code: | | allow_call_time_pass_reference = On |
TheWitness
|
|
| Back to top |
|
 |
|