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()
Make sure your web server requirement has been matched with the System Requirement.
any things is OK
Is there a need for a special setting in the xampp program?
If you are using MS SQL Server Database, then make sure you have already fulfilled the system requirement via that link above.
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).
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
The Log() method is always defined. You better delete all files and generate all files again.