Jump to content

Commande Page Error 500 with PrestaShop Checkout v2.15.5 and Prestashop 1.7.8.1


yto

Recommended Posts

After update Prestashop 1.7.7.8 to 1.7.8.1 

PrestaShop Checkout v2.15.5

/commande page show Error 500

When Debug Mode show this information 

undefined function {renderLogo}  in /themes/classic/templates/checkout/_partials/header.tpl

call {renderLogo} generate error 500

When {renderLogo} is remove no more error

 

Function renderLogo is defined in

/themes/classic/templates/_partials/helpers.tpl

Edited by yto (see edit history)
Link to comment
Share on other sites

  • 3 months later...

solution for prestashop 1.7.81 to 1.7.8.3 (at this time) :

edit classic/templates/checkout/checkout.tpl

and remove  

{block name='header'}

  {include file='checkout/_partials/header.tpl'}

{/block}

 

before :

Quote

{extends file=$layout}

 

{block name='header'}

  {include file='checkout/_partials/header.tpl'}

{/block}

 

{block name='content'}

  <section id="content">

    <div class="row">

      <div class="cart-grid-body col-xs-12 col-lg-8">

        {block name='checkout_process'}

          {render file='checkout/checkout-process.tpl' ui=$checkout_process}

        {/block}

      </div>

      <div class="cart-grid-right col-xs-12 col-lg-4">

        {block name='cart_summary'}

          {include file='checkout/_partials/cart-summary.tpl' cart=$cart}

        {/block}

        {hook h='displayReassurance'}

      </div>

    </div>

  </section>

{/block}

 

{block name='footer'}

  {include file='checkout/_partials/footer.tpl'}

{/block}

 

 

after :

Quote

{extends file=$layout}

 

{block name='content'}

  <section id="content">

    <div class="row">

      <div class="cart-grid-body col-xs-12 col-lg-8">

        {block name='checkout_process'}

          {render file='checkout/checkout-process.tpl' ui=$checkout_process}

        {/block}

      </div>

      <div class="cart-grid-right col-xs-12 col-lg-4">

        {block name='cart_summary'}

          {include file='checkout/_partials/cart-summary.tpl' cart=$cart}

        {/block}

        {hook h='displayReassurance'}

      </div>

    </div>

  </section>

{/block}

 

 

and Tadaaa !

 

 

 

 

 

 

 

 

 

Edited by fcherrier (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Hey !

I am having the exact same problem with Paypal, when order is paid and is about to be redirected I get : 

PHP Fatal error:  Uncaught  --> Smarty: Unable to find template function 'renderLogo' <-- 
  thrown in /var/www/xxx/shop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_tplfunction.php on line 50


I changed theme/classic/templates/checkout/checkout.tpl but it did not change anything, same error (fresh cache, fresh browser).

Does anyone have an idea ? Since I'm on 1.7.8.3 no more customer can pay with Paypal :(

Edited by JSSSX
bug (see edit history)
Link to comment
Share on other sites

Merci pour votre réponse.

C'est en effet le cas, j'ai modifié mon themes/classic/templates/checkout/checkout.tpl avec la ligne indiqué mais cela n'a rien changé.

S'agirait-il d'un autre fichier ?

La description de hugofintecture étant peu claire, je me demande précisément ou coller la ligne de code : 
 

{extends "$layout"}

{block name="content"}
    <section>
        <h2>Title</h2>
    </section>
{/block}


J'ai tenté en ne mettant que ce code dans le fichier checkout.tpl, ca ne fonctionne pas.
J'ai tenté en ne remplaçant que le bloc header et content, l'erreur 500 est toujours présente.

Il est probable que la modification soit à faire ailleurs que dans themes/classic/templates/checkout/checkout.tpl.

Auriez-vous une idée ?

 

Merci.

Link to comment
Share on other sites

After some digging, mine is slightly different, it is a Syntax error in themes/classic/templates/_partials/header.tpl

Does it bring you some ideas ? Does anyone had this kind of exception ?

 

----------------------------------------------------------------------------------
(1/1) SmartyCompilerException
Syntax error in template "file:/var/www/ART/shop/themes/classic/templates/_partials/header.tpl" on line 65 "{renderLogo}" unknown tag 'renderLogo'

in smarty_internal_templatecompilerbase.php line 65
at Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag \'renderLogo\'', 65, true)
in smarty_internal_templatecompilerbase.php line 1757
at Smarty_Internal_TemplateCompilerBase->compileTag2('renderLogo', array(), array())
in smarty_internal_templatecompilerbase.php line 565
at Smarty_Internal_TemplateCompilerBase->compileTag('renderLogo', array())
in smarty_internal_templateparser.php line 2272
at Smarty_Internal_Templateparser->yy_r13()
in smarty_internal_templateparser.php line 3477
at Smarty_Internal_Templateparser->yy_reduce(13)
in smarty_internal_templateparser.php line 3569
at Smarty_Internal_Templateparser->doParse(4, ' </h1> ')
in smarty_internal_smartytemplatecompiler.php line 128

2022-04-02_233604.jpg

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