Envio imediato
Carrinho de teste
^ GraphQL\Exception\QueryError {#772 #message: "Cannot query field "isActive" on type "ShowcaseFront"." #code: 0 #file: "/var/www/html/front/vendor/gmostafa/php-graphql-client/src/Results.php" #line: 54 #errorDetails: array:2 [ "message" => "Cannot query field "isActive" on type "ShowcaseFront"." "extensions" => array:2 [ "code" => "GRAPHQL_VALIDATION_FAILED" "exception" => array:1 [ "stacktrace" => array:10 [ 0 => "GraphQLError: Cannot query field "isActive" on type "ShowcaseFront"." 1 => " at Object.Field (/app/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js:48:31)" 2 => " at Object.enter (/app/node_modules/graphql/language/visitor.js:323:29)" 3 => " at Object.enter (/app/node_modules/graphql/utilities/TypeInfo.js:370:25)" 4 => " at visit (/app/node_modules/graphql/language/visitor.js:243:26)" 5 => " at validate (/app/node_modules/graphql/validation/validate.js:69:24)" 6 => " at validate (/app/node_modules/apollo-server-core/src/requestPipeline.ts:477:27)" 7 => " at processGraphQLRequest (/app/node_modules/apollo-server-core/src/requestPipeline.ts:267:32)" 8 => " at processTicksAndRejections (node:internal/process/task_queues:95:5)" 9 => " at processHTTPRequest (/app/node_modules/apollo-server-core/src/runHttpQuery.ts:437:24)" ] ] ] ] trace: { /var/www/html/front/vendor/gmostafa/php-graphql-client/src/Results.php:54 { GraphQL\Results->__construct(ResponseInterface $response, $asArray = false) … › $this->reformatResults(true); › throw new QueryError($this->results); › } } /var/www/html/front/vendor/gmostafa/php-graphql-client/src/Client.php:160 { GraphQL\Client->runRawQuery(string $queryString, $resultsAsArray = false, array $variables = []): Results … › // Parse response to extract results › return new Results($response, $resultsAsArray); › } arguments: { $response: GuzzleHttp\Psr7\Response {#770 …} $asArray: true } } /var/www/html/front/classes/Helpers/ApiQL.php:78 { Core\Helpers\ApiQL->getResults(string $gql) … › try { › $data = $this->client->runRawQuery($gql, true); › $data = $data->getData(); arguments: { $queryString: """ \n query {\n productFront ( filter: {productId:2913703,customerGroupId:null,variationComponentIds:null,shouldHidePrice:false} ) {\n id\n name\n slug\n gtin\n mpn\n categoryDefaultId\n hotsiteId\n description\n shortDescription\n relevance\n tags\n isSellInKitOnly\n metaTitle\n metaDescription\n metaKeywords\n isKit\n kitMarkup\n isVirtual\n isPreSale\n createdAt\n releaseDate {\n releaseDate\n now\n }\n images {\n src\n alt\n }\n video\n weight\n depth\n width\n height\n additionalTimeOutOfStock\n balance\n price\n minPriceRange\n maxPriceRange\n hasPriceRange\n priceCompare\n discount\n billetDiscount\n productId\n isSellOutOfStock\n isGift\n reference\n colors {\n id\n name\n slug\n hexadecimal\n image {\n id\n src\n alt\n position\n productId\n colorIds\n variationIds\n }\n }\n payments {\n id\n name\n method\n maxParcels\n parcelsNoInterest\n installments {\n markup\n parcel\n discount\n interest\n total\n parcelPrice\n }\n expireDays\n position\n markup\n installment {\n markup\n parcel\n discount\n interest\n total\n parcelPrice\n }\n }\n brand {\n id\n name\n slug\n image {\n src\n alt\n }\n }\n category {\n id\n name\n slug\n googleTaxonomyId\n }\n categories {\n id\n name\n slug\n googleTaxonomyId\n }\n color {\n id\n name\n slug\n hexadecimal\n image {\n src\n alt\n colorIds\n }\n }\n attribute {\n id\n name\n slug\n position\n attributeId\n attributeName\n }\n attributeSecondary {\n id\n name\n slug\n position\n }\n features {\n id\n name\n slug\n image {\n src\n alt\n }\n values {\n id\n name\n slug\n }\n }\n variations {\n id\n productId\n name\n slug\n gtin\n reference\n isActive\n color {\n id\n name\n slug\n hexadecimal\n image {\n src\n alt\n }\n }\n attribute {\n id\n name\n slug\n attributeId\n attributeName\n position\n }\n attributeSecondary {\n id\n name\n slug\n attributeId\n attributeName\n position\n }\n images {\n src\n alt\n }\n weight\n width\n height\n additionalTimeOutOfStock\n balance\n price\n priceCompare\n discount\n }\n \n components {\n productComponentId\n productComponentGroupId\n quantity\n isDefault\n isOptional\n variations {\n id\n name\n slug\n gtin\n mpn\n createdAt\n categoryDefaultId\n description\n shortDescription\n relevance\n tags\n minQuantity\n maxQuantity\n isSellInKitOnly\n isKit\n kitMarkup\n isVirtual\n weight\n depth\n width\n height\n priceOutOfStock\n isSellOutOfStock\n additionalTimeOutOfStock\n balance\n price\n minPriceRange\n maxPriceRange\n hasPriceRange\n priceCompare\n discount\n billetDiscount\n productId\n releaseDate {\n releaseDate\n now\n }\n images {\n id\n productId\n src\n alt\n colorIds\n variationIds\n position\n }\n color {\n id\n name\n slug\n hexadecimal\n }\n attribute {\n id\n name\n slug\n attributeId\n attributeName\n position\n isActive\n }\n attributeSecondary {\n id\n name\n slug\n attributeId\n attributeName\n position\n isActive\n }\n }\n }\n }\n }\n """ $resultsAsArray: true } } /var/www/html/front/classes/Helpers/ApiQL.php:63 { Core\Helpers\ApiQL->post($query) … › › return $this->getResults($gql); › } arguments: { $gql: """ \n query {\n productFront ( filter: {productId:2913703,customerGroupId:null,variationComponentIds:null,shouldHidePrice:false} ) {\n id\n name\n slug\n gtin\n mpn\n categoryDefaultId\n hotsiteId\n description\n shortDescription\n relevance\n tags\n isSellInKitOnly\n metaTitle\n metaDescription\n metaKeywords\n isKit\n kitMarkup\n isVirtual\n isPreSale\n createdAt\n releaseDate {\n releaseDate\n now\n }\n images {\n src\n alt\n }\n video\n weight\n depth\n width\n height\n additionalTimeOutOfStock\n balance\n price\n minPriceRange\n maxPriceRange\n hasPriceRange\n priceCompare\n discount\n billetDiscount\n productId\n isSellOutOfStock\n isGift\n reference\n colors {\n id\n name\n slug\n hexadecimal\n image {\n id\n src\n alt\n position\n productId\n colorIds\n variationIds\n }\n }\n payments {\n id\n name\n method\n maxParcels\n parcelsNoInterest\n installments {\n markup\n parcel\n discount\n interest\n total\n parcelPrice\n }\n expireDays\n position\n markup\n installment {\n markup\n parcel\n discount\n interest\n total\n parcelPrice\n }\n }\n brand {\n id\n name\n slug\n image {\n src\n alt\n }\n }\n category {\n id\n name\n slug\n googleTaxonomyId\n }\n categories {\n id\n name\n slug\n googleTaxonomyId\n }\n color {\n id\n name\n slug\n hexadecimal\n image {\n src\n alt\n colorIds\n }\n }\n attribute {\n id\n name\n slug\n position\n attributeId\n attributeName\n }\n attributeSecondary {\n id\n name\n slug\n position\n }\n features {\n id\n name\n slug\n image {\n src\n alt\n }\n values {\n id\n name\n slug\n }\n }\n variations {\n id\n productId\n name\n slug\n gtin\n reference\n isActive\n color {\n id\n name\n slug\n hexadecimal\n image {\n src\n alt\n }\n }\n attribute {\n id\n name\n slug\n attributeId\n attributeName\n position\n }\n attributeSecondary {\n id\n name\n slug\n attributeId\n attributeName\n position\n }\n images {\n src\n alt\n }\n weight\n width\n height\n additionalTimeOutOfStock\n balance\n price\n priceCompare\n discount\n }\n \n components {\n productComponentId\n productComponentGroupId\n quantity\n isDefault\n isOptional\n variations {\n id\n name\n slug\n gtin\n mpn\n createdAt\n categoryDefaultId\n description\n shortDescription\n relevance\n tags\n minQuantity\n maxQuantity\n isSellInKitOnly\n isKit\n kitMarkup\n isVirtual\n weight\n depth\n width\n height\n priceOutOfStock\n isSellOutOfStock\n additionalTimeOutOfStock\n balance\n price\n minPriceRange\n maxPriceRange\n hasPriceRange\n priceCompare\n discount\n billetDiscount\n productId\n releaseDate {\n releaseDate\n now\n }\n images {\n id\n productId\n src\n alt\n colorIds\n variationIds\n position\n }\n color {\n id\n name\n slug\n hexadecimal\n }\n attribute {\n id\n name\n slug\n attributeId\n attributeName\n position\n isActive\n }\n attributeSecondary {\n id\n name\n slug\n attributeId\n attributeName\n position\n isActive\n }\n }\n }\n }\n }\n """ } } /var/www/html/front/classes/Services/ShowcaseService.php:49 { Core\Services\ShowcaseService::getByGrid($productId, $colorSlug = null, $variationId = null, $variationComponentIds = null, $colorId = null) … › › $data = (new ApiQL)->cache()->post(ShowcaseServiceQL::getByIdQL( › productId: $productId, arguments: { $query: """ \n query {\n productFront ( filter: {productId:2913703,customerGroupId:null,variationComponentIds:null,shouldHidePrice:false} ) {\n id\n name\n slug\n gtin\n mpn\n categoryDefaultId\n hotsiteId\n description\n shortDescription\n relevance\n tags\n isSellInKitOnly\n metaTitle\n metaDescription\n metaKeywords\n isKit\n kitMarkup\n isVirtual\n isPreSale\n createdAt\n releaseDate {\n releaseDate\n now\n }\n images {\n src\n alt\n }\n video\n weight\n depth\n width\n height\n additionalTimeOutOfStock\n balance\n price\n minPriceRange\n maxPriceRange\n hasPriceRange\n priceCompare\n discount\n billetDiscount\n productId\n isSellOutOfStock\n isGift\n reference\n colors {\n id\n name\n slug\n hexadecimal\n image {\n id\n src\n alt\n position\n productId\n colorIds\n variationIds\n }\n }\n payments {\n id\n name\n method\n maxParcels\n parcelsNoInterest\n installments {\n markup\n parcel\n discount\n interest\n total\n parcelPrice\n }\n expireDays\n position\n markup\n installment {\n markup\n parcel\n discount\n interest\n total\n parcelPrice\n }\n }\n brand {\n id\n name\n slug\n image {\n src\n alt\n }\n }\n category {\n id\n name\n slug\n googleTaxonomyId\n }\n categories {\n id\n name\n slug\n googleTaxonomyId\n }\n color {\n id\n name\n slug\n hexadecimal\n image {\n src\n alt\n colorIds\n }\n }\n attribute {\n id\n name\n slug\n position\n attributeId\n attributeName\n }\n attributeSecondary {\n id\n name\n slug\n position\n }\n features {\n id\n name\n slug\n image {\n src\n alt\n }\n values {\n id\n name\n slug\n }\n }\n variations {\n id\n productId\n name\n slug\n gtin\n reference\n isActive\n color {\n id\n name\n slug\n hexadecimal\n image {\n src\n alt\n }\n }\n attribute {\n id\n name\n slug\n attributeId\n attributeName\n position\n }\n attributeSecondary {\n id\n name\n slug\n attributeId\n attributeName\n position\n }\n images {\n src\n alt\n }\n weight\n width\n height\n additionalTimeOutOfStock\n balance\n price\n priceCompare\n discount\n }\n \n components {\n productComponentId\n productComponentGroupId\n quantity\n isDefault\n isOptional\n variations {\n id\n name\n slug\n gtin\n mpn\n createdAt\n categoryDefaultId\n description\n shortDescription\n relevance\n tags\n minQuantity\n maxQuantity\n isSellInKitOnly\n isKit\n kitMarkup\n isVirtual\n weight\n depth\n width\n height\n priceOutOfStock\n isSellOutOfStock\n additionalTimeOutOfStock\n balance\n price\n minPriceRange\n maxPriceRange\n hasPriceRange\n priceCompare\n discount\n billetDiscount\n productId\n releaseDate {\n releaseDate\n now\n }\n images {\n id\n productId\n src\n alt\n colorIds\n variationIds\n position\n }\n color {\n id\n name\n slug\n hexadecimal\n }\n attribute {\n id\n name\n slug\n attributeId\n attributeName\n position\n isActive\n }\n attributeSecondary {\n id\n name\n slug\n attributeId\n attributeName\n position\n isActive\n }\n }\n }\n }\n }\n """ } } /var/www/html/front/classes/Twig/TwigFunctions.php:92 { Core\Twig\TwigFunctions::getProductFeature($productId, $colorId = null, $variationId = null) … › { › return ShowcaseService::getByGrid($productId, $colorId, $variationId) ?? []; › } arguments: { $productId: "2913703" $colorSlug: null $variationId: null } } /var/www/html/front/cache/47/6e/6ec6c364ee14992fae5ae0b057339220.php:45 { __TwigTemplate_b2d75a43308f9b7dc917fee3576a6dac->doDisplay(array $context, array $blocks = []): iterable … › yield " "; › $context["p"] = $this->extensions['Core\Twig\TwigFunctions']->getProductFeature(CoreExtension::getAttribute($this->env, $this->source, ($context["component"] ?? null), "grid_id", [], "any", false, false, false, 2)); › } arguments: { $productId: "2913703-266001" } } /var/www/html/front/vendor/twig/twig/src/Template.php:402 { Twig\Template->yield(array $context, array $blocks = []): iterable … › try { › yield from $this->doDisplay($context, $blocks); › } catch (Error $e) { arguments: { $context: array:23 [ …23] $blocks: [] } } /var/www/html/front/cache/47/34/34cb04c2304846b213303b9b468f4593.php:128 { __TwigTemplate_5490630a242fd19fb5eb816fbbec8622->doDisplay(array $context, array $blocks = []): iterable … › yield " "; › yield from $this->load("customize-product-modal.twig", 34)->unwrap()->yield(CoreExtension::merge($context, ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["component"], "product_component_id", [], "any", false, false, false, 34)])); › // line 35 arguments: { $context: array:36 [ …36] } } /var/www/html/front/vendor/twig/twig/src/Template.php:402 { Twig\Template->yield(array $context, array $blocks = []): iterable … › try { › yield from $this->doDisplay($context, $blocks); › } catch (Error $e) { arguments: { $context: array:23 [ …23] $blocks: [] } } /var/www/html/front/vendor/twig/twig/src/Template.php:358 { Twig\Template->display(array $context, array $blocks = []): void … › { › foreach ($this->yield($context, $blocks) as $data) { › echo $data; arguments: { $context: array:22 [ …22] $blocks: [] } } /var/www/html/front/cache/47/df/df6a99736bbe582a609465ca28b8fc1b.php:85 { __TwigTemplate_4ce95c19f3450b9c3e2628063276d715->doDisplay(array $context, array $blocks = []): iterable … › yield "\t\t"; › $this->loadTemplate("@sections/customize-product.twig")->display(array_merge($context, ["section" => ["settings" => ["order" => "group", "title" => "Produtos do kit", "subtitle" => null, "variation_select_type" => "select", "buy_individual_products" => false, "show_price_individual_products" => false, "text_btn_kit" => "Produtos do kit", "customize_position_customize" => "after_description"], "blocks" => []]])); // line 22 › yield "\t"; arguments: { $context: array:24 [ …24] } } /var/www/html/front/vendor/twig/twig/src/Template.php:402 { Twig\Template->yield(array $context, array $blocks = []): iterable … › try { › yield from $this->doDisplay($context, $blocks); › } catch (Error $e) { arguments: { $context: array:23 [ …23] $blocks: [] } } /var/www/html/front/vendor/twig/twig/src/Template.php:358 { Twig\Template->display(array $context, array $blocks = []): void … › { › foreach ($this->yield($context, $blocks) as $data) { › echo $data; arguments: { $context: array:22 [ …22] $blocks: [] } } /var/www/html/front/vendor/twig/twig/src/Template.php:373 { Twig\Template->render(array $context): string … › try { › $this->display($context); › } catch (\Throwable $e) { arguments: { $context: array:20 [ …20] } } /var/www/html/front/vendor/twig/twig/src/TemplateWrapper.php:51 { Twig\TemplateWrapper->render(array $context = []): string … › { › return $this->template->render($context); › } arguments: { $context: array:20 [ …20] } } /var/www/html/front/classes/Controllers/BaseController.php:75 { Core\Controllers\BaseController->output(string $html = null) … › assign([ › 'content_for_layout' => $html->render(assign()), › ]); arguments: { $context: array:20 [ …20] } } /var/www/html/front/classes/Controllers/BaseController.php:297 { Core\Controllers\BaseController->write(ResponseInterface $response) … › { › $response->getBody()->write($this->output()); › return $response; } /var/www/html/front/classes/Controllers/ProductController.php:88 { Core\Controllers\ProductController->index(ServerRequestInterface $request, ResponseInterface $response, $product = null, string $colorSlug = null): ResponseInterface … › › return $this->write($response); › } arguments: { $response: Slim\Psr7\Response {#445 …} } } /var/www/html/front/classes/Controllers/SlugController.php:53 { Core\Controllers\SlugController->index(ServerRequestInterface $request, ResponseInterface $response) … › $colorSlug = $slug['data']['color']['slug'] ?? null; › return (new ProductController($this->container))->index($request, $response, $slug['data'], $colorSlug); › case 'blog-post': arguments: { $request: Slim\Psr7\Request {#453 …} $response: Slim\Psr7\Response {#445 …} $product: Core\Adapters\ShowcaseApiQLAdapter {#467 …} $colorSlug: null } } /var/www/html/front/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php:38 { Slim\Handlers\Strategies\RequestResponse->__invoke(callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments): ResponseInterface … › › return $callable($request, $response, $routeArguments); › } arguments: { $request: Slim\Psr7\Request {#453 …} $response: Slim\Psr7\Response {#445 …} ...: { array:1 [ …1] } } } /var/www/html/front/vendor/slim/slim/Slim/Routing/Route.php:363 { Slim\Routing\Route->handle(ServerRequestInterface $request): ResponseInterface … › $response = $this->responseFactory->createResponse(); › return $strategy($callable, $request, $response, $this->arguments); › } arguments: { $callable: array:2 [ …2] $request: Slim\Psr7\Request {#448 …} $response: Slim\Psr7\Response {#445 …} $routeArguments: array:1 [ …1] } } /var/www/html/front/classes/Middlewares/AppMiddleware.php:205 { Core\Middlewares\AppMiddleware->out(ServerRequestInterface $request, RequestHandlerInterface $handler) … › › $response = $handler->handle($request); › arguments: { $request: Slim\Psr7\Request {#412 …} } } /var/www/html/front/classes/Middlewares/AppMiddleware.php:53 { Core\Middlewares\AppMiddleware->process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface … › › return $this->out($request, $handler); › } arguments: { $request: Slim\Psr7\Request {#412 …} $handler: Slim\Routing\Route {#372 …} } } /var/www/html/front/vendor/slim/slim/Slim/MiddlewareDispatcher.php:177 {
$this->reformatResults(true);
throw new QueryError($this->results);
}
// Parse response to extract results
return new Results($response, $resultsAsArray);
try {
$data = $this->client->runRawQuery($gql, true);
$data = $data->getData();
return $this->getResults($gql);
$data = (new ApiQL)->cache()->post(ShowcaseServiceQL::getByIdQL(
productId: $productId,
{
return ShowcaseService::getByGrid($productId, $colorId, $variationId) ?? [];
yield " ";
$context["p"] = $this->extensions['Core\Twig\TwigFunctions']->getProductFeature(CoreExtension::getAttribute($this->env, $this->source, ($context["component"] ?? null), "grid_id", [], "any", false, false, false, 2));
yield from $this->doDisplay($context, $blocks);
} catch (Error $e) {
yield from $this->load("customize-product-modal.twig", 34)->unwrap()->yield(CoreExtension::merge($context, ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["component"], "product_component_id", [], "any", false, false, false, 34)]));
// line 35
foreach ($this->yield($context, $blocks) as $data) {
echo $data;
yield "\t\t";
$this->loadTemplate("@sections/customize-product.twig")->display(array_merge($context, ["section" => ["settings" => ["order" => "group", "title" => "Produtos do kit", "subtitle" => null, "variation_select_type" => "select", "buy_individual_products" => false, "show_price_individual_products" => false, "text_btn_kit" => "Produtos do kit", "customize_position_customize" => "after_description"], "blocks" => []]])); // line 22
yield "\t";
$this->display($context);
} catch (\Throwable $e) {
return $this->template->render($context);
assign([
'content_for_layout' => $html->render(assign()),
]);
$response->getBody()->write($this->output());
return $response;
return $this->write($response);
$colorSlug = $slug['data']['color']['slug'] ?? null;
return (new ProductController($this->container))->index($request, $response, $slug['data'], $colorSlug);
case 'blog-post':
return $callable($request, $response, $routeArguments);
$response = $this->responseFactory->createResponse();
return $strategy($callable, $request, $response, $this->arguments);
$response = $handler->handle($request);
return $this->out($request, $handler);