Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Over in #904978: Preserve breadcrumbs on edit pages for Rules the following code was swapped over:
-define('RULES_SCHEDULER_PATH', RULES_UI_PATH . '/schedule');
+define('RULES_SCHEDULER_PATH', 'admin/config/workflow/rules/schedule');
This code that hasn't changed is still causing issues in 6.x of rules_scheduler when rules_admin is not enabled.
Notice: Use of undefined constant RULES_ADMIN_SET_PATH - assumed 'RULES_ADMIN_SET_PATH' in include_once() (line 11 of /mnt/www/html/sites/all/modules/rules/rules_scheduler/rules_scheduler.module).
This patch backports the very basic alteration to 6.x to ensure similar functionality.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2204527-2-rules_undefined_constant_notice.patch | 1.08 KB | adammalone |
#1 | 2204527-1-rules_scheduler_undefined_constant_notice.patch | 736 bytes | adammalone |
Comments
Comment #1
adammaloneComment #2
howarddraper@gmail.com CreditAttribution: howarddraper@gmail.com commentedRTBC
Comment #3
adammaloneLooking at this again, there is another case of a variable defined in rules_admin (Rules UI) being used in the rest of the rules suite. This is obviously not going to work if the rules admin module is not enabled.
This patch removes the reliance on rules admin of the rules_forms module in extension of the previous patch.
Comment #4
tobiasbThere is already a issue for that. #1103076: Use of undefined constant RULES_ADMIN_SET_PATH and RULES_ADMIN_PATH