Warning (2): count(): Parameter must be an array or an object that implements Countable [APP/Model/Table/CartsTable.php, line 48]
Notice (8): Trying to get property 'views' of non-object [APP/Controller/ProductsController.php, line 56]
Warning (2): Creating default object from empty value [APP/Controller/ProductsController.php, line 56]
Warning (512): Unable to emit headers. Headers sent in file=/home/maltask1/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 [CORE/src/Http/ResponseEmitter.php, line 48]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/maltask1/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 148]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/maltask1/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 177]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/maltask1/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 177]
Error: Argument 1 passed to Cake\ORM\Table::save() must implement interface Cake\Datasource\EntityInterface, instance of stdClass given, called in /home/maltask1/public_html/src/Controller/ProductsController.php on line 58

Argument 1 passed to Cake\ORM\Table::save() must implement interface Cake\Datasource\EntityInterface, instance of stdClass given, called in /home/maltask1/public_html/src/Controller/ProductsController.php on line 58 TypeError

Documentation API
Error in: ROOT/vendor/cakephp/cakephp/src/ORM/Table.php, line 1898

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

toggle vendor stack frames