Hello, thanks for the good work for the community!
If I deploy this patch I have a new error. If i go to the page /backend/modules/uninstall then the website reports "The website encountered an unexpected error. Try again later.".
A peek in the page /backend/reports/dblog (the log) I find this:
Error: Call to undefined method Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\Ds::setContainer() in Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\BootstrapLayoutsHandlerBase->__construct() (line 22 of /home/map/public_html/modules/contrib/bootstrap_layouts/src/Plugin/BootstrapLayouts/BootstrapLayoutsHandlerBase.php).
I am not a coder so I hope you can do something about it. Thanks.
Marcel
After Drupal update to 10.2.5 a XML sync with a other system was broken.
With the patch above
- $response->headers->set('Content-Length', strlen($content), TRUE);
+ $response->headers->set('Content-Length', strlen($content)+2, TRUE);
AND set ' Header always unset Content-Length ' in the .htaccess
And things are working again :-}
https://www.drupal.org/project/drupal/issues/3419024#comment-15539269 🐛 Incorrect content-length header breaks HTTP/2 with net::err_http2_protocol_error Active
Thanks @Carlitus for reporting and make a solution.
#35 + issue https://www.drupal.org/project/drupal/issues/3432990 🐛 Content-length incorrect and response truncated in web servers Active works for me.
1. Set 'Header always unset Content-Length' in the .htaccess AND
2. Patch /public_html/core/lib/Drupal/Core/StackMiddleware/ContentLength.php #48:
From: $response->headers->set('Content-Length', strlen($content), TRUE);
To: $response->headers->set('Content-Length', strlen($content)+2, TRUE);
Thanks @longwave and the referrer to issues #3432990
Marcel
patch #17 is working for me too - thanks!
@savage2003 thanks for your work. I patched the AssetOptimizer.php and the messages do not apper anymore.
#14 works for me.
Thanks,
Marcel
Installed patch #5 and the error went away
I had a similar error:
"Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. Valid plugin IDs for Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginManager are: access_denied, display_page, page_not_found, page_redirect in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (regel 53 van .../core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php)."
This error was always after I logged in as admin. After I visit and saved the settings on the page in rabbit-hole -> user settings this disappears. I repeat this and is working in my case.
Go to: /admin/config/content/rabbit-hole then on entity-type 'user' -> settings ( or direct to /admin/config/content/rabbit-hole/user )
click save on that page. Check, problem solved!
I had a similar error:
"Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. Valid plugin IDs for Drupal\rabbit_hole\Plugin\RabbitHoleBehaviorPluginManager are: access_denied, display_page, page_not_found, page_redirect in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (regel 53 van .../core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php)."
This error was always after I logged in as admin. After I visit and saved the settings on the page in rabbit-hole -> user settings this disappears. I repeat this and is working in my case.
Go to: /admin/config/content/rabbit-hole then on entity-type 'user' -> settings ( or direct to /admin/config/content/rabbit-hole/user )
click save on that page. Check, problem solved!
+1 => Patch #17 solves my problem :-) Thanks!
Confirm patch #3 works.
Setup Drupal 10.1.1 + PHP 8.1
Thanks!!
Ok, there is a solution! issue #3335356 🐛 Fix Drupal 10 compatibility issues with Bootstrap Layout Builder Fixed seems a duplicate. I patched my setup with issue_3335356_drupal10.patch and now things are working!
Little update.. I've tried a new install with the composer.json as above since it is a couple of weeks ago I run into this issue. I see lots of improvements, bud unfortunately for this case nothing is changed.
Anybody?
I was investigating to solve this problem. I strumbled over two patches of the module "Media Library Form API Element":
1.
https://www.drupal.org/files/issues/2023-01-25/deprecated-explode-327727... →
2.
https://www.drupal.org/files/issues/2023-05-10/check-default-value-not-a... →
After installing these the bootstrap tags changed: now I get a " class="col-lg-6 col-md-12 col-12". So the first tag is changed now.
This is a small improvement.. bud only the first tag is now changed, the others are still wrong; (col-md-12 col-12) i clicked for "Tablet" or "Mobile" also on "Two equal columns". Bud that is still not working..
And Unfortunately, the first tag is still not working correctly; when I change it to ' 25% 75% ' then when I save the changes the columns change back to Two equal columns.
When I click on "desktop", "Tablet" or "Mobile", after a click on either of these, the error " Deprecated function: substr() " still appear in the log messages.
Deprecated function: substr(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\bootstrap_layout_builder\Entity\Breakpoint->getClassByPosition() (line 124 of /home/realisterwb/public_html/modules/contrib/bootstrap_layout_builder/src/Entity/Breakpoint.php)
Hello @mcdruid,
You are totally right! This post was not mended for this thread. I did something wrong, sorry!
MLZR
After install "Imagefield Slideshow" and edit the Imagefield in the Layout Builder: first time seem to save. Bud the settings are not saved. So I go back to LayoutBuilder and tje Image Slideshow settings. When save I have this error (ajax.form.ajaxSubmit is not a function).
After the patching with this patch the error dissapeared.
Thanks for the good work!
Marcel
Thanks slydevil,
This is occuring on a site so I reported it. I saw your reaction; tested with drupal 10. Bud I use version 9.
I installed a fresh Drupal 9, make a 404 page and set /admin/config/system/site-information point to the 404 page I just created.
The problem don't appear. So I think this has something to do with my specific setup and/or settings.
I investigate on that install.
Thank you for your quick response and effort,
MLZR
Maybe this is a double of #3318161
I do not use Advanced CSS/JS Aggregation (installed, bud not activated).
After 'composer update' I would login as admin to run /update.php, bud the site locked me out. I can't login in any way. So go back with a backup and removed the antibod module, then update all and run /update.php after set "$settings['update_free_access'] = TRUE;" and delete the caches (local and server/drupal).
So far so good. Now install antibod again, expected it shoud work as normal. Bud guess what.. same problem! :-}
Again go back with a backup, remove antibot, update all (with composer), install antibot bud now as suggested in issue #3318161 #4 in /admin/config/user-interface/antibot remove ' user_login_form '. Now it kind of works, bud the user-login form is not protected anymore, and this is one who is important to protect..
When locked out this message is displayed:
"You have reached this page because you submitted a form that required JavaScript to be enabled on your browser. This protection is in place to attempt to prevent automated submissions made on forms. Please return to the page that you came from and enable JavaScript on your browser before attempting to submit the form again."
And I see this warning in the log of Drupal (maybe this help to resolve this issue):
Warning: Undefined array key 1 in Drupal\Core\Asset\AssetResolver->getJsSettingsAssets() (line 199 of /home/realister/public_html/core/lib/Drupal/Core/Asset/AssetResolver.php)
So for now it works bud whithout the protection of the user login page.
Drupal 9.5.3. - antibot 2.0.2 - PHP 8.1
Hello, I have the site + environment updated and all modules new installed. This problem occurred again (see #25) and again I applied the patch #14. This works (again).. top.
the environment now is PHP 8.1, Drupal 9.5.2, and Bootstrap 8.x-3.25 - DS 8.x-3.15 new installed (so I had to patch again)
The patch don't want to apply:
wget
https://www.drupal.org/files/issues/2023-01-07/ds-module-updated.patch →
patch -p1 < ds-module-updated.patch
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.
After this experience I did the change/patch by hand. The problem is gone. So the solution works! Top!
I don't know why the patch won't apply. What I know is when opening the file in linux with nano I see garbage. Nano says "(Converted from Mac format) ". When I open the file in the hosting (cpanel environment) I can't read the content also. I don't know what's going on.
Thanks for making this patch so fast.
Marcel
# 195 works for me, untill now without side effects.