Author Topic: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'  (Read 29099 times)

Offline chatwizrd

  • Jr. Member
  • **
  • Posts: 19
Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« 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

Offline chatwizrd

  • Jr. Member
  • **
  • Posts: 19
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #1 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

Offline myth

  • Newbie
  • *
  • Posts: 9
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #2 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 :(

Offline jackrabb1t

  • Newbie
  • *
  • Posts: 5
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #3 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?
« Last Edit: April 17, 2013, 02:11:28 PM by jackrabb1t »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #4 on: April 17, 2013, 02:49:29 PM »
Ask your host to install the php mysql pdo extension.

Offline jackrabb1t

  • Newbie
  • *
  • Posts: 5
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #5 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:


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #6 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.

Offline jackrabb1t

  • Newbie
  • *
  • Posts: 5
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #7 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #8 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.

Offline antoneue

  • Newbie
  • *
  • Posts: 1
Re: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
« Reply #9 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.