Jump to content

Module "produit phare" créé une http ERROR 500


Recommended Posts

Bonjour à tous,

 

bon le titre est plutôt clair,

des que j’active mon module "produit phare" ou encore "bloc nouveau produit" , la page d’accueil devient inaccessible  et une erreur arrive :

 

Quote

Cette page ne fonctionne pas

Impossible de traiter cette demande via "nom du site" à l'heure actuelle.

HTTP ERROR 500

Savez-vous comment la résoudre ? 

 

Merci d'avance

 

 

Link to comment
Share on other sites

(1/1) SmartyCompilerException
Syntax error in template "file:/homepages/25/d801531774/htdocs/clickandbuilds/PrestaShop/sudandsun/themes/classic/templates/catalog/_partials/miniatures/product.tpl" on line 26 "<article class = "product-miniature js-product-miniature" data-id-product = "{$ product.id_product}" data-id-product-attribute = "{$ product.id_product_attribute}" itemscope itemtype = "http://schema.org/Product">" too many shorthand attributes

in smarty_internal_templatecompilerbase.php line 26
at Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorthand attributes', 26, true)
in smarty_internal_compilebase.php line 90
at Smarty_Internal_CompileBase->getAttributes(object(Smarty_Internal_SmartyTemplateCompiler), array('\'product\''))
in smarty_internal_compile_private_print_expression.php line 48
at Smarty_Internal_Compile_Private_Print_Expression->compile(array('\'product\''), object(Smarty_Internal_SmartyTemplateCompiler), array('value' => '$_smarty_tpl->tpl_vars[\'\']->value'), null, null)
in smarty_internal_templatecompilerbase.php line 764
at Smarty_Internal_TemplateCompilerBase->callTagCompiler('private_print_expression', array('\'product\''), array('value' => '$_smarty_tpl->tpl_vars[\'\']->value'))
in smarty_internal_templatecompilerbase.php line 1493
at Smarty_Internal_TemplateCompilerBase->compileTag2('private_print_expression', array('\'product\''), array('value' => '$_smarty_tpl->tpl_vars[\'\']->value'))
in smarty_internal_templatecompilerbase.php line 565
at Smarty_Internal_TemplateCompilerBase->compileTag('private_print_expression', array('\'product\''), array('value' => '$_smarty_tpl->tpl_vars[\'\']->value'))
in smarty_internal_templateparser.php line 2219
at Smarty_Internal_Templateparser->yy_r17()
in smarty_internal_templateparser.php line 3383
at Smarty_Internal_Templateparser->yy_reduce(17)
in smarty_internal_templateparser.php line 3479
at Smarty_Internal_Templateparser->doParse(45, '.')
in smarty_internal_smartytemplatecompiler.php line 128
at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2018 PrestaShop * * AVIS DE LICENCE * * Ce fichier source est soumis à la licence académique gratuite 3.0 (AFL-3.0) * qui est fournie avec ce package dans le fichier LICENSE.txt. * Il est également disponible sur le Web à cette URL: * https://opensource.org/licenses/AFL-3.0 * Si vous n\'avez pas reçu une copie de la licence et que vous ne pouvez pas * l\'obtenir via le world-wide-web, veuillez envoyer un e-mail * à [email protected] afin que nous puissions vous en envoyer une copie immédiatement. * * AVERTISSEMENT * * Ne pas modifier ou ajouter à ce fichier si vous souhaitez mettre à niveau PrestaShop vers une version plus récente * versions à venir. Si vous souhaitez personnaliser PrestaShop pour vos * besoins, veuillez consulter http://www.prestashop.com pour plus d\'informations. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2018 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Propriété de PrestaShop SA *}{block name = \'product_miniature_item\'} <article class = "product-miniature js-product-miniature" data-id-product = "{$ product.id_product}" data-id-product-attribute = "{$ product.id_product_attribute}" itemscope itemtype = "http://schema.org/Product"> <meta itemprop = "image" content = "{$ product.cover.large.url}" /> <meta itemprop = "description" content = "{$ product.manufacturer_name} {$ product.name}" /> <meta itemprop = "sku" content = "{$ product.reference_to_display}" /> <div itemprop = "offers" itemtype = "http://schema.org/Offer" itemscope> <meta itemprop = "url" content = "{ $ product.url} "/> <meta itemprop =" availability "content =" https://schema.org/InStock "/> <meta itemprop =" priceCurrency "content =" {$ currency.iso_code} "/> { si $ product.condition == \'nouveau\'} <meta itemprop = "itemCondition" content = "new" /> {else if $ product.condition == \'used\'} <meta itemprop = "itemCondition" content = "used" /> {else} <meta itemprop = "itemCondition" content = "refurbished" /> {/ if} <meta itemprop = "price" content = "{$ product.price_amount } "/> <div itemprop =" seller "itemtype =" http://schema.org/Organization "itemscope> <meta itemprop =" name "content =" {$ shop.name} "/> </div> < / div> <div itemprop = "marque" itemtype = "http://schema.org/Thing" itemscope> <meta itemprop = contenu "name" = "{$ product.manufacturer_name}" /> </div> <div class = "thumbnail-container"> {block name = \'product_thumbnail\'} {if $ product.cover } <a href="{$product.url}" class="thumbnail product-thumbnail"> <img src = "{$ product.cover.bySize.home_default.url}" alt = "{if! empty ($ product.cover.legend)} {$ product.cover.legend} {else} {$ product.name | troncate: 30 : \'...\'} {/ if} " data-full-size-image-url =" {$ product.cover.large.url} " > </a> {else} <a href =" {$ product .url} "class =" thumbnail product-thumbnail "> <img src = "{$ urls.no_picture_image.bySize.home_default.url}" > </a> {/ if} {/ block} <div class="product-description"> {block name=\'product_name\'} {if $page.page_name == \'index\'} <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:\'...\'}</a></h3> {else} <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:\'...\'}</a></h2> {/if} {/block} {block name=\'product_price_and_shipping\'} {if $product.show_price} <div class="product-price-and-shipping"> {if $product.has_discount} {hook h=\'displayProductPriceBlock\' product=$product type="old_price"} <span class="sr-only">{l s=\'Regular price\' d=\'Shop.Theme.Catalog\'}</span> <span class="regular-price">{$product.regular_price}</span> {if $product.discount_type === \'percentage\'} <span class="discount-percentage discount-product">{$product.discount_percentage}</span> {elseif $product.discount_type === \'amount\'} <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span> {/if} {/if} {hook h=\'displayProductPriceBlock\' product=$product type="before_price"} <span class="sr-only">{l s=\'Price\' d=\'Shop.Theme.Catalog\'}</span> <span itemprop="price" class="price">{$product.price}</span> {hook h=\'displayProductPriceBlock\' product=$product type=\'unit_price\'} {hook h=\'displayProductPriceBlock\' product=$product type=\'weight\'} </div> {/if} {/block} {block name=\'product_reviews\'} {hook h=\'displayProductListReviews\' product=$product} {/block} </div> <!-- @todo: use include file=\'catalog/_partials/product-flags.tpl\'} --> {block name=\'product_flags\'} <ul class="product-flags"> {foreach from=$product.flags item=flag} <li class="product-flag {$flag.type}">{$flag.label}</li> {/foreach} </ul> {/block} <div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down"> {block name=\'quick_view\'} <a class="quick-view" href="#" data-link-action="quickview"> <i class="material-icons search">&#xE8B6;</i> {l s=\'Quick view\' d=\'Shop.Theme.Actions\'} </a> {/block} {block name=\'product_variants\'} {if $product.main_variants} {include file=\'catalog/_partials/variant-links.tpl\' variants=$product.main_variants} {/if} {/block} </div> </div> </article>{/block}', true)
in smarty_internal_templatecompilerbase.php line 481
at Smarty_Internal_TemplateCompilerBase->compileTemplateSource(object(SmartyDevTemplate), false, null)
in smarty_internal_templatecompilerbase.php line 404
at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(SmartyDevTemplate))
in smarty_template_compiled.php line 184
at Smarty_Template_Compiled->compileTemplateSource(object(SmartyDevTemplate))
in smarty_template_compiled.php line 141
at Smarty_Template_Compiled->process(object(SmartyDevTemplate))
in smarty_template_compiled.php line 105
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
in smarty_internal_template.php line 383
at Smarty_Internal_Template->_subTemplateRender('file:catalog/_partials/miniatures/product.tpl', 'ps_featuredproducts|1|3|3|2|1|8', null, 9999, 31536000, array('product' => object(ProductListingLazyArray)), 0, true)
in fa6cc378d2942c8857b89d6bca728048c0caeedd_2.module.psfeaturedproductsviewste.cache.php line 38
at content_5e1cc46ad65304_30449033(object(SmartyDevTemplate))
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
in smarty_internal_runtime_updatecache.php line 38
at Smarty_Internal_Runtime_UpdateCache->updateCache(object(Smarty_Template_Cached), object(SmartyDevTemplate), false)
in smarty_template_cached.php line 143
at Smarty_Template_Cached->render(object(SmartyDevTemplate), false)
in smarty_internal_template.php line 211
at Smarty_Internal_Template->render(false, 0)
in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)
in SmartyDevTemplate.php line 40
at SmartyDevTemplateCore->fetch()
in Module.php line 2447
at ModuleCore->fetch('module:ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl', 'ps_featuredproducts|1|3|3|2|1|8')
in ps_featuredproducts.php line 252
at Ps_FeaturedProducts->renderWidget('displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart)))
in Hook.php line 975
at HookCore::coreRenderWidget(object(Ps_FeaturedProducts), 'displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart)))
in Hook.php line 927
at HookCore::exec('displayHome')
in IndexController.php line 39
at IndexControllerCore->initContent()
in Controller.php line 292
at ControllerCore->run()
in Dispatcher.php line 515
at DispatcherCore->dispatch()
in index.php line 28

voila l'erreur affiché en page d’accueil 

 

Cependant une seconde est également apparue lorsque je veux acceder a une catégorie

 

[PrestaShopDatabaseException]
Table 'db810635245.gbnz_layered_filter_block' doesn't exist


SELECT data FROM gbnz_layered_filter_block WHERE hash="f7aec5891de6c43ad54e2780f5658496" LIMIT 1

at line 769 in file classes/db/Db.php
764.         if ($webservice_call && $errno) {
765.             $dbg = debug_backtrace();
766.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768.             if ($sql) {
769.                 throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770.             }
771. 
772.             throw new PrestaShopDatabaseException($this->getMsgError());
773.         }
774.     }
DbCore->displayError - [line 385 - classes/db/Db.php] - [1 Arguments]
DbCore->query - [line 663 - classes/db/Db.php] - [1 Arguments]
DbCore->getRow - [line 158 - modules/ps_facetedsearch/src/Filters/Block.php] - [1 Arguments]
PrestaShop\Module\FacetedSearch\Filters\Block->getFromCache - [line 166 - modules/ps_facetedsearch/src/Product/SearchProvider.php] - [1 Arguments]
PrestaShop\Module\FacetedSearch\Product\SearchProvider->runQuery - [line 308 - classes/controller/ProductListingFrontController.php] - [2 Arguments]

Si vous avez une solution ? 

 

merci d'avance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...