I have updated the MR 162:
https://git.drupalcode.org/project/facets/-/merge_requests/162
rpayanm → changed the visibility of the branch 3543442-drupal-11-compatibility to hidden.
rpayanm → changed the visibility of the branch 3543442-drupal-11-compatibility to active.
rpayanm → changed the visibility of the branch 3543442-drupal-11-compatibility to hidden.
I am getting this error after upgrading to Drupal 11 every time I run drush updb
. If I uninstall this module, I get no error.
[success] No pending updates.
[warning] Undefined array key "rebuild" ModuleHandler.php:354
[warning] Trying to access array offset on null ModuleHandler.php:354
[error] TypeError: Drupal\Core\Extension\ModuleHandler::Drupal\Core\Extension\{closure}(): Argument #2 ($module) must be of type string, null given, called in /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 355 in Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (line 401 of /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php) #0 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(355): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}('\\webform_rebuil...', NULL)
#1 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(401): Drupal\Core\Extension\ModuleHandler->invokeAllWith('rebuild', Object(Closure))
#2 /app/web/core/includes/common.inc(465): Drupal\Core\Extension\ModuleHandler->invokeAll('rebuild')
#3 /app/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(96): drupal_flush_all_caches()
#4 [internal function]: Drush\Commands\core\UpdateDBCommands->updatedb(Array)
#5 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#6 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#7 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#8 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#9 /app/vendor/symfony/console/Command/Command.php(318): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /app/vendor/symfony/console/Application.php(1092): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /app/vendor/symfony/console/Application.php(341): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /app/vendor/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /app/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run(Array)
#16 /app/vendor/bin/drush.php(119): include('/app/vendor/dru...')
#17 {main}.
TypeError: Drupal\Core\Extension\ModuleHandler::Drupal\Core\Extension\{closure}(): Argument #2 ($module) must be of type string, null given, called in /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 355 in /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 401 #0 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(355): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}('\\webform_rebuil...', NULL)
#1 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(401): Drupal\Core\Extension\ModuleHandler->invokeAllWith('rebuild', Object(Closure))
#2 /app/web/core/includes/common.inc(465): Drupal\Core\Extension\ModuleHandler->invokeAll('rebuild')
#3 /app/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(96): drupal_flush_all_caches()
#4 [internal function]: Drush\Commands\core\UpdateDBCommands->updatedb(Array)
#5 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#6 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#7 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#8 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#9 /app/vendor/symfony/console/Command/Command.php(318): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /app/vendor/symfony/console/Application.php(1092): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /app/vendor/symfony/console/Application.php(341): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /app/vendor/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /app/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run(Array)
#16 /app/vendor/bin/drush.php(119): include('/app/vendor/dru...')
#17 {main}
TypeError: Drupal\Core\Extension\ModuleHandler::Drupal\Core\Extension\{closure}(): Argument #2 ($module) must be of type string, null given, called in /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 355 in Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (line 401 of /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php).
[warning] Drush command terminated abnormally.
rpayanm → changed the visibility of the branch 3532477-load-all-items to active.
rpayanm → changed the visibility of the branch 3532477-load-all-items to hidden.
Same error as @capellic, and the image is not uploaded:
Error in the web console:
Uncaught
Object { message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 502\nDebugging information follows.\nPath: /media-library?media_library_opener_id=media_library.opener.field_widget&media_library_allowed_types%5Bimage%5D=image&media_library_selected_type=image&media_library_remaining=1&media_library_opener_parameters%5Bfield_widget_id%5D=field_hero_image&media_library_opener_parameters%5Bentity_type_id%5D=node&media_library_opener_parameters%5Bbundle%5D=sa_page&media_library_opener_parameters%5Bfield_name%5D=field_hero_image&hash=jrK_s5Wk_R-TSA8Z6nyGlWOTb6t1498NWPfvPCMHe_E&ajax_form=1\nStatusText: error\nResponseText: \r\n502 Bad Gateway\r\n502 Bad Gateway\r\nnginx\r\n", name: "AjaxError", stack: "@https://***.pantheonsite.io/core/misc/ajax.js?v=11.1.7:196:32\n@https://***.pantheonsite.io/core/misc/ajax.js?v=11.1.7:1926:3\n" }
message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 502\nDebugging information follows.\nPath: /media-library?media_library_opener_id=media_library.opener.field_widget&media_library_allowed_types%5Bimage%5D=image&media_library_selected_type=image&media_library_remaining=1&media_library_opener_parameters%5Bfield_widget_id%5D=field_hero_image&media_library_opener_parameters%5Bentity_type_id%5D=node&media_library_opener_parameters%5Bbundle%5D=sa_page&media_library_opener_parameters%5Bfield_name%5D=field_hero_image&hash=jrK_s5Wk_R-TSA8Z6nyGlWOTb6t1498NWPfvPCMHe_E&ajax_form=1\nStatusText: error\nResponseText: \r\n502 Bad Gateway\r\n502 Bad Gateway\r\nnginx\r\n"
name: "AjaxError"
stack: "@https://***.pantheonsite.io/core/misc/ajax.js?v=11.1.7:196:32\n@https://***.pantheonsite.io/core/misc/ajax.js?v=11.1.7:1926:3\n"
<prototype>: Error:
ajax.js:196:32
Just a note: I was able to do it with the migrate_conditions
module and this code:
process:
skip_on_unpublished:
plugin: skip_on_condition
condition:
plugin: equals
value: 0
source: status
method: row
Please review.
rpayanm → created an issue.
rpayanm → created an issue.
The latest patch (#19) does not work with the version 3.0.1 because the dev brach has a new file, tests/src/Unit/MarkdownUnitTestBase.php
. I have added a new patch for it.
Thanks @paulsheldrake, I have fixed it.
I have created a patch to try to fix this, after checking this:
🐛
User warning: Trying to overwrite a cache redirect with one that has nothing in common, old one at address
Active
.
Please review.
rpayanm → made their first commit to this issue’s fork.
Thanks @drunken monkey. That worked, I used Fulltext "edge"
. Could we add a description to this datatype so that someone knows, something like:
This data type represents a search field that enables partial word matching. It allows users to find results containing the specified keyword or substring within a larger text
Right now it says: Custom full text field.
There is a d11 version for this module, is this issue relevant?
Please review.
rpayanm → made their first commit to this issue’s fork.
Setting the uid to 1, because I had issues with private files.
I created a new patch based on the first one. Please review it.
rpayanm → changed the visibility of the branch 3477713-enabled_optional_attributes.includes-not-a-function to hidden.
rpayanm → made their first commit to this issue’s fork.
rpayanm → made their first commit to this issue’s fork.
Please review.
I try to fix this with this patch.
Or we can keep the keys in the $page variable.
I also added a validation to ensure that the end date is not earlier than the start date.
The code here worked for me:
https://www.drupal.org/project/drupal/issues/3072317#comment-14926967
✨
CKEditor embedded media previews do not render with attached assets
Active
function mymodule_support_preprocess_page(&$variables) {
if (\Drupal::service('router.admin_context')->isAdminRoute()) {
$variables['#attached']['library'][] = 'mymodule_support/ckeditor5_fixes';
}
}
document.body.addEventListener('click', (e) => {
// Prevent opening colorbox images in the current tab while in the editor.
if (e.target.parentElement.classList.contains('colorbox')) {
e.preventDefault();
}
});
Please review.
Hi @Grimreaper, thank you!
I tried this but I was unable to get it to work
I added this in my custom_theme.info.yml:
ckeditor5-stylesheets:
- /ui_styles/stylesheet.css?prefix=.ck-content
I got this error on Firefox:
The page isn’t redirecting properly
And ended up with this URL:
http://example.com/ui_styles/stylesheet.css?q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&prefix=.ck-content
If I change the URL in ui_styles/ui_styles.routing.yml
from /ui_styles/stylesheet.css
to /ui_styles/test
and visit that URL: http://example.com/ui_styles/test?prefix=.ck-content
I get the generated CSS right.
What I am doing wrong?
quietone → credited rpayanm → .
I got the issue on
Drupal v10.3.1
Gin Admin Theme 8.x-3.0-rc13
You can do it using this hook:
https://git.drupalcode.org/project/shs/-/blob/2.0.x/src/Plugin/views/fil...
$hooks = [
'shs_js_settings',
"shs_{$field_name}_js_settings",
"shs_{$this->view->id()}__{$identifier}_js_settings",
"shs_{$this->view->id()}__{$field_name}_js_settings",
"shs_{$this->view->id()}__{$this->view->current_display}__{$identifier}_js_settings",
"shs_{$this->view->id()}__{$this->view->current_display}__{$field_name}_js_settings",
];
// Allow other modules to override the settings.
\Drupal::moduleHandler()->alter($hooks, $settings_shs, $bundle, $field_name);
I applied the patch, and it worked fine, but this occurs when the dropdown is at the top:
I added a class to each element on this patch. Please review it.
We could compare them using "==" or apply the attached patch.