scripts/notify PHP Fatal error: Uncaught TypeError:
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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