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
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

Amazon - July 15, 2009 - 00:25
Title:Fatal error: Cannot redeclare db_status_report() if PIFR client is not toggled to enabled» Fatal error: Cannot redeclare db_status_report() for PIFR administration when PIFR client module is enabled

Upon further testing, the PIFR module is the only factor in whether those errors appear.

#2

boombatower - July 15, 2009 - 02:36

That is very odd, pifr should have nothing to do with that code.

#3

boombatower - July 22, 2009 - 04:57
Status:active» postponed (maintainer needs more info)

Any updates?

#4

deekayen - July 24, 2009 - 20:49
Status:postponed (maintainer needs more info)» duplicate

#338291: Clients are stalling - confirm that auto-reset/self heal code works

#5

RottenSod - November 3, 2009 - 11:46

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

RottenSod - November 3, 2009 - 13:40

Sorted: one mysql + one mysqli = error!

Made them both mysqli now!!

:-)

 
 

Drupal is a registered trademark of Dries Buytaert.