'how to fix php spark serve not working and said thrown in C:\xampp\htdocs\ci-news\system\CLI\CLI.php on line 758
this is what cmd said and I don't know how to fix this I saw similar cases like this in the stackoverflow but their suggestion didn't fix my problem I hope you can help me thank you.
1 [internal function]
CodeIgniter\Debug\Exceptions()->shutdownHandler()
Fatal error: Uncaught Error: Call to undefined function CodeIgniter\CLI\mb_strpos() in C:\xampp\htdocs\ci-news\system\CLI\CLI.php:758
Stack trace:
#0 C:\xampp\htdocs\ci-news\system\CLI\CLI.php(161): CodeIgniter\CLI\CLI::parseCommandLine()
#1 C:\xampp\htdocs\ci-news\system\CLI\CLI.php(1000): CodeIgniter\CLI\CLI::init()
#2 C:\xampp\htdocs\ci-news\system\Autoloader\Autoloader.php(264): include_once('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\ci-news\system\Autoloader\Autoloader.php(241): CodeIgniter\Autoloader\Autoloader->includeFile('C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\ci-news\system\Autoloader\Autoloader.php(219): CodeIgniter\Autoloader\Autoloader->loadInNamespace('CodeIgniter\\CLI...')
#5 C:\xampp\htdocs\ci-news\app\Views\errors\cli\error_exception.php(6): CodeIgniter\Autoloader\Autoloader->loadClass('CodeIgniter\\CLI...')
#6 C:\xampp\htdocs\ci-news\system\Debug\Exceptions.php(234): include('C:\\xampp\\htdocs...')
#7 C:\xampp\htdocs\ci-news\system\Debug\Exceptions.php(237): CodeIgniter\Debug\Exceptions->CodeIgniter\Debug\{closure}()
#8 C:\xampp\htdocs\ci-news\system\Debug\Exceptions.php(121): CodeIgniter\Debug\Exceptions->render(Object(CodeIgniter\Exceptions\FrameworkException), 500)
#9 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(CodeIgniter\Exceptions\FrameworkException))
#10 {main}
thrown in C:\xampp\htdocs\ci-news\system\CLI\CLI.php on line 758
C:\xampp\htdocs\ci-news>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|