Home > Software design >  Failed to run php spark serve, can anyone solve the problem?
Failed to run php spark serve, can anyone solve the problem?

Time:07-06

The error I receive when starting spark is

Constant FILTER_SANITIZE_STRING is deprecated

can anyone solve the problem?

enter image description here

CodePudding user response:

You're using a PHP version that is too new for the codeigniter version you installed.

If you're using PHP 8.1 you need at least codeigniter 4.1.7

Solutions:

  • Option1: Downgrade PHP
  • Option2: Upgrade Codeigniter

Reference: https://codeigniter.com/user_guide/changelogs/v4.1.7.html

  • Related