unraid / unraid/webgui

scripts/notify PHP Fatal error: Uncaught TypeError:

Open
#1,659 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
253
Forks
106
Avg merge
6d 22h
Merged PRs (30d)
12

Description

Never noticed I had notifications being saved to flash. If I disable this, these errors stop.

This is showing in the phplog file every three seconds:

[09-Mar-2024 21:02:42 America/Chicago] PHP Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /usr/local/emhttp/plugins/dynamix/scripts/notify:236 Stack trace: #0 /usr/local/emhttp/plugins/dynamix/scripts/notify(236): date('m-d-Y H:i', '') #1 {main} thrown in /usr/local/emhttp/plugins/dynamix/scripts/notify on line 236

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect scripts/notify at line 236 and trace the value passed to date(), especially when notifications are saved to flash. Reproduce the issue with flash notifications enabled and verify that the phplog no longer reports the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.