Discussion:
[RCU] PHP patch update, Roundcube crashes
Rouncube Lbutlr
2018-06-30 10:18:00 UTC
Permalink
Fatal error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in
/usr/local/www/roundcube/program/lib/Roundcube/rcube_db_mysql.php on
line 144

Fatal error: Undefined class constant ‘MYSQL_ATTR_FOUND_ROWS' in
/usr/local/www/roundcube/program/lib/Roundcube/rcube_db_mysql.php on
line 144


I made sure that php56-mysql and php56-curl were up-to-date with the
rest of php56
Roundcube
2018-06-30 22:53:04 UTC
Permalink
Post by Rouncube Lbutlr
Fatal error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in
/usr/local/www/roundcube/program/lib/Roundcube/rcube_db_mysql.php on
line 144
Fatal error: Undefined class constant ‘MYSQL_ATTR_FOUND_ROWS' in
/usr/local/www/roundcube/program/lib/Roundcube/rcube_db_mysql.php on
line 144
I made sure that php56-mysql and php56-curl were up-to-date with the
rest of php56
I recompile php56 making sure that FPM was enabled, but this made no difference. I turned on CGI just for grins, but that didn't help.

Nothing is logged in the http-error log, and the roundcube log only shows the above error.
--
ɹןʇnqן
***@covisp.net
Rouncube Lbutlr
2018-07-01 00:48:39 UTC
Permalink
One other thing, php does work, this is a roundcube specific error.
here is the relevant part of my info.php file:

Jun 30 2018 16:37:36

Configure Command './configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local'
'--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr'
'--program-prefix=' '--enable-fpm' '--with-fpm-user=www'
'--with-fpm-group=www' '--enable-embed' '--with-regex=php'
'--with-zend-vm=CALL' '--prefix=/usr/local' '--localstatedir=/var'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'
'--build=i386-portbld-freebsd11.1'
'build_alias=i386-portbld-freebsd11.1' 'CC=cc' 'CFLAGS=-O2 '-pipe'
'-fstack-protector' '-fno-strict-aliasing'' 'LDFLAGS=
'-fstack-protector'' 'LIBS=-lpthread' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++'
'CXXFLAGS=-O2 '-pipe' '-fstack-protector' '-fno-strict-aliasing'

Server API
FPM/FastCGI

Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/etc
Loaded Configuration File /usr/local/etc/php.ini

Scan this dir for additional .ini files /usr/local/etc/php
Additional .ini files parsed /usr/local/etc/php/ext-10-opcache.ini,
/usr/local/etc/php/ext-18-session.ini,
/usr/local/etc/php/ext-20-bcmath.ini,
/usr/local/etc/php/ext-20-calendar.ini,
/usr/local/etc/php/ext-20-ctype.ini,
/usr/local/etc/php/ext-20-curl.ini, /usr/local/etc/php/ext-20-dom.ini,
/usr/local/etc/php/ext-20-filter.ini,
/usr/local/etc/php/ext-20-ftp.ini,
/usr/local/etc/php/ext-20-gettext.ini,
/usr/local/etc/php/ext-20-gmp.ini, /usr/local/etc/php/ext-20-hash.ini,
/usr/local/etc/php/ext-20-iconv.ini,
/usr/local/etc/php/ext-20-imap.ini,
/usr/local/etc/php/ext-20-json.ini,
/usr/local/etc/php/ext-20-ldap.ini,
/usr/local/etc/php/ext-20-mcrypt.ini,
/usr/local/etc/php/ext-20-mysqli.ini,
/usr/local/etc/php/ext-20-openssl.ini,
/usr/local/etc/php/ext-20-pdo.ini,
/usr/local/etc/php/ext-20-posix.ini,
/usr/local/etc/php/ext-20-pspell.ini,
/usr/local/etc/php/ext-20-readline.ini,
/usr/local/etc/php/ext-20-simplexml.ini,
/usr/local/etc/php/ext-20-sqlite3.ini,
/usr/local/etc/php/ext-20-tokenizer.ini,
/usr/local/etc/php/ext-20-xml.ini,
/usr/local/etc/php/ext-20-xmlwriter.ini,
/usr/local/etc/php/ext-30-pdo_sqlite.ini,
/usr/local/etc/php/ext-30-phar.ini,
/usr/local/etc/php/ext-30-xmlreader.ini

PHP API 20131106
PHP Extension 20131226
Zend Extension 220131226
Zend Extension Build API220131226,NTS
PHP Extension Build API20131226,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
DTrace Support disabled

Registered PHP Streamsphp, file, glob, data, http, ftp, https, ftps, phar
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, sslv3,
tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filtersstring.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*,
mcrypt.*, mdecrypt.*
A.L.E.C
2018-07-01 06:24:46 UTC
Permalink
Post by Rouncube Lbutlr
One other thing, php does work, this is a roundcube specific error.
Jun 30 2018 16:37:36
Configure Command './configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local'
'--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr'
'--program-prefix=' '--enable-fpm' '--with-fpm-user=www'
'--with-fpm-group=www' '--enable-embed' '--with-regex=php'
'--with-zend-vm=CALL' '--prefix=/usr/local' '--localstatedir=/var'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'
'--build=i386-portbld-freebsd11.1'
'build_alias=i386-portbld-freebsd11.1' 'CC=cc' 'CFLAGS=-O2 '-pipe'
'-fstack-protector' '-fno-strict-aliasing'' 'LDFLAGS=
'-fstack-protector'' 'LIBS=-lpthread' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++'
'CXXFLAGS=-O2 '-pipe' '-fstack-protector' '-fno-strict-aliasing'
`php -m` would be more helpful. I think you just need pdo-mysql extension.
--
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer [http://kolab.org]
Roundcube Webmail Developer [http://roundcube.net]
----------------------------------------------------
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
@lbutlr
2018-07-03 12:08:55 UTC
Permalink
Post by A.L.E.C
Post by Rouncube Lbutlr
One other thing, php does work, this is a roundcube specific error.
Jun 30 2018 16:37:36
Configure Command './configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local'
'--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr'
'--program-prefix=' '--enable-fpm' '--with-fpm-user=www'
'--with-fpm-group=www' '--enable-embed' '--with-regex=php'
'--with-zend-vm=CALL' '--prefix=/usr/local' '--localstatedir=/var'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'
'--build=i386-portbld-freebsd11.1'
'build_alias=i386-portbld-freebsd11.1' 'CC=cc' 'CFLAGS=-O2 '-pipe'
'-fstack-protector' '-fno-strict-aliasing'' 'LDFLAGS=
'-fstack-protector'' 'LIBS=-lpthread' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++'
'CXXFLAGS=-O2 '-pipe' '-fstack-protector' '-fno-strict-aliasing'
`php -m` would be more helpful. I think you just need pdo-mysql extension.
Out of desperation, I rebooted the server.

Everything works fine.

This concerns men but not enough to keep messing with it.

Loading...