Flyspray - The bug killer!

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Backend/Core
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Low
  • Reported Version 1.0-rc9
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Flyspray - The bug killer!
Opened by peterdd - 02.09.2019
Last edited by peterdd - 02.09.2019

FS#2569 - after deleting the last existing project some php warnings show up

PHP: 7.2.*

If you just delete the last existing project in a Flyspray installation (like directly deleting the default project after install), Flyspray shows some php warnings on the following pages like:

Notice: Undefined variable: prs in /***/index.php on line 215
Warning: array_filter() expects parameter 1 to be array, null given in /***/index.php on line 215
Warning: Invalid argument supplied for foreach() in /***/includes/class.backend.php on line 1548
Warning: Invalid argument supplied for foreach() in /***/themes/CleanFS/templates/header.tpl on line 17
Warning: count(): Parameter must be an array or an object that implements Countable in /***/themes/CleanFS/templates/links.tpl on line 43
Warning: count(): Parameter must be an array or an object that implements Countable in /***/themes/CleanFS/templates/links.tpl on line 119
Warning: count(): Parameter must be an array or an object that implements Countable in /***/themes/CleanFS/templates/links.tpl on line 141

After creating at least 1 new project again all is back to normal. Neverless these warnings should be correctly fixed. (not just by silencing php warnings)

Closed by  peterdd
02.09.2019 05:18
Reason for closing:  Fixed in devel

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing