Halo, kalau kamu merasa tulisan saya ngebantu kamu, kamu bisa ucapkan terima kasih lewat saweria .

Hello, if you find this article helpful, you can express your gratitude through saweria .



Error When Using php spark serve

Error When Using php spark serve

Problems

  1. It can be caused because your CodeIgniter version was too high.

  2. Your PHP version was too high.


How to Fix

  1. Remove the composer.lock file and the vendor directory by running rm composer.lock && rm -rfv vendor/

  2. Use a specific version of CodeIgniter and modify your composer.json file by running composer require codeigniter4/framework:4.3.3

  3. Then, re-install your application packages by running composer install

  4. If still error, try using lower PHP version