My tables hang... See i.e. under "Årsskriftet" and Stickordegister.
I can see following on the console and this has worked before... Thanks in advance. Regards, Serena
Access to font at 'https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.woff' from origin 'https://www.lhfnf.dk' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://wp.lhfnf.dk' that is not equal to the supplied origin. style.min.css:1 GET https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.woff net::ERR_FAILED 200 (OK) www.lhfnf.dk/:1 Access to font at 'https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.ttf' from origin 'https://www.lhfnf.dk' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://wp.lhfnf.dk' that is not equal to the supplied origin. style.min.css:1 GET https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.ttf net::ERR_FAILED 200 (OK) wdt.frontend.min.js?ver=5.2:20 Uncaught Error: DataTables warning: table id=table_1 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1 at ea (wdt.frontend.min.js?ver=5.2:20:2029) at Object.error (wdt.frontend.min.js?ver=5.2:17:932) at c (jquery.min.js?ver=3.6.1:2:28327) at Object.fireWith [as rejectWith] (jquery.min.js?ver=3.6.1:2:29072) at l (jquery.min.js?ver=3.6.1:2:80070) at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.6.1:2:82499) ea @ wdt.frontend.min.js?ver=5.2:20 error @ wdt.frontend.min.js?ver=5.2:17 c @ jquery.min.js?ver=3.6.1:2 fireWith @ jquery.min.js?ver=3.6.1:2 l @ jquery.min.js?ver=3.6.1:2 (anonymous) @ jquery.min.js?ver=3.6.1:2 load (async) send @ jquery.min.js?ver=3.6.1:2 ajax @ jquery.min.js?ver=3.6.1:2 s.ajax.s.ajax @ jquery-migrate.min.js?ver=3.3.2:2 Qa @ wdt.frontend.min.js?ver=5.2:17 Kb @ wdt.frontend.min.js?ver=5.2:17 ja @ wdt.frontend.min.js?ver=5.2:16 ka @ wdt.frontend.min.js?ver=5.2:16 Aa @ wdt.frontend.min.js?ver=5.2:18 f @ wdt.frontend.min.js?ver=5.2:20 (anonymous) @ wdt.frontend.min.js?ver=5.2:20 each @ jquery.min.js?ver=3.6.1:2 each @ jquery.min.js?ver=3.6.1:2 u @ wdt.frontend.min.js?ver=5.2:20 wdtRenderDataTable @ wdt.frontend.min.js?ver=5.2:471 (anonymous) @ wdt.frontend.min.js?ver=5.2:535 each @ jquery.min.js?ver=3.6.1:2 each @ jquery.min.js?ver=3.6.1:2 (anonymous) @ wdt.frontend.min.js?ver=5.2:535 e @ jquery.min.js?ver=3.6.1:2 t @ jquery.min.js?ver=3.6.1:2 setTimeout (async) (anonymous) @ jquery.min.js?ver=3.6.1:2 c @ jquery.min.js?ver=3.6.1:2 fireWith @ jquery.min.js?ver=3.6.1:2 fire @ jquery.min.js?ver=3.6.1:2 c @ jquery.min.js?ver=3.6.1:2 fireWith @ jquery.min.js?ver=3.6.1:2 ready @ jquery.min.js?ver=3.6.1:2 $ @ jquery.min.js?ver=3.6.1:2
- Thank you for sending us these error messages, we can see the issues from the error text.
You will have to solve both this 'blocked by CORS policy' error,
and the invalid JSON response from these error messages.
1. Regarding the error related to the CORS policy:
'has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header'
Blocks by CORS policy must be resolved on the server, so please reach out to the hosting provider support to resolve this.
Once you resolve this, please do this:
Deactivate wpDataTables, clear cache,
then re-activate wpDataTables, clear cache again.
You can clear the cache with a plugin such as "W3 Total Cache" or any other cache plugin,
also clear your browser cache and cookies.
2. You also have this error / invalid JSON response :
Uncaught Error: DataTables warning: table id=table_1 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
-
These errors can happen for a few reasons, but they always happen for server-side tables (MySQL, manual, or imported tables).
Check if you have any errors, notices, warnings in your console.
If there are, resolve them first because they are interrupting wpDataTables' admin-ajax calls and the errors returned are referring to either bad Ajax or bad JSON response.
Another thing that could be causing this is the cache.
If the data is being cached on the page, the returned data is not the same,
or not at least what wpDataTables is expecting to see, so the error occurs.
Try clearing all cache from your website and browser, and then prevent the pages containing wpDataTables from being cached.
( If you use a caching plugin - most of them have a setting to exclude pages, add any pages with tables to be excluded)
Last, it could be the data in the table(s) - if the data is not the type that it should be (for example, a non-numerical value in an integer or a float column), or if the data has been changed for a formula column. Try creating a new table from the source table and see if it's going to cause errors. If it doesn't (after excluding cache as the cause), look for differences between data, filters, etc.
My tables hang... See i.e. under "Årsskriftet" and Stickordegister.
I can see following on the console and this has worked before... Thanks in advance. Regards, Serena
Access to font at 'https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.woff' from origin 'https://www.lhfnf.dk' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://wp.lhfnf.dk' that is not equal to the supplied origin.
style.min.css:1 GET https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.woff net::ERR_FAILED 200 (OK)
www.lhfnf.dk/:1 Access to font at 'https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.ttf' from origin 'https://www.lhfnf.dk' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://wp.lhfnf.dk' that is not equal to the supplied origin.
style.min.css:1 GET https://wp.lhfnf.dk/wp-content/plugins/wpdatatables/assets/fonts/wpDataTablesIcons.ttf net::ERR_FAILED 200 (OK)
wdt.frontend.min.js?ver=5.2:20 Uncaught Error: DataTables warning: table id=table_1 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
at ea (wdt.frontend.min.js?ver=5.2:20:2029)
at Object.error (wdt.frontend.min.js?ver=5.2:17:932)
at c (jquery.min.js?ver=3.6.1:2:28327)
at Object.fireWith [as rejectWith] (jquery.min.js?ver=3.6.1:2:29072)
at l (jquery.min.js?ver=3.6.1:2:80070)
at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.6.1:2:82499)
ea @ wdt.frontend.min.js?ver=5.2:20
error @ wdt.frontend.min.js?ver=5.2:17
c @ jquery.min.js?ver=3.6.1:2
fireWith @ jquery.min.js?ver=3.6.1:2
l @ jquery.min.js?ver=3.6.1:2
(anonymous) @ jquery.min.js?ver=3.6.1:2
load (async)
send @ jquery.min.js?ver=3.6.1:2
ajax @ jquery.min.js?ver=3.6.1:2
s.ajax.s.ajax @ jquery-migrate.min.js?ver=3.3.2:2
Qa @ wdt.frontend.min.js?ver=5.2:17
Kb @ wdt.frontend.min.js?ver=5.2:17
ja @ wdt.frontend.min.js?ver=5.2:16
ka @ wdt.frontend.min.js?ver=5.2:16
Aa @ wdt.frontend.min.js?ver=5.2:18
f @ wdt.frontend.min.js?ver=5.2:20
(anonymous) @ wdt.frontend.min.js?ver=5.2:20
each @ jquery.min.js?ver=3.6.1:2
each @ jquery.min.js?ver=3.6.1:2
u @ wdt.frontend.min.js?ver=5.2:20
wdtRenderDataTable @ wdt.frontend.min.js?ver=5.2:471
(anonymous) @ wdt.frontend.min.js?ver=5.2:535
each @ jquery.min.js?ver=3.6.1:2
each @ jquery.min.js?ver=3.6.1:2
(anonymous) @ wdt.frontend.min.js?ver=5.2:535
e @ jquery.min.js?ver=3.6.1:2
t @ jquery.min.js?ver=3.6.1:2
setTimeout (async)
(anonymous) @ jquery.min.js?ver=3.6.1:2
c @ jquery.min.js?ver=3.6.1:2
fireWith @ jquery.min.js?ver=3.6.1:2
fire @ jquery.min.js?ver=3.6.1:2
c @ jquery.min.js?ver=3.6.1:2
fireWith @ jquery.min.js?ver=3.6.1:2
ready @ jquery.min.js?ver=3.6.1:2
$ @ jquery.min.js?ver=3.6.1:2
Attached files: WordPress Environment .pdf
Hi, Serena.
Sorry for the delayed response.
- Thank you for sending us these error messages, we can see the issues from the error text.
You will have to solve both this 'blocked by CORS policy' error,
and the invalid JSON response from these error messages.
1. Regarding the error related to the CORS policy:
'has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header'
Blocks by CORS policy must be resolved on the server, so please reach out to the hosting provider support to resolve this.
Once you resolve this, please do this:
Deactivate wpDataTables, clear cache,
then re-activate wpDataTables, clear cache again.
You can clear the cache with a plugin such as "W3 Total Cache" or any other cache plugin,
also clear your browser cache and cookies.
2. You also have this error / invalid JSON response :
Uncaught Error: DataTables warning: table id=table_1 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
-
These errors can happen for a few reasons, but they always happen for server-side tables (MySQL, manual, or imported tables).
Check if you have any errors, notices, warnings in your console.
If there are, resolve them first because they are interrupting wpDataTables' admin-ajax calls and the errors returned are referring to either bad Ajax or bad JSON response.
Another thing that could be causing this is the cache.
If the data is being cached on the page, the returned data is not the same,
or not at least what wpDataTables is expecting to see, so the error occurs.
Try clearing all cache from your website and browser, and then prevent the pages containing wpDataTables from being cached.
( If you use a caching plugin - most of them have a setting to exclude pages, add any pages with tables to be excluded)
Last, it could be the data in the table(s) - if the data is not the type that it should be (for example, a non-numerical value in an integer or a float column), or if the data has been changed for a formula column. Try creating a new table from the source table and see if it's going to cause errors. If it doesn't (after excluding cache as the cause), look for differences between data, filters, etc.
I hope that helps.
Let me know how it goes.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables