Jump to content

Recommended Posts

Bonjour,

Nous sommes en pleine configuration du site www.worldshaper.co et nous avons constaté que les pages que nous avons crée sont inaccessibles.

Cette page ne fonctionne pas
Impossible de traiter cette demande via worldshaper.co à l'heure actuelle.

HTTP ERROR 500

Page d'exemple : https://worldshaper.co/content/10-nos-produits-notre-ethique

Nous avons désactivé les URL simplifiée 
Crée une nouvelle page sans succès.

Nous avons activé le mode debug mais nous sommes perdu dans le résultat :

Whoops, looks like something went wrong.
1/1SmartyCompilerException in smarty_internal_templatecompilerbase.php line 26:Syntax error in template "/home/worldshamj/www/themes/PRSADD152/templates/cms/page.tpl" on line 26 "{if $cms->id==*}" - Unexpected "*"" - Unexpected "*"
in smarty_internal_templatecompilerbase.php line 26
at Smarty_Internal_TemplateCompilerBase->trigger_template_error() in smarty_internal_templateparser.php line 4435
at Smarty_Internal_Templateparser->yy_syntax_error('41', '*') in smarty_internal_templateparser.php line 4501
at Smarty_Internal_Templateparser->doParse('41', '*') in smarty_internal_smartytemplatecompiler.php line 118
at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (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: * https://opensource.org/licenses/AFL-3.0 * 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-2017 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $cms->id==*}" - Unexpected "*" {literal} <script type="text/javascript"> (function() { window.__insp = window.__insp || []; __insp.push(['wid', 1435800359]); var ldinsp = function(){ if(typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js?wid=1435800359&r=' + Math.floor(new Date().getTime()/3600000); var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); }; setTimeout(ldinsp, 0); })(); </script> {/literal} {/if} {extends file='page.tpl'} {block name='page_title'} {$cms.meta_title} {/block} {block name='page_content_container'} <section id="content" class="page-content page-cms page-cms-{$cms.id}"> {block name='cms_content'} {$cms.content nofilter} {/block} {block name='hook_cms_dispute_information'} {hook h='displayCMSDisputeInformation'} {/block} {block name='hook_cms_print_button'} {hook h='displayCMSPrintButton'} {/block} </section> {/block} ') in smarty_internal_templatecompilerbase.php line 283
at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(Smarty_Dev_Template)) in smarty_internal_template.php line 197
at Smarty_Internal_Template->compileTemplateSource() in smarty_internal_templatebase.php line 155
at Smarty_Internal_TemplateBase->fetch('cms/page.tpl', null, 'layouts/layout-left-column.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41
at SmartyDev->fetch('cms/page.tpl', null, 'layouts/layout-left-column.tpl') in FrontController.php line 660
at FrontControllerCore->smartyOutputContent('cms/page.tpl') in FrontController.php line 644
at FrontControllerCore->display() in Controller.php line 225
at ControllerCore->run() in Dispatcher.php line 369
at DispatcherCore->dispatch() in index.php line 28


Avez vous une idée ?
Un problème du  theme ? .htaccess ? Cache ?

Merci d'avance

Link to comment
Share on other sites

Problème de celui qui a ajouté/modifié ça : "{if $cms->id==*}"

si on commente en Smarty, c'est {* .......*} et si on a commenté le {if} on commente aussi le {/if}

 

Ce code ne peut pas être là nativement car l'auteur du thème ne peut pas connaitre les ID cms...

Link to comment
Share on other sites

10 minutes ago, Janett said:

Il y a un soucis dans /themes/PRSADD152/templates/cms/page.tpl

Avez vous fait des modifications dans ce fichier ?

humm. On à mis le page.tpl du theme par default et plus d'erreur 500.
Nous allons contacter le créateur du theme pour qu'il nous renvoi un page.tpl qui fonctionne.

merci de votre retour

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...