Deprecated (16384) : Since 5.0.0: Calling `findAll` finder with options array is deprecated. Use named arguments instead. /var/www/vendor/miljaar-web-development/cakephp/src/ORM/Table.php, line: 2654 You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `vendor/miljaar-web-development/cakephp/src/ORM/Table.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. [in /var/www/vendor/miljaar-web-development/cakephp/src/Core/functions.php, line 377]
Deprecated (16384) : Since 5.0.0: Calling `findList` finder with options array is deprecated. Use named arguments instead. /var/www/vendor/miljaar-web-development/cakephp/src/ORM/Table.php, line: 2654 You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `vendor/miljaar-web-development/cakephp/src/ORM/Table.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. [in /var/www/vendor/miljaar-web-development/cakephp/src/Core/functions.php, line 377]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/vendor/miljaar-web-development/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/vendor/miljaar-web-development/cakephp/src/Http/ResponseEmitter.php, line 65]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/vendor/miljaar-web-development/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/vendor/miljaar-web-development/cakephp/src/Http/ResponseEmitter.php, line 158]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/vendor/miljaar-web-development/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/vendor/miljaar-web-development/cakephp/src/Http/ResponseEmitter.php, line 191]
Error: Fatal Error

Fatal Error 📋

Cake\Error\FatalErrorException

Error Fatal Error: Type of App\Controller\ProductsController::$paginate must be array (as in class Cake\Controller\Controller)

File /var/www/src/Controller/ProductsController.php

Line 13

APP/Controller/ProductsController.php at line 13 (edit)
use Cake\Database\Expression\QueryExpression;
use Cake\ORM\Query\SelectQuery;
use Cake\Routing\Router;
class ProductsController extends AppController
{
    public $paginate = [
        'limit' => 40,
        'maxLimit' => 1000,

If you want to customize this error message, create templates/Error/fatal_error.php