codeday / old-codeday-site

www.codeday.org website
https://codeday.org
13 stars 4 forks source link

Composer.json fails to autocompile class loaders after cloning #13

Closed rodrigoargumedo closed 9 years ago

rodrigoargumedo commented 9 years ago

I recently forked this repo and cloned into my VM. So, when I did composer install to install Laravel and its required dependencies. Just after the components were successfully installed and generate autoload files, Composer complains that some files don't even exist that is required to continue:

 {"error":{"type":"ErrorException","message":"file_get_contents(\/home\/ubuntu\/workspace\/app\/config\/local.json): failed to open stream: No such file or directory",
 "file":"\/home\/ubuntu\/workspace\/app\/config\/app.php","line":3}}
 {"error":{"type":"ErrorException","message":"file_get_contents(\/home\/ubuntu\/workspace\/app\/config\/local.json): failed to open stream: No such file or directory","file":"\/home\/ubuntu\/workspace\/app\/config\/app.php","line":3}}

Is there a way to fix this problem? @tylermenezes

tylermenezes commented 9 years ago

Yeah, you need a config file for the app to start properly. I just added a sample config, can you get it working with that?

(There are also a few other things you need to do, install.sh will do them / tell you what to do.)

rodrigoargumedo commented 9 years ago

@tylermenezes: Now, it basically complains Time Zone is invalid, re-specify it in /home/ubuntu/workspace/vendor/laravel/framework/src/Illuminate/Foundation/start.php.

Full error log:

{"error":{"type":"ErrorException","message":"date_default_timezone_set(): Timezone ID '' is invalid","file":"\/home\/ubuntu\/workspace\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/start.php","line":167}}
tylermenezes commented 9 years ago

That's usually an indication that there's a problem parsing the local.json file. (Ideally this should throw a proper error message...) Can you check your local.json file with an online JSON checker?

tylermenezes commented 9 years ago

(Note that I think you need to remove the comments for it to be a proper JSON file.)

rodrigoargumedo commented 9 years ago

Oh, I will check it out tomorrow and see it if resolves for me.

Sent by Outlook for Android

On Thu, May 21, 2015 at 7:35 PM -0700, "Tyler Menezes" notifications@github.com wrote: (Note that I think you need to remove the comments for it to be a proper JSON file.)


Reply to this email directly or view it on GitHub: https://github.com/StudentRND/CodeDay/issues/13#issuecomment-104479534

rodrigoargumedo commented 9 years ago

@tylermenezes It works. Closing this issue.

rodrigoargumedo commented 9 years ago

file_get_contents(http://clear.codeday.dev/api/regions/nearby?lat=47&lng=-122&limit=1&with_current_event=1&access_token=&secret=): failed to open stream: Connection refused @tylermenezes Is this Clear related stuff?

rodrigoargumedo commented 9 years ago

I'm not using Vagrant or anything fancy.

tylermenezes commented 9 years ago

Yes, there's two things going on there: