Roundcube Community Forum

 

Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'

Started by chatwizrd, April 16, 2013, 09:18:42 AM

Previous topic - Next topic

chatwizrd

I am receiving the following error after installing 0.9.0-release

[16-Apr-2013 09:13:16 America/New_York] PHP Fatal error:  Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /usr/local/www/apache22/data/roundcubemail-0.9.0/program/lib/Roundcube/rcube_db_mysql.php on line 127

I use apache 2.2 and php 5.3.

Not sure what the deal is.

Thanks

chatwizrd

I fixed it by running the following command on FreeBSD.


cd /usr/ports/databases/php53-pdo_mysql/ && make install clean

myth

Quote from: chatwizrd on April 16, 2013, 09:31:50 AM
I fixed it by running the following command on FreeBSD.


cd /usr/ports/databases/php53-pdo_mysql/ && make install clean


This worked for me too, although I sadly still have another problem with nginx and php-fpm: http://www.roundcubeforum.net/index.php/topic,10744.0.html :(

jackrabb1t

#3
I have the same issue with 'MYSQL_ATTR_FOUND_ROWS'. I'm running PHP 5.3.8. How do I fix this if I'm on a shared hosting server?

SKaero

Ask your host to install the php mysql pdo extension.

jackrabb1t

According to my PHP info page, the mysql pdo driver is installed. This is what I see:


SKaero

You also need to have PHP 5.3.x to use the mysql pdo extension with RoundCube.

jackrabb1t

Quote from: SKaero on April 17, 2013, 05:14:02 PM
You also need to have PHP 5.3.x to use the mysql pdo extension with RoundCube.

I'm running 5.3.8

SKaero

Then I'm not sure what would causing it, from the screenshot it looks like your running an older mysql server but I don't know if that would have any effect.

antoneue

I am also getting this same error. Using a shared host so can't access the PHP.INI file. Have contacted the host and also checked on my end... 5.3.8 running and PDO active. Any help much appreciated.