IED Factory Posted June 5, 2014 Share Posted June 5, 2014 Bonjour, Notre boutique n'affiche plus de fiche produits, nous avons deux erreurs : Notice: Undefined index: checkversion in/home/mcv2a2pc/public_html/cache/smarty/compile/75/84/7a/75847a0447892ea4e3ca7dda4b98e0350c37512a.file.cform.tpl.phpon line 30Notice: Trying to get property of non-object in/home/mcv2a2pc/public_html/cache/smarty/compile/75/84/7a/75847a0447892ea4e3ca7dda4b98e0350c37512a.file.cform.tpl.phpon line 30 et voici ce que contient le fichier en question et le ligne 30 est en gras : <?php /* Smarty version Smarty-3.1.14, created on 2014-06-05 15:14:50 compiled from "/home/mcv2a2pc/public_html/themes/chs-mc-culloch/cform.tpl" */ ?> <?php /*%%SmartyHeaderCode:27923981053906d4a513078-55617506%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '75847a0447892ea4e3ca7dda4b98e0350c37512a' => array ( 0 => '/home/mcv2a2pc/public_html/themes/chs-mc-culloch/cform.tpl', 1 => 1401860568, 2 => 'file', ), ), 'nocache_hash' => '27923981053906d4a513078-55617506', 'function' => array ( ), 'variables' => array ( 'checkversion' => 0, 'tplform' => 0, 'nofile' => 0, 'choosefile' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.14', 'unifunc' => 'content_53906d4a6370f2_28486286', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_53906d4a6370f2_28486286')) {function content_53906d4a6370f2_28486286($_smarty_tpl) {?> <?php if ($_smarty_tpl->tpl_vars['checkversion']->value==''){?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./breadcrumb.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> <?php }?> <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> <?php echo (($tmp = @$_smarty_tpl->tpl_vars['tplform']->value)===null||$tmp==='' ? 'Empty' : $tmp);?> <script type="text/javascript"> $.uniform.defaults.fileDefaultHtml = "<?php echo $_smarty_tpl->tpl_vars['nofile']->value;?> "; $.uniform.defaults.fileButtonHtml = "<?php echo $_smarty_tpl->tpl_vars['choosefile']->value;?> "; </script> <?php [spam-filter] ?> Link to comment Share on other sites More sharing options...
Olivier CLEMENCE Posted June 6, 2014 Share Posted June 6, 2014 Bonjour, vous devriez déjà vider le cache smarty et éventuellement le désactiver et forcer la recompilation des templates. Pour voir si ça résout le problème puis ré-activer le tout. Link to comment Share on other sites More sharing options...
IED Factory Posted June 6, 2014 Author Share Posted June 6, 2014 Merci de votre retour, mais cela a déjà été fait sans résultat... Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 6, 2014 Share Posted June 6, 2014 Bonjour, version de Prestashop utilisée ? sachez que le fichier cform.tpl de votre thème n'existe pas de base dans Prestashop donc il fut rajouté manuellement. Pourquoi ? Comment ? seul vous pouvez répondre à ce genre de question. Link to comment Share on other sites More sharing options...
IED Factory Posted June 6, 2014 Author Share Posted June 6, 2014 Je passe derrière un autre webmaster? C'est un thème installé ou développé par lui. Nous sommes en 1.5.6.2. Merci de votre contribution. Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 6, 2014 Share Posted June 6, 2014 Vous avez fait une mise à jour ou pas ? car peut être que ce tpl est mal codé pour smarty3 sur la 1.5. dans tous les cas le soucis semble venir de ce tpl. Link to comment Share on other sites More sharing options...
IED Factory Posted June 6, 2014 Author Share Posted June 6, 2014 pas de mise à jour de PS. Installation de module simplement... Link to comment Share on other sites More sharing options...
IED Factory Posted June 25, 2014 Author Share Posted June 25, 2014 Problème non trouvé, mais résolu par une réinstallation totale d'une sauvegarde de sécurité Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now