Notice (8): Undefined index: Product [APP/Controller/PagesController.php, line 136]
Notice (8): Trying to access array offset on value of type null [APP/Controller/PagesController.php, line 136]
CakePHP: the rapid development php framework: Errors

View file "Pages/png/product.ctp" is missing.

Error: An Internal Error Has Occurred.

Stack Trace

(default) 6 queries took 836 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1SELECT `PaymentType`.`id`, `PaymentType`.`name` FROM `cnpj`.`payment_types` AS `PaymentType` WHERE `PaymentType`.`id` NOT IN (1, 7, 8) AND `PaymentType`.`is_deleted` = '0'33140
2SELECT `Product`.`id`, `Product`.`product_categories_id`, `Product`.`qtd_vendidos`, `Product`.`name`, `Product`.`descricao`, `Product`.`qtd_registros`, `Product`.`qtd_arquivos`, `Product`.`foto_vitrine`, `Product`.`fotos`, `Product`.`hash`, `Product`.`arquivo`, `Product`.`valor`, `Product`.`valor_promocional`, `Product`.`desconto_perc`, `Product`.`validade_prom`, `Product`.`slug`, `Product`.`texto_destaque`, `Product`.`tipo_destaque`, `Product`.`versao`, `Product`.`is_active`, `Product`.`created`, `Product`.`modified`, `ProductCategory`.`id`, `ProductCategory`.`name`, `ProductCategory`.`foto`, `ProductCategory`.`created`, `ProductCategory`.`modified` FROM `cnpj`.`products` AS `Product` LEFT JOIN `cnpj`.`product_categories` AS `ProductCategory` ON (`Product`.`product_categories_id` = `ProductCategory`.`id`) WHERE `Product`.`is_active` = '1' ORDER BY `Product`.`qtd_vendidos` DESC, `Product`.`qtd_registros` DESC LIMIT 888140
3SELECT `Tag`.`id`, `Tag`.`name`, `Tag`.`is_deleted`, `Tag`.`created`, `Tag`.`modified`, `ProductsTag`.`id`, `ProductsTag`.`products_id`, `ProductsTag`.`tags_id`, `ProductsTag`.`created`, `ProductsTag`.`modified` FROM `cnpj`.`tags` AS `Tag` JOIN `cnpj`.`products_tags` AS `ProductsTag` ON (`ProductsTag`.`products_id` IN (35, 36, 33, 26, 34, 23, 19, 18) AND `ProductsTag`.`tags_id` = `Tag`.`id`) 77139
4SELECT `Product`.`id`, `Product`.`product_categories_id`, `Product`.`qtd_vendidos`, `Product`.`name`, `Product`.`descricao`, `Product`.`qtd_registros`, `Product`.`qtd_arquivos`, `Product`.`foto_vitrine`, `Product`.`fotos`, `Product`.`hash`, `Product`.`arquivo`, `Product`.`valor`, `Product`.`valor_promocional`, `Product`.`desconto_perc`, `Product`.`validade_prom`, `Product`.`slug`, `Product`.`texto_destaque`, `Product`.`tipo_destaque`, `Product`.`versao`, `Product`.`is_active`, `Product`.`created`, `Product`.`modified`, `ProductCategory`.`id`, `ProductCategory`.`name`, `ProductCategory`.`foto`, `ProductCategory`.`created`, `ProductCategory`.`modified` FROM `cnpj`.`products` AS `Product` LEFT JOIN `cnpj`.`product_categories` AS `ProductCategory` ON (`Product`.`product_categories_id` = `ProductCategory`.`id`) WHERE `Product`.`id` = 'apple-touch-icon' LIMIT 100139
5SELECT `Product`.`id`, `Product`.`product_categories_id`, `Product`.`qtd_vendidos`, `Product`.`name`, `Product`.`descricao`, `Product`.`qtd_registros`, `Product`.`qtd_arquivos`, `Product`.`foto_vitrine`, `Product`.`fotos`, `Product`.`hash`, `Product`.`arquivo`, `Product`.`valor`, `Product`.`valor_promocional`, `Product`.`desconto_perc`, `Product`.`validade_prom`, `Product`.`slug`, `Product`.`texto_destaque`, `Product`.`tipo_destaque`, `Product`.`versao`, `Product`.`is_active`, `Product`.`created`, `Product`.`modified`, `ProductCategory`.`id`, `ProductCategory`.`name`, `ProductCategory`.`foto`, `ProductCategory`.`created`, `ProductCategory`.`modified` FROM `cnpj`.`products` AS `Product` LEFT JOIN `cnpj`.`product_categories` AS `ProductCategory` ON (`Product`.`product_categories_id` = `ProductCategory`.`id`) WHERE `Product`.`product_categories_id` IS NULL AND `Product`.`id` != 'apple-touch-icon' ORDER BY rand() ASC LIMIT 400139
6SELECT `PaymentType`.`id`, `PaymentType`.`name` FROM `cnpj`.`payment_types` AS `PaymentType` WHERE `PaymentType`.`id` NOT IN (1, 7, 8) AND `PaymentType`.`is_deleted` = '0'33139