Warning (512) : Passing query options as paginator settings is no longer supported. Use a custom finder through the `finder` config or pass a SelectQuery instance to paginate(). Extra keys found are: `conditions`. [in /var/www/html/vendor/cakephp/cakephp/src/Core/functions.php, line 315]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 158]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 191]
Error: Cake\View\Helper\PaginatorHelper::setPaginated(): Argument #1 ($paginated) must be of type Cake\Datasource\Paging\PaginatedInterface, null given, called in /var/www/html/templates/Products/products_by_model.php on line 2

Cake\View\Helper\PaginatorHelper::setPaginated(): Argument #1 ($paginated) must be of type Cake\Datasource\Paging\PaginatedInterface, null given, called in /var/www/html/templates/Products/products_by_model.php on line 2 📋

TypeError
Error in: ROOT/vendor/cakephp/cakephp/src/View/Helper/PaginatorHelper.php, line 133
CORE/src/View/Helper/PaginatorHelper.php at line 133 (edit)
     * @param \Cake\Datasource\Paging\PaginatedInterface<array-key, mixed> $paginated Instance to use.
     * @param array<string, mixed> $options Options array.
     * @return void
     */
    public function setPaginated(PaginatedInterface $paginated, array $options = []): void
    {
        $this->paginated = $paginated;
        $this->options($options);
    }

If you want to customize this error message, create templates/Error/error500.ctp