Account created on 23 May 2006, over 18 years ago
#

Recent comments

🇨🇦Canada paulrooney

Thank you! Moving Rules integration to a submodule solves the problem I was having, and the site works as expected without Rules installed.

I'm not aware of Rules ever having been installed there previously. I agree there must be some other reason, as I tested the original issue on a different site with Drupal 10.2.2, CiviCRM 5.68.1, and CiviCRM Entity 4.0.0-beta1, without Rules installed and the issue did not occur there.

I'm not sure what the cause was in this case but the submodule does solve the problem. Thanks again.

🇨🇦Canada paulrooney

I tested with Drupal 10.2.2, CiviCRM 5.67.3, and CiviCRM Entity 4.0.0-beta1.

If Rules is not installed, attempting to edit a block results in this error:

Error: Class "Drupal\rules\Core\RulesConditionBase" not found in include() (line 28 of /PATH/httpdocs/modules/contrib/civicrm_entity/src/Plugin/Condition/DrupalUserExist.php).

If Rules 8.x-3.0-alpha8 is installed, blocks are editable.

It looks like CiviCRM Entity uses RulesConditionBase, which is defined in the Rules module to extend ConditionPluginBase from Drupal core.

CiviCRM Entity module:

"use Drupal\rules\Core\RulesConditionBase;" is referenced in these three files:

https://git.drupalcode.org/project/civicrm_entity/-/blob/4.0.x/src/Plugi...
https://git.drupalcode.org/project/civicrm_entity/-/blob/4.0.x/src/Plugi...
https://git.drupalcode.org/project/civicrm_entity/-/blob/4.0.x/src/Plugi...

---

Rules module:

"abstract class RulesConditionBase extends ConditionPluginBase implements RulesConditionInterface"
https://git.drupalcode.org/project/rules/-/blob/8.x-3.x/src/Core/RulesCo...

---

Drupal core

"abstract class ConditionPluginBase extends ExecutablePluginBase implements ConditionInterface"
https://git.drupalcode.org/project/drupal/-/blob/10.2.x/core/lib/Drupal/...

🇨🇦Canada paulrooney

Drupal Version 10.0.10
PHP Version 8.1.23
drush/drush 12.2.0
drupal/ckeditor 1.0.2
drupal/ckeditor_media_embed dev-1.x 41ab6bf

When the command drush ckeditor_media_embed:update is run, it returns this warning:

In LegacyServiceInstantiator.php line 282:

You have requested a non-existent parameter "ckeditor_media_embed_install".

This could be an incompatibility with Drush 12 similar to this issue:
https://www.drupal.org/project/warmer/issues/3368778 💬 Drush 12 compatibility Needs review

Production build 0.71.5 2024