Javascript has to be enabled

[ad_1]

Where do you see this message?

On page of website health.

The english sentence is:

“To be able to check the status of your website, JavaScript must be enabled.”

  • This reply was modified 51 minutes ago by morta1985.

A JavaScript error is probably preventing the execution. Take a look at the JavaScript console of your browser: https://developer.projectdmc.org/advanced-administration/debug/debug-javascript/

How I can fix this errors?

Apparently the Content Security Policy is set in the HTTP header in your hosting. As you have already deactivated all plugins as a test, this setting will probably be set by your hosting. Please contact your hoster’s support team for a solution.

Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). single-file-extension-frames.js:1:295
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:7:32
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). site-health.php:19:1
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). site-health.php:42:1
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). site-health.php:49:1
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:63:9
JQMIGRATE: Migrate is installed, version 3.4.1 jquery-migrate.min.js:2:981
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:70:29
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:77:46
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:82:32
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:84:10
Content-Security-Policy: The page’s settings blocked the loading of a resource at data:application/x-font-woff;charset=utf… (“font-src”). site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:95:32
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:99:9
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”).
Source: background-image:url('data:image/svg+xml… site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”).
Source: padding:0; site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”).
Source: display:none; site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:329:31
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:332:37
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:344:31
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:349:38
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:357:38
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:362:35
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:365:42
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:374:33
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:378:44
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:386:35
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:390:58
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). site-health.php:396:32
downloadable font: font load failed (font-family: "dashicons" style:normal weight:400 stretch:100 src index:1): content blocked source: data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAHvwAAsAAAAA3EgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAA … +raYQmdpQyhq3X375Vc9EZS30pVSoMiV6G5Jm7pcilxK8re9HaWE7llDtzEurqevbqTuhkiXkWFjg8qRoRtx1zUF+U3C+cCEVTbJqvo4z7bz9Ky79Jj1xdzc/wARDj0u
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). a11y.min.js:2:1469
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). a11y.min.js:2:1761
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). a11y.min.js:2:731
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). a11y.min.js:2:1112
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). a11y.min.js:2:731
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). a11y.min.js:2:1112
Content-Security-Policy: The page’s settings blocked the loading of a resource at data:application/x-font-woff;charset=utf… (“font-src”). site-health.php
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). jquery.min.js:2:49583
XHRPOST
https://joelmueller.ch/wp-admin/site-health.php
[HTTP/2 200 600ms] XHRPOST
https://joelmueller.ch/wp-admin/site-health.php
[HTTP/2 200 443ms] XHRPOST
https://joelmueller.ch/wp-admin/site-health.php
[HTTP/2 200 466ms] XHRPOST
https://joelmueller.ch/wp-admin/site-health.php
[HTTP/2 200 397ms] Unknown property ‘speak’. Declaration dropped. dashicons.min.css:2:42828
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. dashicons.min.css:2:42957
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-bar.min.css:2:541
Unknown property ‘speak’. Declaration dropped. admin-bar.min.css:2:4260
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-bar.min.css:2:4339
Unknown property ‘speak’. Declaration dropped. admin-bar.min.css:2:6437
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-bar.min.css:2:6502
Unknown property ‘speak’. Declaration dropped. admin-bar.min.css:2:9892
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-bar.min.css:2:9957
Unknown property ‘speak’. Declaration dropped. admin-bar.min.css:2:11778
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-bar.min.css:2:11843
Unknown property ‘speak’. Declaration dropped. admin-bar.min.css:2:16668
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-bar.min.css:2:16770
downloadable font: font load failed (font-family: "dashicons" style:normal weight:400 stretch:100 src index:1): content blocked source: data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAHvwAAsAAAAA3EgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAA … +raYQmdpQyhq3X375Vc9EZS30pVSoMiV6G5Jm7pcilxK8re9HaWE7llDtzEurqevbqTuhkiXkWFjg8qRoRtx1zUF+U3C+cCEVTbJqvo4z7bz9Ky79Jj1xdzc/wARDj0u
Content-Security-Policy: The page’s settings blocked the loading of a resource at data:application/x-font-woff;charset=utf… (“font-src”). 2 site-health.php
Unknown property ‘speak’. Declaration dropped. common.min.css:2:9586
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. common.min.css:2:9692
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. common.min.css:2:14282
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. common.min.css:2:19450
Unknown property ‘speak’. Declaration dropped. common.min.css:2:22034
Unknown property ‘speak’. Declaration dropped. common.min.css:2:23241
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. common.min.css:2:23396
Unknown property ‘speak’. Declaration dropped. common.min.css:2:40074
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. common.min.css:2:40139
Unknown property ‘speak’. Declaration dropped. common.min.css:2:40642
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. common.min.css:2:40707
Unknown property ‘speak’. Declaration dropped. common.min.css:2:45876
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. common.min.css:2:45955
Unknown property ‘zoom’. Declaration dropped. common.min.css:9:1724
Unknown property ‘speak’. Declaration dropped. forms.min.css:2:2551
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. forms.min.css:2:2616
Unknown pseudo-class or pseudo-element ‘-ms-input-placeholder’. Ruleset ignored due to bad selector. forms.min.css:2:3601
Unknown pseudo-class or pseudo-element ‘-ms-value’. Ruleset ignored due to bad selector. forms.min.css:2:6337
Unknown pseudo-class or pseudo-element ‘-ms-value’. Ruleset ignored due to bad selector. forms.min.css:2:6402
Unknown pseudo-class or pseudo-element ‘-ms-value’. Ruleset ignored due to bad selector. forms.min.css:2:6452
Unknown pseudo-class or pseudo-element ‘-ms-value’. Ruleset ignored due to bad selector. forms.min.css:2:6505
Unknown pseudo-class or pseudo-element ‘-ms-expand’. Ruleset ignored due to bad selector. forms.min.css:2:6588
Unknown pseudo-class or pseudo-element ‘-ms-reveal’. Ruleset ignored due to bad selector. forms.min.css:2:10441
Unknown pseudo-class or pseudo-element ‘-ms-clear’. Ruleset ignored due to bad selector. forms.min.css:2:10525
Unknown property ‘speak’. Declaration dropped. forms.min.css:2:21206
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. forms.min.css:2:21271
Unknown property ‘speak’. Declaration dropped. admin-menu.min.css:2:9097
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-menu.min.css:2:9162
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-menu.min.css:2:14661
Unknown property ‘speak’. Declaration dropped. dashboard.min.css:2:6026
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. dashboard.min.css:2:6149
Unknown property ‘speak’. Declaration dropped. list-tables.min.css:2:4280
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. list-tables.min.css:2:4431
Unknown property ‘speak’. Declaration dropped. list-tables.min.css:2:6885
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. list-tables.min.css:2:7052
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. list-tables.min.css:2:8365
Unknown property ‘speak’. Declaration dropped. list-tables.min.css:2:8381
Unknown property ‘speak’. Declaration dropped. list-tables.min.css:2:9038
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. list-tables.min.css:2:9125
Unknown property ‘speak’. Declaration dropped. list-tables.min.css:2:11050
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. list-tables.min.css:2:11137
Unknown property ‘speak’. Declaration dropped. list-tables.min.css:2:20593
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. list-tables.min.css:2:20658
Unknown property ‘speak’. Declaration dropped. list-tables.min.css:2:23397
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. list-tables.min.css:2:23548
Unknown property ‘speak’. Declaration dropped. edit.min.css:2:6879
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. edit.min.css:2:7019
Unknown property ‘speak’. Declaration dropped. edit.min.css:2:18345
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. edit.min.css:2:18410
Unknown property ‘speak’. Declaration dropped. revisions.min.css:2:6551
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. revisions.min.css:2:6616
Unknown property ‘speak’. Declaration dropped. media.min.css:2:4742
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. media.min.css:2:4807
Unknown property ‘speak’. Declaration dropped. media.min.css:2:14861
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. media.min.css:2:14975
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. themes.min.css:2:15559
Unknown property ‘speak’. Declaration dropped. themes.min.css:2:25846
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. themes.min.css:2:25921
Unknown property ‘speak’. Declaration dropped. themes.min.css:2:32512
Unknown property ‘speak’. Declaration dropped. wp-pointer.min.css:2:511
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. wp-pointer.min.css:2:617
Unknown property ‘speak’. Declaration dropped. wp-pointer.min.css:2:1065
Unknown property ‘speak’. Declaration dropped. wp-auth-check.min.css:2:1425
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. wp-auth-check.min.css:2:1500
Found invalid value for media feature. admin-global-2210.css:1:11146
Expected media feature name but found ‘-moz-min-device-pixel-ratio’. admin-global-2210.css:1:11368
Expected media feature name but found ‘min-device-pixel-ratio’. admin-global-2210.css:1:11416
Unknown property ‘speak’. Declaration dropped. admin-global-2210.css:1:24332
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. admin-global-2210.css:1:24397
Unknown property ‘speak’. Declaration dropped. wpseo-dismissible-2210.css:1:81
Unknown property ‘speak’. Declaration dropped. litespeed.css:18:8
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. litespeed.css:27:26
Unknown property ‘-moz-box-shadow’. Declaration dropped. litespeed.css:1068:18
Unknown property ‘-moz-border-radius’. Declaration dropped. litespeed.css:1505:21
Unknown property ‘-moz-border-radius’. Declaration dropped. litespeed.css:1531:21
Unknown property ‘border-top-radius’. Declaration dropped. litespeed.css:1532:20
Unknown property ‘-moz-border-radius-bottomright’. Declaration dropped. litespeed.css:1573:33
Unknown property ‘-moz-border-radius-bottomleft’. Declaration dropped. litespeed.css:1574:32
Unknown property ‘-moz-box-shadow’. Declaration dropped. litespeed.css:1704:18
Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. litespeed.css:3363:26
XHRPOST
https://joelmueller.ch/wp-admin/site-health.php
[HTTP/2 200 416ms] ZodError: 2 contents.a5b44d35.js:1:16048
XHRPOST
https://joelmueller.ch/wp-admin/site-health.php
[HTTP/2 200 447ms] XHRPOST
https://joelmueller.ch/wp-admin/site-health.php
[HTTP/2 200 430ms]

Then you must check the server configuration in this regard. As I don’t know this, I can’t tell you anything more specific. It is not in the hands of WordPress to influence this.


add_header Content-Security-Policy "default-src 'self'; font-src *;img-src * data:; script-src *; styl
e-src *";
add_header X-XSS-Protection "1; mode=block";
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy "strict-origin";
add_header Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer
=(),gyroscope=(),fullscreen=(self),payment=()";
include /etc/nginx/fastcgi_params;

I added this parameter to nginx. What blocks JavaScript?

I assume you would still have to explicitly allow inline scripts. Have another look at the CSP documentation. I found an article on this here: https://content-security-policy.com/examples/allow-inline-script/

Once again as a note: it is due to the server configuration which is not in the hands of WordPress, so it is also difficult to give answers here.

I fixed it to change this line to

add_header Content-Security-Policy "default-src 'self'; font-src 'self' https: data:; img-src 'self' https: data:; script-src 'self' 'unsafe-inline' https:; style-src 'self' 'unsafe-inline' https:;";
  • This reply was modified 16 minutes ago by morta1985.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer