Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


poller.php - Parse error: syntax error...

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
zastrix



Joined: 30 May 2008
Posts: 1
Location: Madison, WI

PostPosted: Fri May 30, 2008 12:14 pm    Post subject: poller.php - Parse error: syntax error... Reply with quote

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/share/php/adodb/adodb.inc.php on line 336


any ideas?? this is preventing creation of any rrd files on my fresh install on debian lenny.


adodb.inc.php - line 336:

static function Version()
{
global $ADODB_vers;

return (float) substr($ADODB_vers,1);
}
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sun Jun 01, 2008 7:43 am    Post subject: Reply with quote

This is a build problem from your package maintainer. Since we don't publish this package (as adodb is in /usr/share instead of /var/www/html/cacti/...), you will have to post on the appropriate Linux distributions site for assistance, or install Cacti from source.

TheWitness
Back to top
dub



Joined: 11 Jun 2008
Posts: 1

PostPosted: Wed Jun 11, 2008 6:50 pm    Post subject: Reply with quote

I have this problem, did the OP raise this anywhere else?
Back to top
pfriedel



Joined: 12 Jan 2006
Posts: 1

PostPosted: Thu Jun 12, 2008 11:11 pm    Post subject: Reply with quote

dub wrote:
I have this problem, did the OP raise this anywhere else?


I had to downgrade libphp-adodb from 5.04a-1 to 4.93a-1.1 in debian, which seems to have cleared it up.
Back to top
emonk



Joined: 17 Jun 2008
Posts: 2

PostPosted: Tue Jun 17, 2008 11:54 am    Post subject: Reply with quote

I have the same problem with Debian Lenny (testing), and the package maintainer does not answer me mails .
Somebody have any solution ?

Code:

host:~# php /usr/share/cacti/site/poller.php
PHP Warning:  mime_magic: type search/400       \\input         text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\section       text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\setlength     text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\documentstyle text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\chapter       text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\documentclass text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type regex            [Cc]onstant[[:space:]]+[Ss]tory text/x-inform invalid in Unknown on line 0

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/share/php/adodb/adodb.inc.php on line 336


Code:

host:~# aptitude show libphp-adodb
Paquete: libphp-adodb
Nuevo: sí
Estado: instalado
Instalado automáticamente: sí
Versión: 5.04a-1
Prioridad: opcional
Sección: web
Desarrollador: Cameron Dale <camrdale@gmail.com>
Tamaño sin comprimir: 2324k
Depende de: debconf (>= 0.5) | debconf-2.0, php5 | php5-cli
Recomienda: php5-mysql | php5-pgsql | php5-sybase | php5-odbc
Sugiere: php5-adodb
Descripción: The ADOdb database abstraction layer for PHP
 A library for PHP, to allow for a universal way to access databases. ADOdb stands for Active Data Objects Data Base. Currently supported databases are MySQL,
 PostgreSQL, Interbase, Oracle, MS SQL 7, FoxPro, Access, ADO, Sybase, DB2 and generic ODBC.
Página principal: http://adodb.sourceforge.net/

Thanks.

PD: sry for my english, i speak spanish.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12206
Location: Muenster, Germany

PostPosted: Wed Jun 18, 2008 1:43 pm    Post subject: Reply with quote

Cacti requires use of it's own adodb that's packaged with cacti. We are currently not able to support the debian way. You may want to use the code provided by the cacti tar.gz
Reinhard
Back to top
emonk



Joined: 17 Jun 2008
Posts: 2

PostPosted: Wed Jun 18, 2008 2:23 pm    Post subject: Reply with quote

gandalf wrote:
Cacti requires use of it's own adodb that's packaged with cacti. We are currently not able to support the debian way. You may want to use the code provided by the cacti tar.gz
Reinhard

Yes i find that, and change php5 for php4 .
Thanks.
Back to top
af3556



Joined: 20 Jul 2008
Posts: 1

PostPosted: Sun Jul 20, 2008 6:44 am    Post subject: Reply with quote

If you have this error and have php4 and php5 installed, remove php4.
Back to top
floaty



Joined: 06 Mar 2007
Posts: 7

PostPosted: Thu Jul 24, 2008 11:26 am    Post subject: Reply with quote

for Debian 4.1.2-19 it is simply done with

aptitude remove php5

aptitude install php4

before:/

Quote:

php poller.php
PHP Warning: mime_magic: type search/400 \\input text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\section text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\setlength text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentstyle text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\chapter text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentclass text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform invalid in Unknown on line 0

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/share/php/adodb/adodb.inc.php on line 336




later:)

Quote:

ztest:/usr/share/cacti/site# php poller.php
07/24/2008 11:53:13 AM - POLLER: Poller[0] NOTE: Poller Int: '10', Cron Int: '60', Time Since Last: 'never', Max Runtime '58', Poller Runs: '6'
WARNING: Unrecongized directive: LogFile=/var/log/cacti/cacti.log in /etc/cacti/spine.conf
Waiting on 1/1 pollers.
OK u:0.00 s:0.01 r:1.03
OK u:0.00 s:0.01 r:1.03
OK u:0.00 s:0.01 r:1.04
OK u:0.00 s:0.01 r:1.04
OK u:0.00 s:0.02 r:1.05
OK u:0.00 s:0.02 r:1.05
OK u:0.00 s:0.02 r:1.05
OK u:0.00 s:0.02 r:1.05
OK u:0.00 s:0.02 r:1.06
OK u:0.00 s:0.02 r:1.06
07/24/2008 11:53:14 AM - SYSTEM STATS: Time:1.1989 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group