Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find template function 'renderLogo' #27477

Closed
2 tasks done
hugofintecture opened this issue Jan 26, 2022 · 8 comments
Closed
2 tasks done

Unable to find template function 'renderLogo' #27477

hugofintecture opened this issue Jan 26, 2022 · 8 comments
Labels
Bug Type: Bug Invalid Resolution: issue closed because invalid

Comments

@hugofintecture
Copy link
Contributor

hugofintecture commented Jan 26, 2022

Prerequisites

Describe the bug and add screenshots

I'm working on the Fintecture payment plugin. In our test environnements we have some issues with some redirections.
While being redirected on our validation controller we have this error:

(1/1) SmartyException
Unable to find template function 'renderLogo'
in smarty_internal_runtime_tplfunction.php line 50
at Smarty_Internal_Runtime_TplFunction->callTemplateFunction(object(SmartyDevTemplate), 'renderLogo', array(), true)in 0e77c09dbfd3698ed6c027da928371f94a7ecaf6_2.file.header.tpl.php line 124

Here's the complete trace.

Trace

Other people have the same problem:

Expected behavior

Being redirected to our controller page: index.php?fc=module&module=fintecture&controller=validation

Steps to reproduce

This does not seem to be systematic and occurs mainly in our environments at the moment.

PrestaShop version(s) where the bug happened

1.7.8.3

PHP version(s) where the bug happened

7.3.32

If your bug is related to a module, specify its name and its version

No response

@hugofintecture hugofintecture added the Bug Type: Bug label Jan 26, 2022
@hibatallahAouadni
Copy link
Contributor

Hello @hugofintecture

We use GitHub issues only to discuss about bugs and new features in the PrestaShop project. If you have questions about using PrestaShop or third-party modules, or if you need help with your shop, please consider one of our support plans.

Alternatively, you can also ask for help in the community forums or in the public Slack channel.

Thank you

@hibatallahAouadni hibatallahAouadni added the Invalid Resolution: issue closed because invalid label Jan 27, 2022
@hugofintecture
Copy link
Contributor Author

Hello @hibatallahAouadni I'm sorry but it seems to be an internal PrestaShop bug...

@hibatallahAouadni
Copy link
Contributor

Hello @hugofintecture

So could you please provide clear and concise steps to reproduce the issue 🙏
Please provide as much as you can infos to help me reproduce the issue.
Waiting for your feedback.

Thanks!

@hugofintecture
Copy link
Contributor Author

hugofintecture commented Jan 27, 2022

I've found the root of the issue. There was a change in the way to show logo in templates in October: e0945fd

So instead of redefining the template we now use {extends "$layout"} and it works.

Thanks!

@myB0B
Copy link

myB0B commented Feb 18, 2022

Same problem here !

@hugofintecture how you do that ? > So instead of redefining the template we now use {extends "$layout"} and it works.

@hugofintecture
Copy link
Contributor Author

Just like this:

{extends "$layout"}

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

@myB0B
Copy link

myB0B commented Feb 21, 2022

thanks it works fine !

@JSSSX
Copy link

JSSSX commented Apr 2, 2022

Just like this:

{extends "$layout"}

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

@hugofintecture @myB0B

I am also confronted to this issue on 1.7.8.3 and Paypal 5.5.0 (fresh install with migration, no customer is able to pay with Paypal since this issue generating error 500 with PHP Fatal error: Uncaught --> Smarty: Unable to find template function 'renderLogo' <-- ).

May I know on which file / line I have to add this code ?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Bug Invalid Resolution: issue closed because invalid
Projects
None yet
Development

No branches or pull requests

4 participants