openml / openml/OpenML

PHP Error "Filename: tasks.tpl.php"

Open
#505 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.