dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 441 forks source link

Uncaught exception in b8framework #74

Closed pavkatar closed 11 years ago

pavkatar commented 11 years ago

When try to reload last five builds in the dashboard we've got:

Fatal error: Uncaught exception 'b8\Exception\HttpException\BadRequestException' with message 'Invalid controller [\PHPCI\Controller\LatestController]: Latest does not exist.' in /var/www/vendor/block8/b8framework/b8/Application.php:87 Stack trace: #0 /var/www/vendor/block8/b8framework/b8/Application.php(66): b8\Application->initController() #1 /var/www/PHPCI/Application.php(30): b8\Application->initRequest() #2 /var/www/index.php(18): PHPCI\Application->handleRequest() #3 {main} thrown in /var/www/vendor/block8/b8framework/b8/Application.php on line 87

This error is returned by: http://HOSTNAME/index/latest request.

gabriel403 commented 11 years ago

I can't replicate this at all, can you do a step by step on how to recreate the error?

pavkatar commented 11 years ago

There is no step by step. When go to the dashboard, it is OK and load everything, but after a few secs, when you create ajax request for refreshing the "Last 5 builds", you've got the error. See the image :) captureexception

dancryer commented 11 years ago

I also can't replicate this. Do you have PHPCI installed in a sub-directory? Also are you certain you're up-to-date with the latest PHPCI and b8framework versions?

dancryer commented 11 years ago

Closing due to lack of feedback. Feel free to reply if this is still an issue.

roylindauer commented 11 years ago

It's because MultiViews is enabled in Apache. With MultiViews, "index" will match index.php, and the ajax request to /index/latest will fail, as it will be rewritten to /index.php/latest, hence why it is trying to load the Latest controller.