- Issue created by @mortona2k
- 🇺🇸United States mortona2k Seattle
When I installed the module, it complained about being unable to install a field config.
comment.comment.field_stick_comment_on_top_boole
Looks like the Comment comment type is missing.
- 🇮🇳India dineshkumarbollu
Hi @mortona2k
I tested the issue in my system, after installation won't get any error.Drupal 10.1
php 8.2 - 🇮🇳India Jasjeet Kaur Brar
@mortona2k, I have installed the module with version 2.0 And the module was installed successfully as you can see in my attached screenshot link here: https://prnt.sc/9sLuVEV8B163
** I am using Drupal Version 10.2. I have installed module using composer . Can you please let me know if it is a version specific issue with Drupal ? And Thank You. - 🇺🇸United States mortona2k Seattle
Drupal 10.2.4
PHP 8.2
Comment On Top 2.0.0The problem is that the comment comment type comes from the standard install profile, so other people might have it set up differently.
The quick fix would be to copy that config into optional, that way it will be included on install, but not override it if it exists.
The larger issue is that this module is dependent on specific comment and field configuration that you may not want to replicate. A deeper fix would be to allow you to choose which comment to activate and that adds the setting for it. Otherwise it's going to break if things aren't set up exactly the same.
But, I think this module is a great idea and I hope it keeps growing.
- 🇧🇦Bosnia and Herzegovina drale01 Sarajevo
Drupal 10.2.2
PHP 8.1.27I tried to provoke this error, but without success.
I will try more when I have more time. - 🇺🇸United States mortona2k Seattle
Try installing with the minimal install profile, that should trigger it.
- 🇧🇦Bosnia and Herzegovina drale01 Sarajevo
@mortona2k, you were right.
A temporary solution for this problem on a minimal installation is before installing the comment_on_top module:
1. Enable core comment module
2. Go to /admin/structure/comment
3. Make new comment type with exact name "comment"After that comment_on_top with minimal version 2.0.1 can be installed.
As I said, this is a temporary solution and it needs deeper analyses to fixing this issue.
Since this opens a new problem, the module works with only one correctly named comment type.