Fatal error: Call to a member function to_array() on null in /var/www/html/web/controllers/product.php on line 369