Coyote6 / drupal-8-grapesjs

Sandbox for a GrapesJs editor to be used on a text format within Drupal 8.
6 stars 3 forks source link

Error when creating the new format #1

Open pier56 opened 6 years ago

pier56 commented 6 years ago

Hi ! I encountered an error while creating the new format. Here is the errorlog :

PHP Fatal error: call_user_func_array(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Drupal\\grapesjs\\Plugin\\Editor\\GrapesJSEditor" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in [D8]/core/lib/Drupal/Core/Form/FormValidator.php on line 283, referer: [Domain]/admin/config/content/formats/add

This aprears on a fresh install of Drupal 8.5.1. Awesome plugin BTW. Cheers :)

Coyote6 commented 6 years ago

Thanks @pier56. Sorry I just now saw this issue as I have been busy all summer. I don't know which commit you were using when this was posted. I may have fixed it, but I need to port my Drupal 7 version scripts back up to this one. Once I do, I will post on here and let you know. I will also double check the error, when I do.

lucacracco commented 5 years ago

Hi! try to update the class name GrapesJSEditor to GrapesJsEditor

Coyote6 commented 5 years ago

Thanks, @lucacracco I will look into it as soon as I can get back on this project. Got super busy.