AI Content Suggestions getPrompt on null for Suggest taxonomy tags
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3567069. --> Reported by: [abelcain](https://www.drupal.org/user/1005486) >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>[One-line issue summary for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>Please provide information like AI modules enabled, which AI provider, browser, etc.</p> <p> We installed AI on a demo web site, activated AI Content Suggestions module, when we configured all, then we visited a node of News type, clicked on Suggest taxonomy tags but we got an error: </p> <p><code>Error: Call to a member function getPrompt() on null in Drupal\ai_content_suggestions\Plugin\AiContentSuggestions\Taxonomy-&gt;updateFormWithResponse() (line 193 of /var/www/html/web/modules/contrib/ai/modules/ai_content_suggestions/src/Plugin/AiContentSuggestions/Taxonomy.php)</code></p> <p>We checked a bit on that class and at line 193 we have: <code>$tax_prompt_id = $this-&gt;promptConfig-&gt;get($this-&gt;getPluginId() . '_open');</code></p> <p>This means that all the prompts we had are not considered. We copy-pasted the default prompt for the suggestions without using the taxonomy, then we activate it in the AI Content Suggestions settings page and all works fine</p> <p>Request: Is it possible that the "_open" part when mounting the name for the prompt is fishy?</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Check with developers (I'm Business analyst) if this is a fishy part that must be corrected or if it's done on purpose.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3>
issue