**What I’m seeing is:**SQLSTATE[HY000] [2002] No such file or directory
Erro de conexão com banco de dados: SQLSTATE[HY000] [2002] No such file or directory Fatal error : Uncaught Error: Call to a member function query() on null in /home/vol6_8/epizy.com/epiz_24477343/htdocs/models/Professor.php:105 Stack trace: #0 /home/vol6_8/epizy.com/epiz_24477343/htdocs/controllers/homeController.php(13): Professor->totalProf() #1 /home/vol6_8/epizy.com/epiz_24477343/htdocs/core/Core.php(43): homeController->index() #2 /home/vol6_8/epizy.com/epiz_24477343/htdocs/index.php(22): Core->run() #3 {main} thrown in /home/vol6_8/epizy.com/epiz_24477343/htdocs/models/Professor.php on line 105
Thank you Niekon for answering,
I am using MVC, I have a database connection configuration file using PDO and I call this file on my other pages, but where there is a request to the bank, I present an error like the one I posted.
Niekon, thanks again for the return.
Now it looks like it worked, but now it’s showing error 500.
My .htaccess file is:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /http://abmsolucoes.cf/index.php?url=$1 [QSA,L]