Warning: mysqli::__construct(): (HY000/2002): Cannot assign requested address in /home/ebrconce/www/liberary/db.php on line 20

Fatal error: Uncaught Error: Call to undefined method mysqli::connect_error() in /home/ebrconce/www/liberary/db.php:23 Stack trace: #0 /home/ebrconce/www/liberary/db.php(31): db->connect() #1 /home/ebrconce/www/liberary/model.php(1171): db->do_query('SELECT Count(id...') #2 /home/ebrconce/www/liberary/model.php(1116): Model->count_product_in_ss_categorie('141') #3 /home/ebrconce/www/modules/menu/index.php(82): Model->list_mega_menu('3') #4 /home/ebrconce/www/modules/menu/index.php(30): menuModule->get_mainmenu('principal', '0') #5 /home/ebrconce/www/liberary/module.php(22): menuModule->display() #6 /home/ebrconce/www/liberary/factory.php(71): Module->execute('principal') #7 /home/ebrconce/www/liberary/framework.php(82): Factory->build_module('menu', 'principal') #8 /home/ebrconce/www/liberary/framework.php(33): Site->get_modules() #9 /home/ebrconce/www/index.php(35): Site->build_site(Object(Site)) #10 {main} thrown in /home/ebrconce/www/liberary/db.php on line 23