I recently upgraded our buildbox to phpUnderControl 0.5.0 being really curious about new CodeBrowser feature. And indeed CodeBrowser addon is really cool (see Manuel Pichler announcement on his site for details), but after the upgrade I found Metrics tab broken. Instead of nice shiny graphs it showed me Java exception like this:
It took me a while to figure out what caused this strange behaviour. I have found the answer when I have run graph generation manually:
#> phpuc graph logs/PHPUnit-3.5/ artifacts/PHPUnit-3.5/
It returned pretty instantly the following error:
The value '1' that you were trying to assign to setting 'labelCount' is invalid. Allowed values are: int > 1.
A little bit of googling and I actually found the answer, again on Manuel Pichler site, in the comments for the announcement.
Basically with phpUnderControl 0.5.0 a file has been released called ClassComplexityInput.php. It is not ready yet to generate a graphs (I suspect it’s gonna be a graph representing class complexity), but phpUnderControl goes through all available input processors to generate graphs for the metrics page.
Fix in that case is pretty trivial, just remove the file (it’s in phpUnderControl/Graph/Input/ directory) and voila – your graphs are back!