CSSStyleDeclaration Error

Has anyone seen this error?

WARNING Property: Unknown Property name. [11:3: overflow-wrap]
ERROR Invalid token: (‘INVALID’, u’"Droid’, 5, 44)
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function)
ERROR PropertyValue: Unknown syntax or no value: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR CSSStyleDeclaration: Syntax Error in Property: font-family: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR Invalid token: (‘INVALID’, u’"Droid’, 4, 41)
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function)
ERROR PropertyValue: Unknown syntax or no value: -apple-system, BlinkMacSystemFont,
“Segoe UI”, “Roboto”,
“Oxygen”, “Ubuntu”,
“Cantarell”, “Fira Sans”, “Droid
Sans”, “Helvetica Neue”, sans-serif;
ERROR CSSStyleDeclaration: Syntax Error in Property: font-family: -apple-system, BlinkMacSystemFont,
“Segoe UI”, “Roboto”,
“Oxygen”, “Ubuntu”,
“Cantarell”, “Fira Sans”, “Droid
Sans”, “Helvetica Neue”, sans-serif;
ERROR Invalid token: (‘INVALID’, u’"Droid’, 5, 44)
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function)
ERROR PropertyValue: Unknown syntax or no value: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR CSSStyleDeclaration: Syntax Error in Property: font-family: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR Invalid token: (‘INVALID’, u’"Droid’, 5, 44)
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function)
ERROR PropertyValue: Unknown syntax or no value: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR CSSStyleDeclaration: Syntax Error in Property: font-family: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR Invalid token: (‘INVALID’, u’"Droid’, 5, 44)
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function)
ERROR PropertyValue: Unknown syntax or no value: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR CSSStyleDeclaration: Syntax Error in Property: font-family: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR Invalid token: (‘INVALID’, u’"Droid’, 5, 44)
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function)
ERROR PropertyValue: Unknown syntax or no value: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif
ERROR CSSStyleDeclaration: Syntax Error in Property: font-family: -apple-system,
BlinkMacSystemFont, “Segoe UI”,
“Roboto”, “Oxygen”,
“Ubuntu”, “Cantarell”,
“Fira Sans”, “Droid
Sans”, “Helvetica Neue”,
sans-serif

Been testing ErpNext for 6 months in production - unable to sort the css mess finally - system is a disaster without formatting - it must be an email issue. 99% of clients in this part of the world use Outlook. Not convinced that the system is production ready for a services business.

Yes without question this is an ambitious work in progress and one size does not fit all.

But for those able to overlook Outlook (I could not resist!) and so on this tool has lots to offer and even a ray of hope!?

Where are you seeing this error? (Module/Doctype)

This project certainly is an ambitious work!!

EDIT

My one major issue so far is the CSS style breaking in ERP - opening certain Projects (containing linked emails) breaks the entire platform, fonts are changed to some Roman 12/13 point font, links are all changed to blue & underlined, the only two errors in /opt/bench/erpnext/logs are the one above and this one -

File “/opt/bench/erpnext/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/opt/bench/erpnext/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/opt/bench/erpnext/apps/frappe/frappe/handler.py”, line 54, in execute_cmd
is_whitelisted(method)
File “/opt/bench/erpnext/apps/frappe/frappe/handler.py”, line 64, in is_whitelisted
raise frappe.PermissionError(‘Not Allowed, {0}’.format(method))
PermissionError: Not Allowed, <function get_notifications at 0x7f81a9399938>

I have done a clean install, restored backups, checked file & dir permissions, node logs, redis logs, system logs and the nginx log in /var/log/nginx -

2019/02/22 20:00:19 [error] 1074#1074: 1015 connect() failed (111: Connection refused) while connecting to upstream, client: , server: , request: “GET /socket.io/?EIO=3&transport=polling&t=MaMNNuW HTTP/1.1”, upstream: “http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=MaMNNuW”, host: "", referrer: "https://*******/desk"

The above error comes and goes … also checked with telnet and curl and there is no connection issues.

Redis is fine.

Fail2ban logs are fine (LAN / localhost ignored). Firewall on / off checked and tested.

It is as if certain emails, when linked to a project breaks the CSS style of the interface. Emails are received from various email clients google mail, yahoo, aol, apple, outlook, and others.

EDIT

ErpNext handles all of the emails without fault.

If certain projects are opened then the system is fine and on other Projects the styling gets broken.

EDIT

Managed to track down the styling error to email permissions. Some emails are owned by Admin and some by a User, and this breaks the styling.

It is not possible export the emails, to change the ownership, because of size limitations.

Tried to use Bulk Update and some emails are now correctly displayed.

Note - ERPNEXT is a tool that really is solid and easy to use. The fact that all emails can be handled within the system was a very good design decision and it certainly works for me. I have changed my mind – the system is production ready to the fullest extend. Excellent job by the developers!

1 Like

Yes for eg mail from stale Outlook clients can have markup hazard for non-MS clients to handle Email From is a hash code instead of an address

"
Managed to track down the styling error to email permissions. Some emails are owned by Admin and some by a User, and this breaks the styling.
"

Thanks for this, that’s a learning for me!

Glad to hear you have mastered the worst of your issues - environments can be a most discouraging struggle, especially for others to reproduce problems.

Yes probably a clean install and restore backups is the ideal best move to skip learning challenges!

You may wish to connect with trentmu he seems to be in your part of the world.

cheers
john