0

In magento 2.2.5, I am using the custom theme and I have used the blank theme's files. In mail I am getting this error :

CSS inlining error: DOMXPath::query(): Invalid expression in selector input[type="text"] in /root/vendor/pelago/emogrifier/Classes/Emogrifier.php on line 372.

I have tried these solutions: 1. link 1

1

Sorry for the late reply. But maybe it will help someone.

On Magento 2.2.5 you can use the following workaround:

create the files

/web/css/email.less

/web/css/email-inline.less

in your custom theme and add the content from

/vendor/magento/theme-frontend-blank/web/css/email.less and
/vendor/magento/theme-frontend-blank/web/css/email-inline.css
respectively. But each with the line "@import 'source/_theme.less';" commented out (or removed)

still works with Magento 2.2.7

  • what is the meaning of this line ? but each with the line "@import 'source/_theme.less';" commented out (or removed); – Hafiz Arslan Apr 29 at 8:57
  • what I wanted to say with that was: copy the complete content of /vendor/magento/theme-frontend-blank/web/css/email.less and /vendor/magento/theme-frontend-blank/web/css/email-inline.css to the files in your theme and remove the line "@import 'source/_theme.less" from each. – CHammedinger Apr 30 at 11:59
0

Facing the same issue:
i used the php version is 7.3 (Which is the main issue).
i just downgrade the php version 7.3 to 7.2 . Everything is working fine :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.