Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Class 'Drupal\content_moderation\Event\ContentModerationEvents' not found #215

Open
vinodsashi opened this issue Oct 23, 2022 · 1 comment

Comments

@vinodsashi
Copy link

#133

Hello,
Am trying to install OpenIdeal v3.0.9.1 in this env :
Drupal 8.9.20
PHP 7.4.32
MySQL 5.7.40
Windows 10
Composer 2.4.3

and getting below error:
Could you please suggest resolution.


#33 {main}
Error: Class 'Drupal\content_moderation\Event\ContentModerationEvents' not found in Drupal\openideal_idea\EventSubscriber\OpenidealIdeaEventSubscriber::getSubscribedEvents() (line 21 of C:\Vinod\installables\openideal-3.0.9.1\openideal\web\profiles\contrib\idea\modules\openideal_idea\src\EventSubscriber\OpenidealIdeaEventSubscriber.php).
[warning] Drush command terminated abnormally.


image

@futurearchitec
Copy link

futurearchitec commented Jan 15, 2023

Hello @vinodsashi,

unfortunately your setup didn't work even switching to an MySQL v5.x database. I haven't seen this error during my installations, but according to your screenshot you are trying to install on a windows machine. I always used Linux, so there can be quite a difference. Maybe you can check if the class 'ContentModerationEvents' exists on your machine. This is because the installation is using a quite deep directory structure resulting in long file paths. Windows filesystem has length restrictions, that I remember such problems from. Windows seems to write the file correctly, but the lookup fails because it's not really available. Hope this helps. If it's not too much to ask, set up a Linux virtual machine with the same PHP and MySQL version. Run the installation of OpenIdeaL there and see if it works. You can follow my instructions on the WIKI page for Ubuntu 22.04, simply skip the MariaDB and install MySQL v5.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants