ClearCacheService::createUrl(): Argument #2 ($id) must be of type string

Created on 23 May 2023, over 1 year ago
Updated 20 October 2023, about 1 year ago

Problem/Motivation

Many NGINX log errors:
PHP message: TypeError: Drupal\ccos\ClearCacheService::createUrl(): Argument #2 ($id) must be of type string, null given, called in /web/modules/contrib/ccos/ccos.module on line 110 in /web/modules/contrib/ccos/src/ClearCacheService.php on line 140

Steps to reproduce

Go to /contact page (the Contact module page).

Proposed resolution

For Contact page the $params is array('contact_form' => null), details is in function ccos_menu_local_tasks_alter
Need to check that. Patch is attached.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇷🇺Russia ru.bsv Omsk

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

Comments & Activities

Production build 0.71.5 2024