-
Notifications
You must be signed in to change notification settings - Fork 9.4k
xPath error in mails #4737
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
Comments
I get the same error, but not exclusive in the order confirmation, but on all magento mails (magento 2.0.6) |
Hi @lgt |
We have the same issue. We have deployed static content. |
Hi, It seems that the error happens when converting styles from Please try to update this package changing version to 1.0.0 in Could you also check if the issue appears on your environment when one of the native themes is applied? |
Hi, sorry for my late reply. Thanks, |
@eug123 I'm also having this issue, but I don't see emogrifier as a dependency in our any other suggestios? |
@eug123 update, it may be a sub-dependency. In our composer.lock, emogrifier as version 0.1.1 how would you recommend proceeding to get that version bumped to 1.0.0? |
If you let Magento minify css This is fixed in MyIntervals/emogrifier@81947fd which is scheduled for version 1.1.0 of pelago/emogrifier. Will you upgrade to v1.1.0 when it's out? |
@nickmarx12345678 put this in the require-dev part of composer.json:
Or if you prefer the development version:
|
Hi @lgt, |
I had this problem too, seems like emogrifier had trouble with a multiline comment |
@adamraya Could you please file a ticket at the Emogrifier issues list with the offending HTML and CSS? Then we can have a look at it. Thanks! ❤️ |
@antonkril please have a look at this. |
@antonkril I had this problem in all mails same as @lgt. This error is comes when my custom created theme is applied , if i select default theme blank or luma email templates working fine. Is there any solution? |
Hi everyone, we had this issue on one site and also noticed that it is not happening when using Luma so conclusion was it must be something we have included into our theme. I our case Font Awesome we included was root of an issue. In file As we don't need this solution was simply disabling/commenting out If you check official comment in My advice is to use xDebug and keep an eye/breakpoint on Hope this helps anyone! |
Hi all, |
Hi all, step-3:- Clear below directory |
@veloraven @antonkril are there any updates? Do you know when pelago/emogrifier will be up to date with latest release? |
Hi, |
Hi, I have the same problem, so it looks like been fixed by udpdating Emogrifier 2.0.0 |
I am facing same issue in Magento ver 2.2.3, My composer ver is:- Please suggest the solution for this |
@Puru2016 Does an upgrade to emogrifier ^2.0.0 solve the problem for you? |
I have changed "pelago/emogrifier": "1.2.0" to "pelago/emogrifier": "2.0.0", and update the composer and then recompile the store , still same issue. |
Magento 2.2.3 |
Im still using Magento 2.2.2... is it the same? |
@nikidexa I think that it will be working on 2.2.2 but I did not test. |
Yes, I can confirm that now is working good for me too.... thanks to everyone |
It worked for me: https://magento.stackexchange.com/a/132691 |
Still issue is there as I am not able to update the "pelago/emogrifier" due to below error:- Problem 1 I have tried with below "pelago/emogrifier" version:- in vendor\magento\magento2-base\composer.json My exact error is as below in email template:- |
Ive recently updated from Magento Exception is: |
Same situation here. Magento 2.2.4, pelago/emogrifier in version 2.0.0. |
Again having the same issue on Magento 2.2.5. |
found a solution for Magento 2.2.5: created the files |
@chammedinger your fixed worked, thank you! If you don't mind sharing, what is your thought process towards fixing the bug? |
composer.json >> require-dev >> "pelago/emogrifier": "dev-master as 0.1.1" |
Still present on 2.2.7 and the fix doesn't work |
thats correct. but my fix above for 2.2.5 still works on 2.2.7 |
hmm I've done that too, but it doesn't work.. not on my M2 instance. I will try tomorrow this: I think, in my case, the issue comes from others files. The error appears in the newsletter confirmation mail. I've tried even remove all lines with import sentences on email.less, email-fonts.less and email-inline.css. With that the static file generated has no content (for example https://www.DOMAIN.com/pub/static/version1549392940/frontend/grand/theme/es_ES/css/email-fonts.css )
But the issue happens yet... |
Warning: DOMXPath::query(): Invalid expression in /var/www/html/xxx/xxx/vendor/magento/framework/Config/Dom.php on line 277 Getting this error when send email to customer programatically. But nothing work I am using magento 2.3 version |
CSS inlining error: DOMXPath::query(): Invalid expression in selector >> @-webkit-keyframes bounceIn << in /var/www/html/vendor/pelago/emogrifier/src/Emogrifier.php on line 530 Getting this error Load Email template and check preview. And currently my Pelago version ""pelago/emogrifier": "^2.0.0"," But nothing work I am using magento 2.3.2 version. |
Getting this error Load Email template and check preview. And currently my Pelago version ""pelago/emogrifier": "^2.0.0"," But nothing work I am using magento 2.3.2 version. |
I believe that error is only shown in develop/default mode. Try to set the mode to production:
|
hello @Ravindrasinh have you got any soulution? @JJBalso Im getting the issue in production mode also |
Uh oh!
There was an error while loading. Please reload this page.
I'm using magento 2.0.7 and I get the following error on order mail confirmation.Swicthing from default to production the error is still there. This seems to be related to the included css in header.
If I remove
{{inlinecss file="css/email-inline.css"}}
than I do not get the error, but still need some styling!How to suppress ?
CSS Inline Error: Warning: DOMXPath::query(): Invalid expression in .../vendor/pelago/emogrifier/Classes/Emogrifier.php on line 269
The text was updated successfully, but these errors were encountered: