Blank page after pulling from git repository

Hey, it’s me again! :D

I have a problem with my Yii2 application. When i’m uploading it from local to my webserver everything works fine. But when i’m commiting and pushing my application into my git repository it is not working after i pulled it on my webserver.

There is only a white blank screen.

My .gitignore





After i’ve pulled the code from the git repository i’m running composer install to get all the extensions.

Is there anything wrong with this steps??


This is one of the errors in the error.log of my apache

[Fri May 08 08:45:47 2015] [error] [client xx.xx.xx.xx] PHP Fatal error:  Class 'yii\\base\\Component' not found in /var/www/myhost/vendor/yiisoft/yii2/base/Controller.php on                  line 28


When you "upload" your app manually (without git) are you uploading the contents of the vendor folder also?

Then for me the most probably reason for your problem is that composer is not installing everything correctly when you install your app from git.


  • Either you have a mistake / problems in your composer.json

  • Or somehting is not correct with your composer installation on your webserver.

Best regards

Yes you are right, I’m uploading the vendor folder also. ???

Maybe somebody can have a look at the composer.json?


    "name": "yiisoft/yii2-app-basic",

    "description": "Yii 2 Basic Application Template",

    "keywords": ["yii2", "framework", "basic", "application template"],

    "homepage": "",

    "type": "project",

    "license": "BSD-3-Clause",

    "support": {

        "issues": "",

        "forum": "",

        "wiki": "",

        "irc": "irc://",

        "source": ""


    "minimum-stability": "dev",

    "prefer-stable": true,

    "require": {

        "php": ">=5.4.0",

        "yiisoft/yii2": "*",

        "yiisoft/yii2-bootstrap": "*",

        "yiisoft/yii2-swiftmailer": "*",

        "yiisoft/yii2-jui": "~2.0.0",


        "2amigos/yii2-date-time-picker-widget" : "*",

        "2amigos/yii2-highcharts-widget": "~1.0",

	"webvimark/module-user-management": "*",

        "2amigos/yii2-google-maps-library" : "dev-master",

        "kartik-v/yii2-mpdf": "*",

        "kartik-v/yii2-grid": "*",

        "kartik-v/yii2-dynagrid": "*",

        "kartik-v/yii2-icons": "*",

	"kartik-v/yii2-krajee-base": "*"


    "require-dev": {

        "yiisoft/yii2-codeception": "*",

        "yiisoft/yii2-debug": "*",

        "yiisoft/yii2-gii": "*",

        "yiisoft/yii2-faker": "*",

        "insolita/yii2-migration-generator": "*"


    "config": {

        "process-timeout": 1800


    "scripts": {

        "post-create-project-cmd": [




    "extra": {

        "yii\\composer\\Installer::postCreateProject": {

            "setPermission": [


                    "runtime": "0777",

                    "web/assets": "0777",

                    "yii": "0755"



            "generateCookieValidationKey": [




        "asset-installer-paths": {

            "npm-asset-library": "vendor/npm",

            "bower-asset-library": "vendor/bower"




You could simply try / test if something is fishy with your composer installation on your server:


[*]Rename your project folder on your local dev machine. (that you have a working copy)

[*]Download your project from GIT to your dev machine. (like you would do on the server)

[*]Run composer update / install on your dev machine.

[*]See if the GIT-application is working on your dev machine.


If it works without any problems on your dev machine => there must be something wrong with composer itself on your sever.

Also you could check if you have the same compsoer version installed on dev and server.

Simply type in "composer" … you should receive something linke:

Hope this helps to make progress.


So i’ve made it a little bit different this time and it works! :)

I was not using the composer.phar on my server. Instead i was installing composer in another folder and added it to the PATH like mentioned on

For now this did the trick for me…we will see if this is working properly in the future. But i guess so…

Thanks for your help! :)

No problem you’re welcome.

Glad I could help.