Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Error in Twig Template #27

Closed
garyee opened this issue Aug 16, 2017 · 10 comments
Closed

Error in Twig Template #27

garyee opened this issue Aug 16, 2017 · 10 comments
Labels

Comments

@garyee
Copy link

garyee commented Aug 16, 2017

Hi,

so I forked and build gitlist locally for development.
When I updated my fork to the newest commit (3ad4f03), I'am getting this error:

Twig_Error_Runtime in layout.twig line 6: Neither the property "request" nor one of the methods "request()", "getrequest()"/"isrequest()" or "__call()" exist and have public access in class "GitList\Application".

Did I do something wrong?

@PABourdin
Copy link

Hi @garyee , sorry, I was working on master.
Could you try again either with the restored master? Thank you.

We should define, if we consider "master" as stable or development branch.
@alehaa I guess your like to have "master" as stable and do development in feature branches?

@PABourdin
Copy link

@garyee Ahh, I see now you were trying the current HEAD on master.

Can you give me some quick instructions on how to build GitList into a production environment so that I can reproduce and fix the problem? Thank you!

@PABourdin
Copy link

I see now the README warns:
"Do not download a branch or tag from GitHub, unless you want to use the development version"
So "master" should be considered a development branch.
We may of course change that...

@alehaa
Copy link
Member

alehaa commented Aug 16, 2017

We should define, if we consider "master" as stable or development branch.
@alehaa I guess your like to have "master" as stable and do development in feature branches?

master is, what is currently running and tested. Features will be developed in separated branches (in forks) and send as PR back to this repo, where we will test and merge them. From time to time we will release new versions as tags. I think there will be packed versions with all dependencies, too.

@alehaa
Copy link
Member

alehaa commented Aug 16, 2017

However, this bug seems to be a bug. ;)

@alehaa alehaa added the bug label Aug 16, 2017
@PABourdin
Copy link

It is indeed a bug. I'm on it and have now a development built up and running.
How do I reproduce the above error?

@PABourdin
Copy link

Before I fix it, we should create a test case for this problem.
How can I do this - or could someone else do it?

@garyee
Copy link
Author

garyee commented Aug 17, 2017

Hi, okay so I have an xampp on windows 7 running with Apache 2.4.x and php 7.1.2.
I just cloned from master HEAD and did composer install.

I did try to find the source of the problem but I'm fairly new to symfony and the dependency-injection stuff, so I did not succeed.

@PABourdin
Copy link

Sorry, I can't reproduce the issue here with PHP 5.5.9 on Linux. "ant" fully works for me.

@DannyvdSluijs
Copy link

This is probably due to the BC break overlooked. PR #36 fixes the BC break, where request has been replaced with request_stack. Looking at the original report this is related.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants