webinarium / DataTablesBundle

Symfony bundle for DataTables plugin.
MIT License
16 stars 9 forks source link

Datatable display preg_match() #16

Closed aniskasmi closed 3 years ago

aniskasmi commented 3 years ago

I when i want to display my table i have this error

[2020-12-15T16:52:59.219817+01:00] request.ERROR: Uncaught PHP Exception DataTables\DataTableException: "Warning: preg_match() expects parameter 2 to be string, object given" at /var/www/manager-competence/vendor/webinarium/datatables-bundle/src/DataTables.php line 119 {"exception":"[object] (DataTables\DataTableException(code: 0): Warning: preg_match() expects parameter 2 to be string, object given at /var/www/manager-competence/vendor/webinarium/datatables-bundle/src/DataTables.php:119)"} []

How to fix thx

webinarium commented 3 years ago

Please let me know what versions do you use for PHP, Symfony, and this bundle. Thanks!

webinarium commented 3 years ago

Also, since the preg_match is not used in the DataTablesBundle, the issue may sit inside your handler. If it's possible, please provide the listing of your handler (the one which implements DataTableHandlerInterface).