nextjs-wordpress-starter
nextjs-wordpress-starter copied to clipboard
TypeError: validateThemeColors is not a function
I am unsure if we can use LocalWP sites using a URL different to localhost
, and if not, that might be the cause of this problem.
Describe the bug
Following the backend process, all plugins except
- DS Headless (Gravity Forms)
- WPGraphQL for Gravity Forms
are active
When creating a new page using Gutenberg, there is an error when adding any block:
This block has encountered an error and cannot be previewed.
and a console error
TypeError: validateThemeColors is not a function
.
Activating the wds-headless-theme does not resolve this.
To Reproduce
- Follow the steps for the backend:
- Create a new WP site using LocalWP on macOS
- Install Composer
- Install & activate Plugins and Theme
- Configure wp-config.php
- Create a new Page where the error will occur
Expected behavior You should receive no error when adding a new block to a new page.
Screenshots
Desktop (please complete the following information):
- macOS Ventura 13.3.1
- Chrome Version 113.0.5672.126
- LocalWP 6.7.1, PHP 7.4.30, WP 6.2.2.
- wds-headless-theme Version 1.0.0
Additional Notes
- After activating wds-headless-theme, the gutenberg editor layout looked a bit broken:
- There is also a console error on the page editor screen:
Failed to load resource: net::ERR_CONNECTION_REFUSED: http://localhost:3000/?page_id=18&_wp-find-template=true&_locale=user
- Deactivating wds-headless-theme and activating Twenty Twenty Three makes the editor layout look unbroken: