mandatory parameters are missing ("commitishPath") to generate a URL for route "tree" #295

Closed
nodiscc opened this Issue Mar 30, 2013 · 3 comments

Projects

None yet

2 participants

nodiscc commented Mar 30, 2013

I have this problem after upgrading my previous gitlist install to the latest master from gitlist.org (download the tarball, unpack it to the existing gitlist directory, set permissions)

Whenever I enter a repository from gitlist's main page, it shows an error message: Oops! An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("commitishPath") to generate a URL for route "tree".") in "tree.twig" at line 46. and doesnt display the repo contents.

Apache log shows [Sat Mar 30 13:43:09 2013] [error] [client 88.165.23.157] PHP Notice: Undefined offset: 0 in /var/www/gitlist/vendor/klaussilveira/gitter/lib/Gitter/Repository.php on line 170

Owner

Have you cleared the cache folder?

nodiscc commented Mar 30, 2013

I've just cleared the cache/ folder contents as you suggested. Now gitlist wouldnt even list repositories and throws:
Oops! An exception has been thrown during the rendering of a template ("Parameter "branch" for route "rss" must match "(?!/|.*([/.]\.|//|@\{|\\))[^\040\177 ~^:?*\[]+(?<!\.lock|[/.])" ("" given) to generate a corresponding URL.") in "index.twig" at line 13.

Apache log:
[Sat Mar 30 19:05:45 2013] [error] [client 88.165.23.157] PHP Notice: Undefined offset: 0 in /var/www/gitlist/vendor/klaussilveira/gitter/lib/Gitter/Repository.php on line 170

Owner

I recommend you stick to 0.3 until we fix a bug involving repositories with no branches: #291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment