Fatal error: Uncaught ArgumentCountError: Too few arguments to function

后端 未结 4 733
情话喂你
情话喂你 2020-12-09 23:10

I know there was a some questions related to this, but there are in c++ or other languages. I get this error and I\'m not sure what is wrong with my function.

My er

4条回答
  •  猫巷女王i
    2020-12-09 23:44

    I experienced this same error after my hosting company updated our PHP version from 7.0.x to 7.1.x. They assumed that since it was a minor update, it should be compatible with previous versions. They were wrong: here's a list of the incompatibilities from the migration page.

    In this particular case code that would previously throw a warning about the lack of parameters for a function call is now throwing the fatal error in the OP's question.

    The solution is obviously to provide the appropriate parameters as the other answers have indicated.

提交回复
热议问题