Using a global color for the background crashes page

I’ve found that when I apply a global color (maybe it is the first one?) to the global page background color then the page crashes.

Note that the background color reverted to black on the frontend and I was unable to go into the site editor to change it. Regenerating the CSS / Global CSS fixed it. I saw in the JS console that there was an error reading - Here is that error message in case it is related:

Error: Failed to parse color: “var(–cc-color-background)”
at f (https://wpdaily.news/wp-content/plugins/cwicly/build/index.js?ver=1.2.9.5.8.4:1:2332553)
at x (https://wpdaily.news/wp-content/plugins/cwicly/build/index.js?ver=1.2.9.5.8.4:1:2334832)
at https://wpdaily.news/wp-content/plugins/cwicly/build/index.js?ver=1.2.9.5.8.4:1:2371192
at Ir (https://wpdaily.news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:73407)
at xl (https://wpdaily.news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:93227)
at https://wpdaily.news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:89829
at v (https://wpdaily.news/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0:10:3385)
at ce (https://wpdaily.news/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0:10:5527)
at A. (https://wpdaily.news/wp-admin/load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.2:11:16077)
at P (https://wpdaily.news/wp-admin/load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.2:11:15885)

Here is a short video showing the issue:

  • WordPress version: 6.2.1
  • PHP 8.1.9
  • Gutenberg Plugin version: - not installed
  • Cwicly Plugin version: 1.2.9.5.8.4
  • Cwicly Theme version: 1.0.3

Hi @David,

Sorry to hear you’re experiencing trouble with this.

Variable values are currently not supported for the global background colour.
Until this feature gets implemented, we kindly request that you use a custom value.

Thank you for your patience and understanding.

Actually, this turned into a problematic issue. Perhaps it should not be allowed or at least a note added. See this thread please: Clicking on the taxonomy term gives block error

Hello @David,

Indeed, global colours should not be directly available from the background colour selector. This will be addressed in the next update.

I have replied to your message in the appropriate thread.

1 Like

Great. Thank you for looking into this.