Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

TypeError: validateThemeColors is not a function #1108

Open
sdoigmm opened this issue May 23, 2023 · 0 comments
Open

TypeError: validateThemeColors is not a function #1108

sdoigmm opened this issue May 23, 2023 · 0 comments

Comments

@sdoigmm
Copy link

sdoigmm commented May 23, 2023

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant