Use of undefined constant JSON_INVALID_UTF8_SUBSTITUTE - assumed 'JSON_INVALID_UTF8_SUBSTITUTE'

后端 未结 2 1784
忘了有多久
忘了有多久 2021-01-11 12:41

I recently cloned a laravel project and after running composer install, I am getting this error

In LogManager.php line 416:

Use of undefined constant JSON_I         


        
2条回答
  •  时光取名叫无心
    2021-01-11 13:47

    Possibly you use higher version of php CLI you use to run composer install on command line, than php version on Webserver configuration (this occasionally happen).

    You just need to set the webserver configuration to use the same php CLI version you use on command line.

提交回复
热议问题