Skip to content

[Bug] mktime(): Argument #1 ($hour) must be of type int, string given in /mnt/efs/plugins/VisitTime/functions.php line 18 #21677

@nodomain

Description

@nodomain

What happened?

When opening the visitor time report for the current year, it breaks with this error message.

index.php?module=CoreHome&action=index&idSite=1&period=day&date=today#?period=year&date=2023-12-13&idSite=1&category=General_Visitors&subcategory=VisitTime_SubmenuTimes

mktime(): Argument #1 ($hour) must be of type int, string given in /mnt/efs/plugins/VisitTime/functions.php line 18

It works fine for day, week and monthly period for December but breaks in November.

I initialized my instance in November, so perhaps this is related.

What should happen?

The report should work without issues.

How can this be reproduced?

Go to Matomo -> click on visitors -> click on times and select the first month of your Matomo installation.

Matomo version

4.16.0

PHP version

8.1.26

Server operating system

AWS ECS Docker php:8.1-apache

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge, Other

Computer operating system

Mac

Relevant log output

n/a

Validations

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions