Closed budda closed 1 year ago
It seems the knock-on effect from enabling this module is fatal PHP errors across the site. Probably due to PHP 8.1 being used?
Error: Class "Drupal\Core\Utility\Error" not found in _drupal_error_handler_real() (line 63 of core/includes/errors.inc).
_drupal_error_handler_real(8192, 'Return type of RRule\RRule::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice', '/var/www/html/vendor/rlanvin/php-rrule/src/RRule.php', 1017) (Line: 346)
_drupal_error_handler(8192, 'Return type of RRule\RRule::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice', '/var/www/html/vendor/rlanvin/php-rrule/src/RRule.php', 1017) (Line: 571)
include('/var/www/html/web/core/includes/bootstrap.inc') (Line: 571)
Composer\Autoload\includeFile('/var/www/html/vendor/composer/../../web/core/lib/Drupal/Core/Utility/Error.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Drupal\Core\Utility\Error') (Line: 327)
watchdog_exception('search_api', Object, '%type while adding Views handlers for field %field on index %index: @message in %function (line %line of %file).', Array) (Line: 248)
_search_api_views_get_handlers(Object) (Line: 61)
search_api_views_data()
call_user_func_array('search_api_views_data', Array) (Line: 392)
...
RRule issues can be resolved with upgrading the events recurring date field dependency -- see https://github.com/localgovdrupal/localgov_events/issues/72
This may or may not be affecting the demo content module from enabling 🤷🏻♂️
Doesn't seem to be happening now.
Enabling the demo content module on a site with some content already added spat out a long list of warnings on the "Some required modules must be enabled" page.
After agreeing to install the dependencies nothing seemed to happen with demo content. Re-visiting the module list showed the module was still not enabled. Repeating the process a second time did not generate any of the above warnings.
All the dependency modules appear to have been enabled okay. Again, re-visiting the module list showed the module was still not enabled. Tried 3 times with no chance to enable the demo content.
Running on PHP 8.1.0