symfony - Symfony2 deploy failure vendor/autoload.php -


i have deployed symfony2 application shared hosting server local machine. used git pull followed composer install , chmoded app/cache , app/logs permissions 777.

each time run application following error:

[2016-02-06 18:55:43] request.critical:
uncaught php exception symfony\component\debug\exception\fatalerrorexception:
"compile error: require(): failed opening required 'vendor/autoload.php'
(include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php')" at
/home/tdarlic/public_html/magniblu/users/src/appbundle/controller/defaultcontroller.php line 5 {"exception":"[object]
(symfony\component\debug\exception\fatalerrorexception(code: 0): compile
error: require(): failed opening required 'vendor/autoload.php'
(include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') @ /home/tdarlic/public_html/magniblu/users/src/appbundle/controller/defaultcontroll er.php:5)"} []

i managed fix entering full path autoload.php:

require '/home/tdarlic/public_html/magniblu/users/vendor/autoload.php'; 

i tried

../../../vendor/autoload.php 

and

../../vendor/autoload.php require __dir__.'../../vendor.autoload.php'; 

and still cannot figure out how keep autoload file link loading correctly on development machine , on server. ideas how solve this?

similar issue can found on: why autoload.php of composer doesn't work?


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -