Menu

#3997 (ok 4.0.7) Call to undefined function PMA_DBI_num_rows()

4.0.4
fixed
None
1
2014-08-17
2013-06-27
No

PHP Fatal error: Call to undefined function PMA_DBI_num_rows() in /opt/pma/phpMyAdmin-4.0.4-english/libraries/navigation/Nodes/Node.class.php on line 408

I had PHP PDO installed, but no drivers. After I installed pdo-mysql, it works again.

Suggestion: Show an error if PDO is not installed or if no database drivers for PDO are installed.

Discussion

  • poiuty

    poiuty - 2013-06-28

    just try "apt-get install php5-mysql"

     
  • Alexander Schuch

    This is what I did and phpMyAdmin thereafter works of course. Still, causing a PHP Fatal Error and rendering a white page is not considered best practice.

     
  • Marc Delisle

    Marc Delisle - 2013-07-05
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2013-07-05

    But phpMyAdmin does not support PDO. However, a warning was supposed to show up (it's looking for mysqli by default).

     

    Last edit: Marc Delisle 2013-07-05
  • Marc Delisle

    Marc Delisle - 2013-07-05
    • assigned_to: Marc Delisle --> nobody
     
  • Alexander Schuch

    On Ubuntu, php5-mysqlnd provides pdo_mysql, mysqlnd, mysqli and mysql. Without that package, no MySQL connectivity is present at all. And in this case, a blank page is shown.

     
  • Michal Čihař

    Michal Čihař - 2013-09-12
    • assigned_to: Michal Čihař
     
  • Michal Čihař

    Michal Čihař - 2013-09-12
    • summary: Call to undefined function PMA_DBI_num_rows() --> (ok 4.0.7) Call to undefined function PMA_DBI_num_rows()
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Michal Čihař

    Michal Čihař - 2013-09-12

    Fixed reporting of this error in git - now phpMyAdmin will properly show error message.

     
  • Marc Delisle

    Marc Delisle - 2013-09-23
    • Status: resolved --> fixed