Three different errors displayed

Created on 26 September 2023, 9 months ago
Updated 5 June 2024, 20 days ago

Problem/Motivation

3 errors displayed after enabling Visitors module with PHP 8.1.22

  1. Warning: Undefined array key "_cvar" in Drupal\visitors\Service\TrackerService->write() (line 112 of /modules/contrib/visitors/src/Service/TrackerService.php)
  2. Deprecated function: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in Drupal\visitors\Service\TrackerService->write() (line 112 of /modules/contrib/visitors/src/Service/TrackerService.php)
  3. Warning: foreach() argument must be of type array|object, null given in Drupal\visitors\Service\TrackerService->write() (line 113 of /modules/contrib/visitors/src/Service/TrackerService.php)

Steps to reproduce

Install and enable Visitors module 8.2.16 on PHP 8.1.22 on Drupal 9.5.11

📌 Task
Status

Fixed

Version

2.16

Component

Code

Created by

🇲🇾Malaysia akmalfikri

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024