-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Gateway timeout status while extending admin twig template #29827
Comments
Hello @adviva , I didn't manage to reproduce the issue with the provided informations. Thanks! |
Hello @MhiriFaten, I attach a test module that extends Admin Product template. Thanks! |
Hello @adviva, I reproduced your issue as we can see on this video : Untitled_.Oct.3.2022.5_27.PM.webm@PrestaShop/prestashop-maintainers, can you check it if it's not due to the module ? waiting for your feedback |
Hello @adviva in the documentation https://devdocs.prestashop-project.org/8/modules/concepts/templating/admin-views/ the extend should be:
please notice the |
Hi @matks Both the solution with the new namespace @PrestaShopCore and with @!PrestaShop works fine for me |
I think we can close this issue then! :) |
Prerequisites
Describe the bug and add screenshots
The problem is about the extends of admin template twig from a module in ps 8.0, i think any root template.
When a module extends an admin template twig, this page get infinite loading or a gateway timeout status.
The extend works in previous ps 1.7.8 like this:
{% extends 'PrestaShopBundle:Admin/Product/ProductPage:product.html.twig' %}
Now i have changed the above using bundle name syntax, as described in the notable-changes of the doc:
{% extends '@PrestaShop/Admin/Product/ProductPage/product.html.twig' %}
This single line breaks the page loading.
Expected behavior
Template twig override from a module works and admin page is loaded
Steps to reproduce
for example:
PrestaShop version(s) where the bug happened
8.0
PHP version(s) where the bug happened
7.4
If your bug is related to a module, specify its name and its version
No response
The text was updated successfully, but these errors were encountered: