The Aggregator HTML format had been deleted, but it's still not possible to enable Aggregator.
No. Still unable to install it. See the screenshots attached.
Error message
Unable to install Aggregator, filter.format.aggregator_html already exists in active configuration.
Should I install drush again to the site (domains/helan123.com/public_html/m) that has the problem of Aggregator?
I forgot to tell you that I had deleted the aggregator html format already but the problem still couldn't be solved. Then I tried thrush.
Do you mean to uninstall Aggregator from the UI?
The problem is that Aggregator cannot be enabled, I can't find it in the Uninstall list of the UI.
Okay I will try running vendor/bin/drush cdel filter.format.aggregator_html
But I don't understand why run drush to delete somthing in public_html (root)? because no problem to enable Aggregator in this site.
Should I install drush again to the site (domains/helan123.com/public_html/m) that has the problem of Aggregator?
Where to run drush?
I use composer to install drush in public_html:
composer require --dev drush/drush
Execute the following command to check:
./vendor/bin/drush --version
Drush Commandline Tool 12.5.2.0
I ran drush but got commad not found:
drush cdel filter.format.aggregator_html
-bash: drush: command not found
drush doesn't work?
Yes, I have run composer in public_html:
composer2 require "drupal/aggregator:^2.2"
I checked it at the site backend. The Aggregator module is available in every D10 site (the code is available to install on all the domains). I can enable Aggregator of the D10 site in the root public_html. It looks that composer works well. But I don't need Aggregator for this site.
Then For the site (m.helan123.com) that I need install Aggregator, I go to Extent/Web services, check Aggregator and click on Install. The module cannot be enabled but I get the message:
Error message
Unable to install Aggregator, filter.format.aggregator_html already exists in active configuration.
What's wrong?
I copy the content of composer.json here. I see the line "url": "https://packages.drupal.org/8". It seems for D8.
Anything wrong to use it for D10?
{
"name": "drupal/legacy-project",
"description": "Project template for Drupal projects with composer following drupal/drupal layout",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "
https://www.drupal.org/project/drupal →
",
"support": {
"docs": "
https://www.drupal.org/docs/user_guide/en/index.html →
",
"chat": "
https://www.drupal.org/node/314178 →
"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^2.0",
"drupal/aggregator": "^2.2",
"drupal/core-composer-scaffold": "^10.2",
"drupal/core-project-message": "^10.2",
"drupal/core-recommended": "^10.2",
"drupal/core-vendor-hardening": "^10.2"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"allow-plugins": {
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"drupal/core-vendor-hardening": true,
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"php-http/discovery": true
},
"sort-packages": true
},
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "./"
}
},
"installer-paths": {
"core": [
"type:drupal-core"
],
"libraries/{$name}": [
"type:drupal-library"
],
"modules/contrib/{$name}": [
"type:drupal-module"
],
"profiles/contrib/{$name}": [
"type:drupal-profile"
],
"themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"modules/custom/{$name}": [
"type:drupal-custom-module"
],
"profiles/custom/{$name}": [
"type:drupal-custom-profile"
],
"themes/custom/{$name}": [
"type:drupal-custom-theme"
]
},
"drupal-core-project-message": {
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
" ",
" Congratulations, you’ve installed the Drupal codebase ",
" from the drupal/legacy-project template! ",
" ",
"",
"Next steps:",
" * Install the site:
https://www.drupal.org/docs/installing-drupal →
",
" * Read the user guide:
https://www.drupal.org/docs/user_guide/en/index.html →
",
" * Get support:
https://www.drupal.org/support →
",
" * Get involved with the Drupal community:",
"
https://www.drupal.org/getting-involved →
",
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
}
}
}
Yes, Aggregator is in core before D10 that's easy for me to use without installing and updating myself. I have several old version Drupal sites with Aggregator. Now it's difficulty to install with D10. I like using this module and maybe often need to install and update it. I'm a Drupal fan use use it from D4 to D10. I'm not a techical of Drupal, So I need find a good solution.
Now I have 2 sites of D10 with different domains, and more new Drupal sites in the future that share the composer system on Hostinger. But I need using composer to install Aggregator and other extent modules for a single site.
So I want to know where to run:
composer2 require "drupal/aggregator:^2.2"
It can only install the module to the site:
domains/helan123.com/public_html/m
Is there any solution?
Okay, I will update the file permissions and try it again.
I don't like the Aggregator module is downloaded to multiple Drupal sites that don't need this module. If install the Aggregator module to the specific site, Is there any solution?
Should I copy composer.json file to the Drupal directory and run composer there?
I run composer in the public_html:
composer2 require "drupal/aggregator:^2.2"
I can see the message:
...
In Filesystem.php line 284:
Could not delete /home/.../public_html/sites/default/default.services.yml:
...
Is it something wrong?
Run composer2 show in the public_html(not a root of Drupal), I can see it lists:
...
drupal/core 10.2.6
drupal/core-composer-scaffold 10.2.6
drupal/core-project-message 10.2.6
drupal/core-recommended 10.2.6
drupal/core-vendor-hardening 10.2.6
...
But the public_html directory is not the root of my Drupal site where I want to install modules. Is it possible to run composer here?
I have multiple Drupal sites hosted in the same Hostinger account, they are in other directories like:
domains/drupalsite1.com/public_html
domains/drupalsite2.com/public_html
domains/drupalsite2.com/public_html/subsite
Now I want install Aggregator to the subsite:
domains/helan123.com/public_html/m
Where do I run composer to install the Aggregator module to the specific site?
I don't know how to share composer.json file. You can tell me how to.
My sites hosted on Hostinger. I logged in to SSH and I can see 2 folders in the root:
domains
public_html
I can find composer.json under the public_html
My Drupal 10 site is installed to the subdomain m.helan123.com, I can go to the folder:
domains/helan123.com/public_html/m
where do I run composer to install the Aggregator module?
Yes, I can see composer.json under the root.
By the way, my Drupal 10 site is on a subdomain. I went to the subdomain folder and use composer:
composer2 require "drupal/aggregator:^2.2"
Anything wrong?
I tried using composer to install Aggregator via SSH:
composer2 require "drupal/aggregator:^2.2"
But I got the message: No security vulnerability advisories found
It cannot complete installation. What's wrong?
I didn't use composer to install it. The Drupal site is hosted on Hostinger. I installed Aggregator by Add new module of Extent at the site backend.