Page 1 of 1
Call to undefined function sqlsrv_configure()
Posted: Mon Oct 03, 2022 5:25 pm
by Genius_Boy
hello
at first run, my project redirect to /error and show below page :
ERROR
C:\xampp\htdocs\phpm\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\SQLSrv\SQLSrvConnection.php(52): Call to undefined function sqlsrv_configure()
Re: auto direct to error folder in first run after generation
Posted: Mon Oct 03, 2022 6:04 pm
by mobhar
Make sure your web server requirement has been matched with the System Requirement.
Re: auto direct to error folder in first run after generation
Posted: Sat Oct 15, 2022 12:26 am
by Genius_Boy
any things is OK
Is there a need for a special setting in the xampp program?
Re: auto direct to error folder in first run after generation
Posted: Sat Oct 15, 2022 12:28 am
by mobhar
If you are using MS SQL Server Database, then make sure you have already fulfilled the system requirement via that link above.
Re: auto direct to error folder in first run after generation
Posted: Sat Oct 15, 2022 10:18 am
by arbei
You probbaly have selected the wrong DLL (SQL server driver for PHP) for your PHP version. If you selected "nts" (non thread-safe) version (e.g. extension=sqlsrv_81_nts_x64
), you may try the "ts" version instead (e.g. extension=sqlsrv_81_ts_x64
).
Re: auto direct to error folder in first run after generation
Posted: Sat Oct 22, 2022 9:12 pm
by Genius_Boy
I install Microsoft Drivers for PHP for SQL Server and my error change to:
Fatal error: Uncaught Error: Call to undefined method PHPMaker2021\project1\Log::debug() in C:\xampp\htdocs\src\phpfn.php:4134 Stack trace: #0 C:\xampp\htdocs\src\HttpErrorHandler.php(23): PHPMaker2021\project1\Log('Slim Applicatio...') #1 C:\xampp\htdocs\vendor\slim\slim\Slim\Handlers\ErrorHandler.php(319): PHPMaker2021\project1\HttpErrorHandler->logError('Slim Applicatio...') #2 C:\xampp\htdocs\vendor\slim\slim\Slim\Handlers\ErrorHandler.php(175): Slim\Handlers\ErrorHandler->writeToErrorLog() #3 C:\xampp\htdocs\vendor\slim\slim\Slim\Middleware\ErrorMiddleware.php(127): Slim\Handlers\ErrorHandler->__invoke(Object(Slim\Http\ServerRequest), Object(Error), true, true, true) #4 C:\xampp\htdocs\vendor\slim\slim\Slim\Middleware\ErrorMiddleware.php(109): Slim\Middleware\ErrorMiddleware->handleException(Object(Slim\Http\ServerRequest), Object(Error)) #5 C:\xampp\htdocs\vendor\slim\slim\Slim\MiddlewareDispatcher.php(147): Slim\Middleware\ErrorMiddleware->process(Object(Slim\Http\ServerRequest), Object(class@anonymous)) #6 C:\xamp in C:\xampp\htdocs\src\phpfn.php on line 4134
Re: Call to undefined function sqlsrv_configure()
Posted: Sun Oct 23, 2022 9:38 am
by arbei
The Log() method is always defined. You better delete all files and generate all files again.