2

I've been trying to create a simple Symfony 2.5 Project with HWI Oauth bundle .

The projects works perfectly on my local Windows Machine I managed to do facebook Oauth Authentification

But i uploaded my project to an Openshift server and i keep getting this error

" PHP Fatal error: Class 'HWI\Bundle\OAuthBundle\HWIOAuthBundle' not found in /var/lib/openshift/5395dfb2500446b159000374/app-root/runtime/repo/symfo/app/AppKernel.php on line 21"

Same problem with a personnal debian server . I can't update my project with composer because of that , neither can I do

php composer.phar install

Both are blocked . So i did a new project from sractch , added the package to the composer.json , and did a composer install on the server . Still same problem .

I tend to think either it's a case sensitive problem , but i double-checked and i can't find where. Or either I need to register this bundle somewhere else in my project . But i have no idea where .

Also when i Push my project with git to my openshift server , the whole project gets uploaded , but not the HWI Bundle . I dont know why ... composer.json

4

1 回答 1

0

终于解决了我的问题。

事情是这样的,

当我用 GIT GUI 上传我的项目时,git 没有上传自定义包。因此,symfony 和内核本身都找不到这些包。

为了解决这个问题,我通过Openshift的本教程将SFTP 与FileZila连接起来

通过 SFTP 成功登录后,在 repo 下上传您的完整项目

/应用程序根

/回购

/mysymfony 项目


因为它是通过 SFTP 完成的,所以上传非常慢(对我来说是 1 小时)
一旦完成,只需通过 SSH 连接到您的终端并重新启动所有设备。

ctl_all restart

你的项目工作得很好

于 2014-06-11T23:00:37.923 回答