Date: Wed, 18 Jan 2017 11:35:35 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216225] net-mgmt/cacti does not work with php70 Message-ID: <bug-216225-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216225 Bug ID: 216225 Summary: net-mgmt/cacti does not work with php70 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: marko.cupac@mimar.rs CC: freebsd-ports@dan.me.uk Flags: maintainer-feedback?(freebsd-ports@dan.me.uk) CC: freebsd-ports@dan.me.uk Hi, I am moving my Cacti installation from 10.3 jail with php56 (mod_php56) as default version to 11.0 jail with php70 (php-fpm) as default version. Poudriere compiled cacti-0.8.8h fine with php70 as default, but accessing w= eb interface throws an error, and I see the following in my httpd-error log: [Wed Jan 18 11:58:50.452340 2017] [proxy_fcgi:error] [pid 7202] [client 10.30.19.33:34050] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/local/share/cacti/lib/adodb/adodb.inc.php on line 866\n' I encountered the problem with T_NEW already when moving my wordpress installation from php56 to php70, solving was as easy as removing single "&" character as described here: http://codecaveme.de/blog/en/php-7-and-wordpress-how-to-fix-unexpected-new-= t_new-error/ So I thought I could try and remove "&" characters on lines as indicated in httpd-error log (there was the same T_NEW error on a few more lines in the = same file), but this led me to an error which I can't solve on my own: [Wed Jan 18 12:06:40.900625 2017] [proxy_fcgi:error] [pid 7225] [client 10.30.19.33:46247] AH01071: Got error 'PHP message: PHP Fatal error: Uncau= ght Error: Call to undefined function mysql_pconnect() in /usr/local/share/cacti/lib/adodb/drivers/adodb-mysql.inc.php:355\nStack trace:\n#0 /usr/local/share/cacti/lib/adodb/adodb.inc.php(470): ADODB_mysql->_pconnect('server...', 'user', 'pass...', 'database')\n#1 /usr/local/share/cacti/lib/adodb/adodb.inc.php(3624): ADOConnection->PConnect('server...', 'user', 'pass...', 'database')\n#2 /usr/local/share/cacti/lib/database.php(51): ADONewConnection('mysql')\n#3 /usr/local/share/cacti/include/global.php(212): db_connect_real('server...', 'user', 'pass...', 'database', 'mysql', '3306', false)\n#4 /usr/local/share/cacti/include/auth.php(25): include('/usr/local/shar...')\= n#5 /usr/local/share/cacti/index.php(25): include('/usr/local/shar...')\n#6 {main}\n thrown in /usr/local/share/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355\n' Any hint higly appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216225-13>