ThemeFuse / Unyson

A WordPress framework that facilitates the development of WP themes
http://unyson.io
924 stars 218 forks source link

PHP 8.1 Issue with Page Builder #4295

Open pixelution opened 1 year ago

pixelution commented 1 year ago

I've tested a website with a theme based on Unyson with PHP 8.1 and got some errors. (works fine with PHP 8.0 though!)

When trying to edit pages Unyson is not correctly initialized anymore. I get the error "Cannot detect Item type" in builder.js for every Unyson content element. In the backend it looks like this:

image

In the frontend the HTML output for Unyson elements is missing but I don't see any errors.

Any advice what causes the issue?

Thanks!

Versions: WordPress 6.1.1 | Unyson 2.7.28