Sidekiq is giving me ERROR: Unregistered function: //*:a[nokogiri:visited(.)].
Wonder what could be? I turned off all components, plugins, and using default foundation theme.
I did full update and restarts and issue still occuring. It seems for all mail types.
Any hint?
Welcome! Did you add any custom CSS to your email via /admin/customize/email_style/css? it looks like there’s likely a a:visited style in there?
We inline the CSS for emails because not all clients support style blocks, and with inline CSS you can’t use pseudo selectors.
I didn’t touch nothing, all my css is in components and they are turned off, and also there are not pseudo class :visited anywhere in my css. I turned off all themes (allowed and default only foundation) and plugins and everything but issue seems to persist.
After each change, I restarted whole discourse and then I look at logs and retry them (sidekiq) and each time I see even more mails failed from various types.
It’s really confusing what could cause nokoiri to crash because of parsing pseudo class is breaking stuff?
I’m noob of a dev myself and I already lost 4 days on this issue. The interesting thing is that when I tried to google the issue, there is nothing. AI told me same stuff like you, some CSS somewhere is injecting :visited and it is breaking mail generation - not an SMTP problem.
Note that everything worked fine and then suddenly stopped, not even sure if update was a done, mistake on my end for not testing properly after an update but I think this issue started in between updates.
Well, don’t mind my last question because you are right, /admin/customize/email_style/css contain a:visited. Thx for solving this by giving me a proper hint!