-
Notifications
You must be signed in to change notification settings - Fork 60
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
'Insert Variable' functionality in templares does not work (Exception, call on null) #105
Comments
I can confirm that this is an issue on 2.3.5 and later |
Hi, everybody, DId some body find a solution already? Additional info: |
the problem is here: Pdfgenerator/Model/Template/Processor.php::processTemplate() Setting setStrictMode to 0 fix this bug. $processor->setStrictMode(0); |
I am using Magento version 2.3.5-p1 and also having same error. |
In Magento 2.3.5 and Magento 2.4 as well, i can not make the variables to work.
When you try to create or edit a PDF template and press the 'insert variable' button an error occures:
I managed to find the potential cause for this, in Line 134-136 of /Controller/Adminhtml/Variable/Template.php
bute evene if i changed it to something like this (as copied from module-email), its not fixed (but then you even will get json response...)
I assume that there have to be made several changes in order to make it compatible to the code of module-email.
Actually there are many parts of the code which seem to be deprecated, so this might not be the only problem. Hard to say at this point... But might be a starting point for someone that had the same issue.
The text was updated successfully, but these errors were encountered: