PHP Error "Filename: tasks.tpl.php"
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 755
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
In https://test.openml.org/api/v1/json/task/list/offset/605/limit/5/status/active there are some PHP errors starting with
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Undefined offset: 9</p>
<p>Filename: json/tasks.tpl.php</p>
<p>Line Number: 31</p>
Contributor guide
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
Start by requesting the listed task API URL and inspect json/tasks.tpl.php at line 31, where the undefined offset is reported. Trace the data returned for the affected tasks and compare it with the template's expected fields. Done means the endpoint no longer emits the PHP notice for the affected range, with an appropriate test or reproduction check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100