nextjs-wordpress-starter icon indicating copy to clipboard operation
nextjs-wordpress-starter copied to clipboard

TypeError: validateThemeColors is not a function

Open sdoigmm opened this issue 1 year ago • 0 comments

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

  1. Follow the steps for the backend:
  2. Create a new WP site using LocalWP on macOS
  3. Install Composer
  4. Install & activate Plugins and Theme
  5. Configure wp-config.php
  6. 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 Screenshot 2023-05-23 at 9 07 45 am

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: Screenshot 2023-05-23 at 9 07 45 am
  • 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: Screenshot 2023-05-23 at 9 13 54 am

sdoigmm avatar May 23 '23 01:05 sdoigmm