modxcms / fred

The friendly front-end editor for visual, drag-and-drop content building in MODX CMS
https://fred.modx.com
MIT License
57 stars 25 forks source link

Uncaught error when trying to save page with fred template #504

Closed HenrikCatch closed 1 month ago

HenrikCatch commented 1 month ago

After installing Fred and assigning the default theme to a template, I get this error when trying to save the resource:

Uncaught Error: Class name must be a valid object or a string in /path/to/site/core/components/fred/src/Traits/Elements/Event/OnDocFormSave.php:23\nStack trace:\n#0......

What can i do to fix this? Version 3.0.0-rc1.

matdave commented 1 month ago

Is this on MODX 2.x?

matdave commented 1 month ago

Found it, on 3.x check for the fix here: https://github.com/modxcms/fred/commit/a86415bc449edfff3cfe80d9c7faaafb8a1beebb

I'll be including this in a release soon.