( ! ) Fatal error: Uncaught TypeError: App\Core\Iterators\ImagemList::first(): Return value must be of type object, null returned in /var/www/html/app/core/traits/TraitIterator.php on line 37 |
( ! ) TypeError: App\Core\Iterators\ImagemList::first(): Return value must be of type object, null returned in /var/www/html/app/core/traits/TraitIterator.php on line 37 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0001 | 638792 | {main}( ) | .../index.php:0 |
2 | 0.0039 | 1308904 | handle( $uri = '/produtos/37613/spa-square-2-40' ) | .../index.php:42 |
3 | 0.0046 | 1355792 | dispatch( ) | .../index.php:42 |
4 | 0.0056 | 1496752 | callActionMethod( $handler = class App\Controllers\ProdutosController { protected $container = class Phalcon\Di\FactoryDefault { protected $services = [...]; protected $sharedInstances = [...]; protected $eventsManager = NULL }; public $breadCrumbs = [0 => [...], 1 => [...]]; protected $space = NULL; public ?array $linhaToRedirect = [48 => 'piscinas-de-fibra', 42 => 'piscina-de-vinil', 30 => 'piscina-de-concreto']; public ?App\Core\Iterators\ProdutoVistoList $produtosVistos = class App\Core\Iterators\ProdutoVistoList { protected int $position = 0; public array $list = [...] }; public $session = class Phalcon\Session\Manager { protected $container = class Phalcon\Di\FactoryDefault { ... }; private $adapter = class Phalcon\Session\Adapter\Stream { ... }; private $name = 'PHPSESSID'; private $options = [...]; private $uniqueId = '' }; public $httpAdapter = class App\Core\Infra\Adapters\Http\HttpAdapterImpl { public bool $debug = FALSE; public App\Core\Infra\Adapters\Http\Enums\HttpRevalidateEnum $revalidateCache = enum App\Core\Infra\Adapters\Http\Enums\HttpRevalidateEnum::NONE(0); public string $cachePrefix = 'http_cache_'; public bool $cache = TRUE; public int $cacheTimeInSeconds = 3600; public string $cacheDir = '/var/www/html/app/config/../cache/'; public int $timeout = 50; public array $headers = [...]; private array $config = [...]; private string $revalidadeFile = '/var/www/html/app/config/../cache/revalidate.json'; private ?App\Core\Infra\Adapters\Http\HttpRequest $lastRequest = class App\Core\Infra\Adapters\Http\HttpRequest { ... }; public GuzzleHttp\Client $client = class GuzzleHttp\Client { ... }; public readonly Phalcon\Config\Config $baseConfig = class Phalcon\Config\Config { ... } }; public $url = class Phalcon\Mvc\Url { protected $container = class Phalcon\Di\FactoryDefault { ... }; protected $baseUri = 'https://www.piscinafiber.com.br/'; protected $basePath = NULL; protected $router = NULL; protected $staticBaseUri = 'https://www.piscinafiber.com.br/' } }, $actionMethod = 'indexAction', $params = ['id' => '37613', 'url' => 'spa-square-2-40', 'tipo' => 'p'] ) | .../index.php:42 |
5 | 0.0056 | 1497512 | App\Controllers\ProdutosController->indexAction( $id = '37613', $url = 'spa-square-2-40', $tipo = 'p' ) | .../index.php:42 |
6 | 0.1679 | 2890424 | App\Controllers\ProdutosController->addProdutoVisto( $produto = class App\Core\Entities\ProdutoSiteEntity { public $validator = class Marcuspmd\AttrTools\Validators\AttrValidator { public array $errors = [...] }; public int $id = 37613; public string $nome = 'SPA SQUARE DEEP BLUE - 2,40X2,40X0,87 MED. EXT. (CASCO) GRANITADA'; public string $descricao = 'SPA SQUARE DEEP BLUE - 2,40X2,40X0,87 MED. EXT. (CASCO)'; public string $siteTitle = ''; public bool $ativo = TRUE; public int $ordem = 0; public ?App\Core\Entities\VideoEntity $video = NULL; public ?App\Core\Entities\SiteEntity $site = class App\Core\Entities\SiteEntity { public $validator = class Marcuspmd\AttrTools\Validators\AttrValidator { ... }; public int $id = 37802; public string $nome = 'Spa Square 2,40'; public string $title = ''; public string $description = ''; public string $keywords = ''; public string $caracteristicas = '' }; public ?App\Core\Entities\LinhaEntity $linha = class App\Core\Entities\LinhaEntity { public $validator = class Marcuspmd\AttrTools\Validators\AttrValidator { ... }; public int $id = 17; public string $nome = ' Spas'; public ?string $title = ' Spas'; public ?string $description = ' Spas'; public ?string $keywords = ' Spas'; public ?App\Core\Entities\TipoLinhaEntity $tipoLinha = NULL; public ?App\Core\Iterators\ProdutoRelacionadoList $produtos = NULL; public ?App\Core\Entities\LinhaEntity $redirect = NULL }; public ?App\Core\Entities\GrupoEntity $grupo = class App\Core\Entities\GrupoEntity { public $validator = class Marcuspmd\AttrTools\Validators\AttrValidator { ... }; public int $id = 46; public string $nome = 'Spa Square'; public ?string $info = NULL; public ?string $description = NULL; public ?string $keywords = NULL; public ?string $type = 'spas'; public ?string $slug = 'spa-square'; public ?App\Core\Entities\LinhaEntity $linha = class App\Core\Entities\LinhaEntity { ... }; public ?App\Core\Entities\ImagemEntity $icon = NULL; public App\Core\Iterators\ImagemList $imagens = class App\Core\Iterators\ImagemList { ... }; public App\Core\Iterators\ModeloPiscinaList $modelos = class App\Core\Iterators\ModeloPiscinaList { ... } }; public ?App\Core\Entities\TipoLinhaEntity $tipoLinha = NULL; public App\Core\Iterators\ImagemList $imagens = class App\Core\Iterators\ImagemList { protected int $position = 0; public array $list = [...] }; public App\Core\Enums\ProdutoTipoEnum $tipo = enum App\Core\Enums\ProdutoTipoEnum::PRODUTO('produto'); public App\Core\Iterators\ProdutoRelacionadoList $relacionados = class App\Core\Iterators\ProdutoRelacionadoList { protected int $position = 0; public array $list = [...] } } ) | .../ProdutosController.php:113 |
7 | 0.1681 | 2894536 | App\Core\Iterators\ImagemList->first( ) | .../ProdutosController.php:42 |