Download & Extend

Fatal error: Cannot redeclare db_status_report() for PIFR administration when PIFR client module is enabled

Project:Project Issue File Review
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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.

Comments

#1

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

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

#3

Status:active» postponed (maintainer needs more info)

Any updates?

#4

Status:postponed (maintainer needs more info)» closed (duplicate)

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

:-)

#7

thanks, it is a cool decision