WP SMUSH gave me 10 js errors
-
I used the “bulk smush” after installing and using image smush. However, I just noticed 10 (!) javascript errors and need help fixing these now. I am not technical and would like instructions I can understand.
Thank you in advance
Adriana ErikssonThe page I need help with: [log in to see the link]
-
These are the errors btw:
Uncaught TypeError: Cannot set property ‘cssText’ of null
Source file: http://www.bqredovisning.se/wp-content/uploads/fvm/cache/header-c50c3593-1508451567.min.js at line: 23, column: 38319
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0Uncaught TypeError: Cannot set property ‘cssText’ of null
Source file: http://www.bqredovisning.se/wp-content/uploads/fvm/cache/header-c50c3593-1508451567.min.js at line: 23, column: 38319
Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.
Source file: http://bqredovisning.se/ at line: 0, column: 0Hey @arribas,
Does all those errors go away if you disable Smush? Because none of those properties or errors seems to be related to Smush, rather they seems to be more of generic errors.
Thanks, Umesh
Hey, ues I am sure of it. I did checks after every change. On the smush plugin I got exactly 10 yellow notes of pages it could not smush, and after that the faults appeared.
Hey @arribas,
But those errors are not related to Smush in any manner at all. Even if you got “10 yellow notes of pages it could not smush”, they are just related to images it can’t smush.
The warning just says Smush couldn’t optimise the image, it doesn’t makes any changes to those images or any other related property.
These all errors:
“Uncaught TypeError: Cannot set property ‘cssText’ of null”, “Font from origin ‘http://www.bqredovisning.se’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://bqredovisning.se’ is therefore not allowed access.”
are probably due to minimisation or caching plugin you might have activated recently.
Do you happen to be using W3 Total Cache or any minification plugin? Can you please try disabling and check the errors.
Thanks, Umesh
Thank you for using Smush. I am going to close this topic for now. If you would still like assistance, let us know how the conflict test went and we will reopen the thread.
The topic ‘WP SMUSH gave me 10 js errors’ is closed to new replies.