Notice: Undefined variable: array_produtos in /data/www/sites/www.afe.com.br/module/Pesquisa/src/Pesquisa/Controller/PesquisaController.php on line 474

Notice: Undefined variable: array_produtos in /data/www/sites/www.afe.com.br/module/Pesquisa/src/Pesquisa/Controller/PesquisaController.php on line 518

Fatal error: Uncaught TypeError: Argument 1 passed to Zend\Paginator\Adapter\ArrayAdapter::__construct() must be of the type array, null given, called in /data/www/sites/www.afe.com.br/module/Pesquisa/src/Pesquisa/Controller/PesquisaController.php on line 518 and defined in /data/www/sites/www.afe.com.br/vendor/zendframework/zend-paginator/src/Adapter/ArrayAdapter.php:33 Stack trace: #0 /data/www/sites/www.afe.com.br/module/Pesquisa/src/Pesquisa/Controller/PesquisaController.php(518): Zend\Paginator\Adapter\ArrayAdapter->__construct(NULL) #1 /data/www/sites/www.afe.com.br/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Pesquisa\Controller\PesquisaController->buscaAction() #2 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #3 /data/www/sites/www.afe.com.br/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #4 /data/www/sites/www.afe.com.br/vendor/zendframework/zend-eventman in /data/www/sites/www.afe.com.br/vendor/zendframework/zend-paginator/src/Adapter/ArrayAdapter.php on line 33