• Regards,

    I`m on a warpath with my database connection. This error Error establishing a database connection seems to be showing up almost all my pages (especially when I try to login). The homepage seems to be unaffected and working just fine. I have repaired all my databases via PhP MyAdmin – no change.

    Thanks for your help!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I see these erors:

    
    Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /home/flyyadley/public_html/wp-includes/wp-db.php on line 3182
    
    Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /home/flyyadley/public_html/wp-includes/wp-db.php on line 3182
    
    Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /home/flyyadley/public_html/wp-includes/wp-db.php on line 3182
    
    Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /home/flyyadley/public_html/wp-includes/wp-db.php on line 3182
    
    Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /home/flyyadley/public_html/wp-includes/wp-db.php on line 3182
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/flyyadley/public_html/wp-includes/wp-db.php:3182) in /home/flyyadley/public_html/wp-includes/functions.php on line 3782
    

    Check with your host to see if they’ve updated PHP or done other system updates.

    Thread Starter yadley

    (@yadley)

    Wow, that was fast. Thank you Steven. Yes, indeed I can confirm that there was a recent upgrade to PHP 7.1. In this case what should I do? Should I downgrade back to perhaps PHP 5.6 or there`s a way to make the affected DB work with 7.1?

    It likely isn’t PHP 7.1 that’s the issue. Check to see if they’ve updated MySQL or MariaDB to a more recent version. Also, your web host should be able to look into issues like this for you as it likely isn’t due to PHP 7.1. If you can have them downgrade to confirm though, that would be ideal.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error Establishing A Database Connection’ is closed to new replies.