将我的本地存储库推送到github后发生了什么? [英] What happened after pushing my local repository to github?
问题描述
我有一个关于git的Symfony演示库,我正在试验。在我试图将它推送到github之前,它在 localhost
上运行得很好(参见我之前的问题注册)。
据我所知,Symfony捆绑包在 然而,由于symfony演示网站不再有效,它肯定会改变一些东西 CRITICAL - 未捕获到的PHP异常Twig_Error_Runtime:在呈现模板期间抛出异常(Symfony \ Component \ Intl \DateFormatter\IntlDateFormatter :: __ construct()方法参数$ locale值NULL行为未实现。只支持语言环境en。请在第22行的admin / blog / index.html.twig中安装用于完整本地化功能的intl扩展。)在/ProjectsI/symfony_demo/app/cache/dev/classes.php第4697行 我试过 我按照建议添加了下面的代码,但是我仍然得到下面的错误: 中。 gitignore
并且不包含在远程仓库中,但是我不知道为什么我的本地仓库不再有效 - 我仍然可以看到所有本地目录,例如 / vendor / b
localhost
一旦我尝试登录到后端,我就会得到:
php app / console doctrine:fixtures:load
以及重新启动Apache服务器,但没有运气。
$ b 更新:
参数:
#此参数定义在应用程序中启用的语言环境(语言)的代码
app_locales:en | fr | de | es | cs | ru | uk | ro | pt_BR
语言环境:en
-
DEBUG - SELECT t0.id AS id1,t0.title AS title2,t0.slug AS slug3,t0.summary AS summary4,t0.content AS content5,t0.authorEmail AS authorEmail6,t0 .publishedAt AS publishedAt7 FROM Post t0
-
CRITICAL - 未捕获到的PHP异常Twig_Error_Runtime:在渲染模板期间抛出异常(The Sym fony\Component\Intl\DateFormatter\IntlDateFormatter :: __ construct()方法的参数$ locale value NULL行为未实现。只支持语言环境en。请在第22行的admin / blog / index.html.twig中安装用于完整本地化功能的intl扩展。)在/Projects/symfony_demo/app/cache/dev/classes.php第4697行
我提出的关于bug被解决的评论似乎只是一个更新来处理它。然而,为了解决这个问题,我发现我需要安装php5-intl扩展:
$ b
Ubuntu: sudo apt-get install php5-intl
$ b Fedora / Cent操作系统:
sudo yum install php-intl
...然后重新启动apache2服务器: sudo service apache2 restart
I have a Symfony-demo repository on git which I am experimenting with. It was all running fine on localhost
until I tried pushing this to github (see my earlier question here if relevant).
I understand that Symfony bundles are in .gitignore
and not included in the remote repository, however I can't figure out why my local repository would no longer be working - I still see all the local directories such as /vendor/
for example so would have thought nothing locally would have changed.
However, it must have changed something as the symfony demo site no longer works on localhost
once I try logging in to the backend I get:
CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("The Symfony\Component\Intl\DateFormatter\IntlDateFormatter::__construct() method's argument $locale value NULL behavior is not implemented. Only the locale "en" is supported. Please install the "intl" extension for full localization capabilities.") in "admin/blog/index.html.twig" at line 22." at /ProjectsI/symfony_demo/app/cache/dev/classes.php line 4697
I have tried php app/console doctrine:fixtures:load
as well as restarting the apache server but no luck there either.
Update:
I added the below line as suggested however, I still get the below errors:
parameters:
# This parameter defines the codes of the locales (languages) enabled in the application
app_locales: en|fr|de|es|cs|ru|uk|ro|pt_BR
locale: en
DEBUG - SELECT t0.id AS id1, t0.title AS title2, t0.slug AS slug3, t0.summary AS summary4, t0.content AS content5, t0.authorEmail AS authorEmail6, t0.publishedAt AS publishedAt7 FROM Post t0
CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("The Symfony\Component\Intl\DateFormatter\IntlDateFormatter::__construct() method's argument $locale value NULL behavior is not implemented. Only the locale "en" is supported. Please install the "intl" extension for full localization capabilities.") in "admin/blog/index.html.twig" at line 22." at /Projects/symfony_demo/app/cache/dev/classes.php line 4697
The comment I made about the bug being fixed - seems that will just be an update to deal with it. However, to fix the problem at source I found that I needed to install the php5-intl extension:
Ubuntu: sudo apt-get install php5-intl
Fedora/Cent OS: sudo yum install php-intl
...and then restart the apache2 server: sudo service apache2 restart
这篇关于将我的本地存储库推送到github后发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!