Flyspray - The bug killer!

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category User Interface
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 1.0-rc
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Flyspray - The bug killer!
Opened by Arthmoor - 02.11.2016

FS#2309 - PHP noticed displayed on default "All Projects" page.

I am seeing some noticed on the front page of our tracker install that were not present prior to updating to 1.0rc3.

Notice: Undefined offset: 1 in <redacted>/scripts/index.php on line 202 Notice: Undefined offset: 2 in <redacted>/scripts/index.php on line 202

It’s displaying the full path to the files on the page.

There are effectively 2 issues here. One is that some kind of error is kicking up. Second is that it’s being shown to anyone who visits the site.

Project Manager
peterdd commented on 06.11.2016 18:11

Maybe different tags (global or in different projects) defined with same name?

Arthmoor commented on 06.11.2016 22:22

We don't have any global ones, but users have put the same tag names into their reports for different projects.

Right now the bug isn't showing up on the front page so I'm not sure what to make of that.

Arthmoor commented on 26.11.2016 07:41

This issue cropped up again tonight.

The original code:

			for($i=0;$i< count($tags); $i++){
				$tgs.='<i class="tag t'.$tagids[$i]
					.(isset($tagclass[$i]) ? ' ' . $tagclass[$i] : '').'" title="'.$tags[$i].'"></i>';
			}

What I changed it to:

			for($i=0;$i< count($tags); $i++){
				if(isset($tagids[$i])){
					$tgs.='<i class="tag t'.$tagids[$i]
						.(isset($tagclass[$i]) ? ' ' . $tagclass[$i] : '').'" title="'.$tags[$i].'"></i>';
				}
			}

The problem is now gone and nothing seems to be out of place on the main page.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing