Remember me template is not loaded from the original module #7273
Labels
Area: Frontend
bug report
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Steps to reproduce
Magento\Persistent\Block\Form\Remember
di.xml
:<preference for="Magento\Persistent\Block\Form\Remember" type="MyCompany\Module\Block\Persistent\Form\Remember" />
Expected result
Actual result
main.CRITICAL: Invalid template file: 'remember_me.phtml' in module: 'MyCompany_Module' block's name: 'persistent.remember.me' [] []
Cause
The template of this block is not prefixed with the module name:
https://github.com/magento/magento2/blob/2.1/app/code/Magento/Persistent/view/frontend/layout/customer_account_create.xml#L11
https://github.com/magento/magento2/blob/2.1/app/code/Magento/Persistent/view/frontend/layout/customer_account_login.xml#L11
Instead of :
<block class="Magento\Persistent\Block\Form\Remember" name="persistent.remember.me" template="remember_me.phtml" before="-"/>
It should be:
<block class="Magento\Persistent\Block\Form\Remember" name="persistent.remember.me" template="Magento_Persistent::remember_me.phtml" before="-"/>
The text was updated successfully, but these errors were encountered: