Conflict with AI SEO tools module

Created on 24 February 2025, about 2 months ago

Problem/Motivation

When this module is installed, and the AI SEO β†’ module is enabled, attempting to generate an SEO report fails, with this message in the Watchdog log:

Error: Call to undefined method Drupal\Core\Form\FormAjaxException::getStatusCode() in matomo_page_attachments() (line 73 of /var/www/html/modules/contrib/matomo/matomo.module

This happens because Matomo assumes any exception attached to the request is an HttpException, but during the Ajax callback used by AI SEO, there is a FormException thrown instead.

Steps to reproduce

See above.

Proposed resolution

Check for the existence of the getStatusCode method before calling it.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States freelock Seattle

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