duanqing3026 2014-06-10 00:01
浏览 65
已采纳

Symfony2 - Openshift“PHP致命错误:类'HWI \\ Bundle \\ OAuthBundle \\ HWIOAuthBundle'未找到

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

  • 写回答

1条回答 默认 最新

  • doudun8705 2014-06-11 23:00
    关注

    Finally solved my problem .

    Here is the thing ,

    When i uploaded my project with GIT GUI , git didn't uploaded the custom bundles . Therefore , those bundle could not be found by symfony , and by the kernel itself .

    In order to resolve that , i connected trough SFTP with FileZila via this tutorial from Openshift

    After succesfuly logging trhough SFTP upload your full project under repo

    /app-root

    /repo

    /mysymfonyproject


    As it is done via SFTP the upload is extremly slow (1 hour for me)
    Once it is done , just connect via SSH to your terminal and restart all your gears.

    ctl_all restart
    

    Your project just works just fine

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 深度学习残差模块模型
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路
  • ¥15 差动电流二次谐波的含量Matlab计算
  • ¥15 Can/caned 总线错误问题,错误显示控制器要发1,结果总线检测到0
  • ¥15 C#如何调用串口数据
  • ¥15 MATLAB与单片机串口通信
  • ¥15 L76k模块的GPS的使用
  • ¥15 请帮我看一看数电项目如何设计
  • ¥23 (标签-bug|关键词-密码错误加密)