Roundcube Community Forum

Release Support => Pending Issues => Topic started by: chatwizrd on April 16, 2013, 09:18:42 AM

Title: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: chatwizrd on April 16, 2013, 09:18:42 AM
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
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: chatwizrd on April 16, 2013, 09:31:50 AM
I fixed it by running the following command on FreeBSD.

Code: [Select]
cd /usr/ports/databases/php53-pdo_mysql/ && make install clean
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: myth on April 16, 2013, 10:51:19 AM
I fixed it by running the following command on FreeBSD.

Code: [Select]
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 :(
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: jackrabb1t on April 17, 2013, 02:07:58 PM
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?
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: SKaero on April 17, 2013, 02:49:29 PM
Ask your host to install the php mysql pdo extension.
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: jackrabb1t on April 17, 2013, 05:03:30 PM
According to my PHP info page, the mysql pdo driver is installed. This is what I see:

(http://www.isaacdagel.com/img_dump/mysql-pdo.jpg)
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: 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.
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: jackrabb1t on April 17, 2013, 05:18:42 PM
You also need to have PHP 5.3.x to use the mysql pdo extension with RoundCube.

I'm running 5.3.8
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: SKaero on April 17, 2013, 06:37:36 PM
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.
Title: Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Post by: antoneue on May 14, 2013, 06:51:45 AM
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.