Laravel Error Count() Laravel/datatables 5.2 PHP -v 7.2

Asked

Viewed 98 times

1

The following error with datatables:

inserir a descrição da imagem aqui

Function:

inserir a descrição da imagem aqui

1 answer

1

In PHP 7.2 Count de null went on to issue an Exception, in previous versions it returned 0, the code will have to be refactored to effect this treatment. Probably your error is happening due to Columns position is coming NULL.

A hug!

  • You will probably have to upgrade your version of Standard, as there have been no more updates to 5.2 for a while.

  • I am aware of this Juniornunes, but the project is already in implementation and the upgrade time would be complicated

  • @iMuriloCruz then runs with the PHP version specified in documentation: PHP version between 5.5.9 - 7.1.*

Browser other questions tagged

You are not signed in. Login or sign up in order to post.