This extension requires the Microsoft ODBC Driver error

MuratB

Member
Apr 15, 2019
10
0
1
Turkey
cPanel Access Level
Root Administrator
My cron jobs was working properly but now gives 'Unable to connect to the database'. I think the error is caused by kernel update or mssql odbc driver update. But i don't know which one caused the error.
edit:db connection working when used direcly

Code:
ERROR - 2019-08-15 12:35:02 --> Unable to connect to the database
ERROR - 2019-08-15 12:35:02 --> Unable to connect to the database
ERROR - 2019-08-15 12:35:02 --> Query error: This extension requires the Microsoft ODBC Driver for SQL Server. Access the following URL to download the ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 - Invalid query: EXEC somenamehre @CompanyList='xxxxxxx'
ERROR - 2019-08-15 12:35:02 --> Severity: error --> Exception: Call to a member function result() on bool /home/bulutplatform/public_html/application/models/PaymentPlanModel.php 49
ERROR - 2019-08-15 12:37:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:37:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:37:01 --> Query error: This extension requires the Microsoft ODBC Driver for SQL Server. Access the following URL to download the ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 - Invalid query: EXEC some @CompanyList='xxxx'
ERROR - 2019-08-15 12:37:01 --> Severity: error --> Exception: Call to a member function result() on bool /home/bulutplatform/public_html/application/models/PaymentPlanModel.php 49
ERROR - 2019-08-15 12:50:02 --> Unable to connect to the database
ERROR - 2019-08-15 12:52:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:53:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:54:02 --> Unable to connect to the database
ERROR - 2019-08-15 12:55:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:56:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:57:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:58:01 --> Unable to connect to the database
ERROR - 2019-08-15 12:59:02 --> Unable to connect to the database
 
Last edited:

KualoZach

Registered
Jul 28, 2016
1
1
1
127.0.0.1
cPanel Access Level
DataCenter Provider
There's a CloudLinux solution for those that have found this thread:


In case that goes down:

/opt/alt/alt-php-config/install_odbc
cagefsctl --force-update
cagefsctl -M