Why the website gives 500 error?

Today has stopped working the website gives 500 error. Hanging in the logs is:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in public_html/manager/includes/extenders/dbapi.mysql.class.inc.php:93 Stack trace: #0 public_html/manager/includes/document.parser.class.inc.php(1509): DBAPI->connect() #1 public_html/index.php(141): DocumentParser->executeParser() #2 {main} thrown in public_html/manager/includes/extenders/dbapi.mysql.class.inc.php on line 93


On line 93 written:
else $this->conn = mysql_connect($host, $uid, $pwd, true);


What he doesn't like?
Thanks in advance
April 3rd 20 at 17:31
2 answers
April 3rd 20 at 17:33
Solution
Hoster updated version of the blaze?
7.3 write error instead of the website, back on the 5.3 - "performed the redirect too many times." - Barbara commented on April 3rd 20 at 17:36
@Barbara,
7.3 write error instead of the website
that is logical, this library was deprecated in 5.5 and 7 it have none at all.

returned to 5.3 - "performed the redirect too many times."
and here is the steps I have to, stupid to put exit('stop'); around stacktrace until then compute the point of a redirect. - Monroe_Kemmer commented on April 3rd 20 at 17:39
@Monroe_Kemmerif I still know how to do... thanks - Barbara commented on April 3rd 20 at 17:42
@Barbara, there is no need, since index.php shoved stop at different points in the code, for example before connecting include, then after connecting - "stupid and watch what was happening"(from). - Monroe_Kemmer commented on April 3rd 20 at 17:45
@Monroe_Kemmer, classic dejected of debug! - Marcus commented on April 3rd 20 at 17:48
@Monroe_Kemmer, the index tried, the site never opened. except that was writing "stop" - Barbara commented on April 3rd 20 at 17:51
@Marcus, what to do, it is the same age with fossilized mammoth kakahi... - Monroe_Kemmer commented on April 3rd 20 at 17:54
@Barbara, it means get down to the level below.
throughout stacktrace
- Marcus commented on April 3rd 20 at 17:57
@Monroe_Kemmer, because I'm pythonist. Backwards compatibility as a principle of development. - Marcus commented on April 3rd 20 at 18:00
@Barbara, there is a stupid option to withdraw at the beginning of something through echo, then all forwarding is the referral header will not work. Perhaps there will be visible errors and GTA V on garage door in the logs. - Monroe_Kemmer commented on April 3rd 20 at 18:03
@Marcus, it is only by the fact that Python as much younger this time, and in the RUB it is not necessary to me about backward compatibility external libraries in Python. Well, until the pile - Situation: support for Python 2.7 will stop in 2020, so you don't enjoy long sobsno left ) - Monroe_Kemmer commented on April 3rd 20 at 18:06
@Monroe_Kemmer, brought, still "many redirects". Please look! This error is never encountered, and the site needs work... https://pg777.ru
Thanks in advance! - Barbara commented on April 3rd 20 at 18:09
@Barbara, https://pg777.ru/index can open the site, maybe a problem with the nginx configuration - Monroe_Kemmer commented on April 3rd 20 at 18:12
@Monroe_Kemmer, okay, we will continue to dig. thank you very much!! - Barbara commented on April 3rd 20 at 18:15
@Monroe_Kemmer, in General, the error was due to the https certificate, so redirected. removed the cert error is gone - Barbara commented on April 3rd 20 at 18:18
@Monroe_Kemmer, Yes this is clear))) But 2.7 Riley the bottom in all respects. External libraries kosyachat - only if rasby call variables as developed the framework. So this is a test version with a changelog-om, to understand where and how to refactor. Well, documentation. Met Thick with a code of 500 lines, and documentation of 2,000 rows. I'm still in the beginning of the freelance career as foolishly took the order without seeing the code which you reducit, the Junes is a disaster. People made all that possible in separate files, and wrote with a depth of 10-20 tests. And it is not updated any more with library 2012-14ะพ, though he wrote in the 17th. - Marcus commented on April 3rd 20 at 18:21
April 3rd 20 at 17:35
can code to handle that throws an error, the code syntax here.

Find more questions by tags MySQLMODXHTML