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

Plugins Activations & Block Display Errors

Open RaymondMRose opened this issue 2 years ago • 1 comments

Describe the bug I followed all the steps in the backend install but the WDS Headless plugins won't activate unless I downgrade my PHP version to 7.4. That works.

However, after activation, the Visual Editor is showing me "The Block has encountered an error and cannot be previewed" for blocks.

Help!

To Reproduce Steps to reproduce the activation behavior:

  1. Have PHP level for WordPress set to 8.0+
  2. Install WDS plugins via Composer
  3. Go to Plugins and try to activate them

Steps to reproduce the preview error behavior:

  1. Activate WDS Headless (Block) plugin
  2. Go to any page and see block previews

Expected behavior Plugins in install in most recent versions of PHP and blocks to be previewed correctly.

Screenshots Screenshot 2023-06-30 134454 Screenshot 2023-06-30 135800

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version 114.0.5735.135

Additional context Thank you for your time in advance.

RaymondMRose avatar Jun 30 '23 17:06 RaymondMRose

@RaymondMRose downgrade to PHP 7.4

abdokouta avatar Sep 25 '23 19:09 abdokouta