Closed pavkatar closed 11 years ago
I can't replicate this at all, can you do a step by step on how to recreate the error?
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 :)
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?
Closing due to lack of feedback. Feel free to reply if this is still an issue.
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.
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.