Closed (fixed)
Project:
LLM support
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2026 at 17:38 UTC
Updated:
23 Apr 2026 at 11:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gillesbailleuxUsing Drupal CMS 2.1.0, Drupal AI 1.3.3 and PHP 8.4.20, I tried to install the "AI LLM Optmized Content" recipe via the Package Manager.
The following error has been displayed:
SandboxException: Failed to run process: The command "'/usr/bin/php' '/home/drupalcms/public_html/cms/vendor/composer/./composer/bin/composer' '--working-dir=/home/drupalcms/tmp/.package_managerbd422b8f-af63-4994-93ff-6bee6a225a27/r6Hvduqraa3A8csP0XRWymCojKa5YDN9' 'update' '--with-all-dependencies' '--optimize-autoloader' '--minimal-changes' 'drupal/ai_recipe_llm_optimized_content'" failed. Exit Code: 2(Misuse of shell builtins) Working directory: /home/drupalcms/public_html/cms/web Output: ================ Error Output: ================ Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires drupal/ai_recipe_llm_optimized_content ^1.0 -> satisfiable by drupal/ai_recipe_llm_optimized_content[1.0.0]. - drupal/ai_recipe_llm_optimized_content 1.0.0 requires drupal/llm_support ^1.0.4 -> satisfiable by drupal/llm_support[1.0.4]. - drupal/llm_support 1.0.4 requires php ~8.1.6 || ~8.2.0 || ~8.3.0 -> your php version (8.4.20) does not satisfy that requirement.This confirms the need to add
|| ~8.4.0in the composer.json file in order to install this recipe but also others which are displayed on /admin/modules/browse/ai_dashboard_recommendedComment #4
mxr576Fixed, I am sorry, I completely missed this issue somehow.
1.0.5 is out.
Comment #6
mxr576Comment #7
gillesbailleux@mxr576: thank you very much
Awaiting this latest release (performing a composer update -W does not work yet and nothing appears in /admin/reports/updates/update)
Comment #8
gillesbailleuxThis did the update:
Unfortunately, a project_browser error mentions this:
TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given, called in /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 238 in Drupal\Component\Utility\Html::escape() (line 433 of /home/drupalcms/public_html/cms/web/core/lib/Drupal/Component/Utility/Html.php).Comment #9
christophweber commentedI have encountered the same error when trying to install AI LLM Optimized Content recipe from /admin/modules/browse/ai_dashboard_recommended. I don't think this is an issue with llm_support recipe or AI LLM Optimized Content recipe, but rather the Project Browser (which is still experimental).
The logs show that llm_support 1.0.5 is installed, and in the next step project browser itself throws the error:
Warning: Undefined array key 0 in Drupal\project_browser\Activator\RecipeActivator->activate() (line 138 of /var/www/html/web/modules/contrib/project_browser/src/Activator/RecipeActivator.php)
I get the same error when trying to install AI Guardrails Prompt Safety from the UI.
I am doing all this from a CMS 2.0 install on which core and contrib have all been updated to tjhe latest versions.
Comment #10
christophweber commentedUpdate:
composer updatefrom the command line resolved the issue.What it did was to bring in a whole bunch of symfony dependencies, plus cleanly installed the code for all attempted recipes. After that, all recipe installs from /admin/modules/browse/ai_dashboard_recommended succeed.
Of course, Project Browser should not necessitate command line work with composer, but at least you now have a workaround for the bug.
Comment #11
gillesbailleux@christophweber: the recipe has also been installed after performing a
composer update -Wcommand. The errors we both faced were due to a package manager/Drupal CMS issue.Comment #12
gillesbailleux@christophweber: the recipe is installed (see recipe-installed.png)