SyntaxError: Unexpected token

As result of uploading a media file, the error shown: SyntaxError: Unexpected token

While listing media files, the error shown:

DataTables warning: table id=libraryItems - Invalid JSON response. For more information about this error, please see 1. Warning: Invalid JSON response.

These are old issues. But I find no solution for them.

I am using:

  • Cloud Server Centos 7

  • PHP 7.4.29

  • Xibo 2.3