Jump to content

message erreur après ajout 1er produit sur page produit


kate66
 Share

Recommended Posts

Bonjour,

 

j'ai prestashop 1.6 avec theme jms termes j'ai ajouté un produit et voici le message d'erreur sur la page :

Notice: Undefined index: scenes in /homepages/4/d656343442/htdocs/cache/smarty/compile/9b/3a/58/9b3a5817bf46224283fe08bbe9c10eba2d2b6cb3.file.breadcrumb.tpl.php on line 35

Notice: Trying to get property of non-object in /homepages/4/d656343442/htdocs/cache/smarty/compile/9b/3a/58/9b3a5817bf46224283fe08bbe9c10eba2d2b6cb3.file.breadcrumb.tpl.php on line 35

LA LIGNE 35 :

<?php if ($_smarty_tpl->tpl_vars['scenes']->value||$_smarty_tpl->tpl_vars['category']->value->description||$_smarty_tpl->tpl_vars['category']->value->id_image) {?>


ligne 1 à 34

<?php /* Smarty version Smarty-3.1.19, created on 2016-12-21 14:48:06
         compiled from "/homepages/4/d656343442/htdocs/themes/jms_hermes/breadcrumb.tpl" */ ?>
<?php /*%%SmartyHeaderCode:136964817585a8816ba4942-99288878%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' =>
  array (
    '9b3a5817bf46224283fe08bbe9c10eba2d2b6cb3' =>
    array (
      0 => '/homepages/4/d656343442/htdocs/themes/jms_hermes/breadcrumb.tpl',
      1 => 1479941781,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '136964817585a8816ba4942-99288878',
  'function' =>
  array (
  ),
  'variables' =>
  array (
    'category' => 0,
    'scenes' => 0,
    'link' => 0,
    'description_short' => 0,
    'base_dir' => 0,
    'path' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_585a8816bf3a58_23788107',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_585a8816bf3a58_23788107')) {function content_585a8816bf3a58_23788107($_smarty_tpl) {?>

<?php if (isset($_smarty_tpl->tpl_vars['category']->value)) {?>
    <?php if ($_smarty_tpl->tpl_vars['category']->value->id&&$_smarty_tpl->tpl_vars['category']->value->active) {?>  



Merci pour votre aide.

Share this post


Link to post
Share on other sites

Bonjour,

Pouvez-vous me montrer le contenu de breadcrump.tpl se trouvant dans le dossier du theme svp ?

A priori une variable $scenes est utilisée alors qu'elle n'est pas déclarée.

 

La modification sera surement de remplacer : {if $scene} par {if isset($scenes)}

 

 

Bon courage

Edited by Christophe Boix (see edit history)

Share this post


Link to post
Share on other sites

voici le contenu de la page merci pour votre aide :

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{if isset($category)}
    {if $category->id AND $category->active}                        
        {if $scenes || $category->description || $category->id_image}
        <div class="content_scene_cat block" {if $category->id_image}style="background-image:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')});background-repeat:no-repeat;background-size:cover;"{/if}>
            <div class="cat-info">
                <div class="cat-info-inner">
                    <div class="meta_title">{$category->meta_title}</div>
                    {if $category->description}
                       <div class="cat_desc rte">
                           {if Tools::strlen($category->description) > 350}
                             <div id="category_description_short">{$description_short}</div>
                             <div id="category_description_full" class="unvisible">{$category->description}</div>
                             <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a>
                    {else}
                        <div>{$category->description}</div>
                    {/if}
                       </div>
                    {/if}
                </div>    
            </div>                        
        </div>
        {/if}        
    {elseif $category->id}
        <div class="alert alert-warning"><button data-dismiss="alert" type="button" class="close">X</button>{l s='This category is currently unavailable.'}</div>
    {/if}
{/if}
<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}
<div class="container">
    <nav class="breadcrumbs">
        <div class="breadcrumbs-content">
            <a href="{$base_dir}" title="{l s='Return to Home'}"><i class="fa fa-home"></i>   {l s='Home'}</a>
            {if isset($path) AND $path}
                <span {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}>-</span>
                {if !$path|strpos:'span'}
                    {$path}
                {else}
                    {$path}
                {/if}
            {/if}
        </div>
    </nav>
</div>
<!-- /Breadcrumb -->

Share this post


Link to post
Share on other sites

Enlevez simplement cela le $scenes car il n'est pas utilisé. Mettez simplement :

{if $category->description || $category->id_image}

au lieu de

 {if $scenes || $category->description || $category->id_image}

Sinon voici plusieurs modifications si cela ne va toujours pas :

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{if isset($category)}
    {if isset($category->id) AND $category->active==1}                        
        {if $category->description!="" || $category->id_image!=""}
        <div class="content_scene_cat block" {if $category->id_image!=""}style="background-image:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')});background-repeat:no-repeat;background-size:cover;"{/if}>
            <div class="cat-info">
                <div class="cat-info-inner">
                    <div class="meta_title">{$category->meta_title}</div>
                    {if $category->description}
                       <div class="cat_desc rte">
                           {if Tools::strlen($category->description) > 350}
                             <div id="category_description_short">{$description_short}</div>
                             <div id="category_description_full" class="unvisible">{$category->description}</div>
                             <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a>
                    {else}
                        <div>{$category->description}</div>
                    {/if}
                       </div>
                    {/if}
                </div>    
            </div>                        
        </div>
        {/if}        
    {elseif $category->id}
        <div class="alert alert-warning"><button data-dismiss="alert" type="button" class="close">X</button>{l s='This category is currently unavailable.'}</div>
    {/if}
{/if}
<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}
<div class="container">
    <nav class="breadcrumbs">
        <div class="breadcrumbs-content">
            <a href="{$base_dir}" title="{l s='Return to Home'}"><i class="fa fa-home"></i>   {l s='Home'}</a>
            {if isset($path) AND $path}
                <span {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}>-</span>
                {if !$path|strpos:'span'}
                    {$path}
                {else}
                    {$path}
                {/if}
            {/if}
        </div>
    </nav>
</div>
<!-- /Breadcrumb -->
{if $scenes || $category->description || $category->id_image}

Share this post


Link to post
Share on other sites

merci cela a fonctionner j'ai modifié {if $category->description || $category->id_image} est cela a fonctionné merci encore j'ai un autre soucis avec ce théme voila il y'a 3 theme pour la page d'accueil différent j'ai choisi le 3eme mais même en modifiant la page homepage3.xml rien n'a changé sur la page d'accueil je ne comprend pas pourquoi ? Voila la page :

<?xml version="1.0" encoding="UTF-8"?>
<entity_profile>
<profile title="Header 3" profile_type="header" class_suffix="wp-header header-3">
<row title="Header Bar" class="header-bar" fullwidth="0">
<position title="Information" class_suffix="" col_lg="6" col_sm="6" col_md="6" col_xs="6">
<block title="Information" block_type="custom_html" module_name="" hook_name="top" show_title="0">
				<htmlData><![CDATA[<p>Bienvenue sur notre boutique de chaussures chaussures BOB.Vous avez besoin de nous contacter ?</p>
<p><strong>TEL : 04 68 34 24 76</strong></p>]]></htmlData>
			</block>
</position>
<position title="Header Right" class_suffix="header-right-box pull-right" col_lg="6" col_sm="6" col_md="6" col_xs="6">
<block title="Currencies" block_type="module" module_name="blockcurrencies" hook_name="top" show_title="0" />
<block title="Languages" block_type="module" module_name="blocklanguages" hook_name="top" show_title="0" />
<block title="Userinfo" block_type="module" module_name="blockuserinfo" hook_name="top" show_title="0" />
</position>
</row>
<row title="Navbar " class="navbar" fullwidth="0">
<position title="Search" class_suffix="search-box" col_lg="5" col_sm="5" col_md="5" col_xs="4">
<block title="Search" block_type="module" module_name="jmsajaxsearch" hook_name="top" show_title="0" />
</position>
<position title="Logo" class_suffix="navbar-logo" col_lg="2" col_sm="3" col_md="2" col_xs="4">
<block title="Logo" block_type="custom_html" module_name="" hook_name="top" show_title="0">
				<htmlData><![CDATA[<p><a title="Logo" href="index.php"><img class="img-responsive" src="themes/jms_hermes/img/logo.png" alt="Logo" /></a></p>]]></htmlData>
			</block>
</position>
<position title="Cart" class_suffix="cart-box" col_lg="5" col_sm="4" col_md="5" col_xs="4">
<block title="Cart" block_type="module" module_name="blockcart" hook_name="top" show_title="0" />
</position>
</row>
<row title="Menu" class="menu_navbar" fullwidth="0">
<position title="MainMenu Position" class_suffix="topnav" col_lg="12" col_sm="12" col_md="12" col_xs="12">
<block title="Mainmenu Block" block_type="module" module_name="jmsdropmegamenu" hook_name="top" show_title="0" />
</position>
</row>
</profile>
<profile title="Home 3" profile_type="homebody" class_suffix="wp-home home-3">
<row title="Slideshow" class="slideshow_section" fullwidth="0">
<position title="Vertical megamenu" class_suffix="" col_lg="3" col_sm="12" col_md="3" col_xs="12">
<block title="Verticalmegamenu" block_type="module" module_name="jmsverticalmegamenu" hook_name="top" show_title="0" />
</position>
<position title="Slideshow" class_suffix="" col_lg="9" col_sm="12" col_md="9" col_xs="12">
<block title="Slideshow" block_type="module" module_name="jmssliderlayer" hook_name="top" show_title="0" />
</position>
</row>
<row title="Services" class="services-section" fullwidth="0">
<position title="Services" class_suffix="" col_lg="12" col_sm="12" col_md="12" col_xs="12">
<block title="Services" block_type="custom_html" module_name="" hook_name="top" show_title="0">
				<htmlData><![CDATA[<div class="container">
<div class="row">
<div class="col-lg-4 col-sm-12 col-md-4 services-box">
<div class="ship-box"><em class="fa fa-truck"></em>
<h4 class="title"><a title="Free shipping" href="#">Free shipping</a></h4>
<p>Free shipping for all order over $69.00</p>
</div>
</div>
<div class="col-lg-4 col-sm-12 col-md-4 services-box">
<div class="return-box"><em class="fa fa-recycle"></em>
<h4 class="title"><a title="return exchage" href="#">return exchange</a></h4>
<p>30 days user trial return</p>
</div>
</div>
<div class="col-lg-4 col-sm-12 col-md-4 services-box">
<div class="ship-box"><em class="fa fa-life-ring"></em>
<h4 class="title"><a title="Quality support" href="#">Quality support</a></h4>
<p>Alway feedback customer 24/7</p>
</div>
</div>
</div>
</div>]]></htmlData>
			</block>
</position>
</row>
<row title="Content center" class="" fullwidth="0">
<position title="Column Left" class_suffix="left_column" col_lg="9" col_sm="12" col_md="9" col_xs="12">
<block title="Featured items" block_type="module" module_name="homefeatured" hook_name="home" show_title="0" />
<block title="Home banner" block_type="custom_html" module_name="" hook_name="top" show_title="0">
				<htmlData><![CDATA[<div class="wrapper-banner">
<div class="row">
<div class="banner-one col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="wrapper-banner-content">
<div class="wrapper-thumnail"><a title="Banner Demo" href="#"><img class="img-responsive" src="themes/jms_hermes/img/demo/banner-3-1.jpg" alt="Banner Demo" /></a>
<div class="wrapper-content"><span class="title-banner">Best design & material</span>
<h4 class="wp-content">2015</h4>
</div>
</div>
</div>
</div>
<div class="banner-three col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="wrapper-banner-content">
<div class="wrapper-thumnail"><a title="Banner Demo" href="#"><img class="img-responsive" src="themes/jms_hermes/img/demo/banner-3-2.jpg" alt="Banner Demo" /></a>
<div class="wrapper-content"><span class="title-banner">Lacoste - leather</span>
<h4 class="wp-content">-40%</h4>
</div>
</div>
</div>
</div>
</div>
</div>]]></htmlData>
			</block>
<block title="Latest shoes" block_type="module" module_name="jmsnewproducts" hook_name="home" show_title="0" />
<block title="Testimonials " block_type="module" module_name="jmstestimonials" hook_name="home" show_title="0" />
</position>
<position title="Right column" class_suffix="right_column" col_lg="3" col_sm="12" col_md="3" col_xs="12">
<block title="Top seller" block_type="module" module_name="blockbestsellers" hook_name="rightcolumn" show_title="0" />
<block title="Blog" block_type="module" module_name="jmsblogwidget" hook_name="home" show_title="0" />
<block title="Newletter" block_type="module" module_name="blocknewsletter" hook_name="footer" show_title="0" />
</position>
</row>
<row title="On sale " class="onsale-product" fullwidth="0">
<position title="On sale" class_suffix="" col_lg="12" col_sm="12" col_md="12" col_xs="12">
<block title="On sale" block_type="module" module_name="onsaleproducts" hook_name="home" show_title="0" />
</position>
</row>
</profile>
<profile title="Footer 3" profile_type="footer" class_suffix="wp-footer footer-3">
<row title="Footer Navbar" class="footer-navbar" fullwidth="0">
<position title="Contact us" class_suffix="" col_lg="3" col_sm="6" col_md="3" col_xs="12">
<block title="Contact us" block_type="module" module_name="blockcontactinfos" hook_name="footer" show_title="0" />
<block title="Socials" block_type="module" module_name="jmssocial" hook_name="footer" show_title="0" />
</position>
<position title="Shipping" class_suffix="" col_lg="3" col_sm="6" col_md="3" col_xs="12">
<block title="Shipping" block_type="custom_html" module_name="" hook_name="top" show_title="0">
				<htmlData><![CDATA[<h4 class="title_block"><span class="title">Shipping</span></h4>
<ul><li><a title="" href="#">Term Of Use</a></li>
<li><a title="" href="#">Shipping Guide</a></li>
<li><a title="" href="#">Online Shopping</a></li>
<li><a title="" href="#">Affliate</a></li>
<li><a title="" href="#">Fast Delivery</a></li>
<li><a title="" href="#">Location we ship to</a></li>
</ul>]]></htmlData>
			</block>
</position>
<position title="Information" class_suffix="" col_lg="3" col_sm="6" col_md="3" col_xs="12">
<block title="Information" block_type="custom_html" module_name="" hook_name="top" show_title="0">
				<htmlData><![CDATA[<h4 class="title_block"><span class="title">Information</span></h4>
<ul><li><a title="" href="#">Adress We Ship To</a></li>
<li><a title="" href="#">Sitemap</a></li>
<li><a title="" href="#">Specials</a></li>
<li><a title="" href="#">Top Seller</a></li>
<li><a title="" href="#">Sale Off Items</a></li>
<li><a title="" href="#">Site map</a></li>
</ul>]]></htmlData>
			</block>
</position>
<position title="Popular tags" class_suffix="" col_lg="3" col_sm="6" col_md="3" col_xs="12">
<block title="Popular tags" block_type="module" module_name="blocktags" hook_name="rightcolumn" show_title="1" />
</position>
</row>
<row title="Footer Bottom" class="footer-bottom-block" fullwidth="0">
<position title="Coppy right" class_suffix="coppy-right" col_lg="8" col_sm="6" col_md="8" col_xs="12">
<block title="Coppy right" block_type="custom_html" module_name="" hook_name="top" show_title="0">
				<htmlData><![CDATA[<p>All Rights Reserved. Design by <a title=""'" href="#">Jommmasters.com</a>. Power By <a title=""'" href="#">Prestashop</a>.</p>]]></htmlData>
			</block>
</position>
<position title="Payment-logo" class_suffix="payment-logo" col_lg="4" col_sm="6" col_md="4" col_xs="12">
<block title="Payment" block_type="module" module_name="blockpaymentlogo" hook_name="footer" show_title="0" />
</position>
</row>
</profile>
</entity_profile>

j'ai modifié le tél en haut vider le cache mais rien n'est modifié.merci

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More