Fatal error: Cannot redeclare db_status_report() for PIFR administration when PIFR client module is enabled
Amazon - July 14, 2009 - 23:46
| Project: | Project Issue File Review |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
http://vps05.hangarservers.net/admin/pifr, Fatal error: Cannot redeclare db_status_report() (previously declared in /var/www/drupal/includes/database.mysql.inc:20) in /var/www/drupal/includes/database.mysqli.inc on line 39
Once I toggled the client it was fine.

#1
Upon further testing, the PIFR module is the only factor in whether those errors appear.
#2
That is very odd, pifr should have nothing to do with that code.
#3
Any updates?
#4
#338291: Clients are stalling - confirm that auto-reset/self heal code works
#5
Fatal error: Cannot redeclare db_status_report() (previously declared in /home/minimadc/public_html/d/includes/database.mysqli.inc:23) in /home/minimadc/public_html/d/includes/database.mysql.inc on line 36
My code (on a new Page):
<?php
db_set_active('mydatabase');
$countrows = db_result(db_query("SELECT count(*) FROM {mytable}"));
echo "RottenSod: ".$countrows;
//Switch back to the default connection when finished.
db_set_active('default');
?>
Any idea what's going on here?
#6
Sorted: one mysql + one mysqli = error!
Made them both mysqli now!!
:-)