AiContentSuggestions class removed but file still exists

Created on 7 August 2025, 5 days ago

Problem/Motivation

In the 1.2.x branch of the AI module, the class Drupal\ai_content_suggestions\Hook\AiContentSuggestions appears to have been removed as part of the changes introduced in
#3528684 โœจ Add processor and field widget assist plugin system to AI Content Suggestions Active . However, the corresponding file
modules/contrib/ai/modules/ai_content_suggestions/src/Hook/AiContentSuggestions.php still exists as an empty file. Noticed this while running a functional test.

This results in a fatal error during test runs:

RuntimeException: The autoloader expected class "Drupal\ai_content_suggestions\Hook\AiContentSuggestions" to be defined in file "/var/www/html/web/modules/contrib/ai/modules/ai_content_suggestions/src/Hook/AiContentSuggestions.php". The file was found but the class was not in it, the class name or namespace probably has a typo.

The class is still present in the 1.1.x branch, so this seems to be either an accidental deletion.

Steps to reproduce (required for bugs, but not feature requests)

Proposed resolution

  • Either fully remove the file AiContentSuggestions.php if it is no longer needed and ensure all references to the class are removed.
  • Or restore the class definition if it is still required and was removed by mistake.

Remaining tasks

  • Confirm whether the class was intentionally removed.
  • Based on the outcome, either restore the class or remove the file and references entirely.

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

๐Ÿ› Bug report
Status

Active

Version

1.2

Component

AI Content Suggestions

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia sijumpk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024