Old PHP version. Error is caused by this: http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class
Why i cannot show my laravel project in free hosting?
when i upload my laravel 5 project in free hosting , this error show
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/vol9_3/byethost17.com/b17_16720900/htdocs/laravel/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 380
Please help me!
Your free hosting probably has a PHP version lower then 5.5.9! As you can see Laravel needs that to run properly
Server requirements: http://laravel.com/docs/5.1#installation
They are running unsupported PHP versions and in PHP5.4 class name resolution doesn't exist yet.
https://byet.host/free-hosting
Free Hosting Plan: Along with all this, we provide free FTP, PHP 5.4, MySQL and our very popular feature:
Boo.
Well as you can see, everyone is pointing you to the same problem! If you actually had read the installation guide you wouldn't have this problem!
Thanks everyone to suggest me. Any free hosting site that have php 5.5.9 ?
Heroku is a good one: https://www.heroku.com/
How about Linode.com. i know they're not free, however they are rather good for not much money.
DO do $5 monthly. Almost like free, or a price of a sandwich https://www.digitalocean.com/pricing/
You can use Laravel 5.0 instead of 5.1 and you'll be able to run it on your hosting, those versions are basically the same, there are some minor changes. Laravel 5.0 can work on PHP 5.4
@bobbybouwmann , would you show any screenshot of heroku when upload laravel project. it is difficult to upload. when open browser it's shows error.
Just follow some tutorial: https://mattstauffer.co/blog/installing-a-laravel-app-on-heroku
@bobbybouwmann I follow this tutorial but show- Whoops, looks like something went wrong! and in console- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Please help me!
my log file is
heroku logs
[36m2015-10-06T20:14:59.715851+00:00 heroku[api]:[0m Enable Logplex by eliyas.ru1991@gmail.com
[36m2015-10-06T20:14:59.715851+00:00 heroku[api]:[0m Release v2 created by eliyas.ru1991@gmail.com
[36m2015-10-06T20:15:24.194659+00:00 heroku[api]:[0m Set BUILDPACK_URL config vars by eliyas.ru1991@gmail.com
[36m2015-10-06T20:15:24.194694+00:00 heroku[api]:[0m Release v3 created by eliyas.ru1991@gmail.com
[36m2015-10-06T20:18:06.780803+00:00 heroku[api]:[0m Scale to web=1 by eliyas.ru1991@gmail.com
[36m2015-10-06T20:18:06.845461+00:00 heroku[api]:[0m Deploy 2c5baa8 by eliyas.ru1991@gmail.com
[36m2015-10-06T20:18:06.845461+00:00 heroku[api]:[0m Release v4 created by eliyas.ru1991@gmail.com
[33m2015-10-06T20:18:06.925975+00:00 heroku[slug-compiler]:[0m Slug compilation started
[33m2015-10-06T20:18:06.925996+00:00 heroku[slug-compiler]:[0m Slug compilation finished
[32m2015-10-06T20:18:15.111941+00:00 heroku[web.1]:[0m Starting process with command vendor/bin/heroku-php-apache2 public
[32m2015-10-06T20:18:21.430322+00:00 app[web.1]:[0m DOCUMENT_ROOT changed to 'public/'
[32m2015-10-06T20:18:21.504255+00:00 app[web.1]:[0m Optimizing defaults for 1X dyno...
[32m2015-10-06T20:18:21.816005+00:00 app[web.1]:[0m 4 processes at 128MB memory limit.
[32m2015-10-06T20:18:23.097136+00:00 app[web.1]:[0m Starting php-fpm...
[32m2015-10-06T20:18:25.287872+00:00 app[web.1]:[0m Starting httpd...
[32m2015-10-06T20:18:26.033007+00:00 heroku[web.1]:[0m State changed from starting to up
[35m2015-10-06T20:18:27.956968+00:00 heroku[router]:[0m at=info method=GET path="/" host=frozen-dawn-1547.herokuapp.com request_id=6bed6c24-2ae0-42b7-a982-e90d81402e5c fwd="58.97.178.155" dyno=web.1 connect=51ms service=225ms status=500 bytes=4784
[32m2015-10-06T20:18:27.960849+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:18:27 +0000] "GET / HTTP/1.1" 500 4519 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:18:28.575532+00:00 heroku[router]:[0m at=info method=GET path="/favicon.ico" host=frozen-dawn-1547.herokuapp.com request_id=73af2053-e561-45e2-8ee4-0b73a330e2a6 fwd="58.97.178.155" dyno=web.1 connect=11ms service=2ms status=200 bytes=245
[32m2015-10-06T20:18:28.575957+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:18:28 +0000] "GET /favicon.ico HTTP/1.1" 200 - "https://frozen-dawn-1547.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:18:51.813488+00:00 heroku[router]:[0m at=info method=GET path="/" host=frozen-dawn-1547.herokuapp.com request_id=5223f1ce-04ee-4d7d-b1df-2297f8123527 fwd="58.97.178.155" dyno=web.1 connect=1ms service=70ms status=500 bytes=4784
[32m2015-10-06T20:18:51.783644+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:18:51 +0000] "GET / HTTP/1.1" 500 4519 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:18:52.361888+00:00 heroku[router]:[0m at=info method=GET path="/favicon.ico" host=frozen-dawn-1547.herokuapp.com request_id=8a490804-d9df-4dcf-a222-83432477843c fwd="58.97.178.155" dyno=web.1 connect=1ms service=3ms status=200 bytes=245
[32m2015-10-06T20:18:52.362605+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:18:52 +0000] "GET /favicon.ico HTTP/1.1" 200 - "https://frozen-dawn-1547.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[32m2015-10-06T20:19:11.493865+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:19:11 +0000] "GET / HTTP/1.1" 500 4519 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:19:11.492657+00:00 heroku[router]:[0m at=info method=GET path="/" host=frozen-dawn-1547.herokuapp.com request_id=6f41f109-a1f8-4a84-a067-13500bd6cbd5 fwd="58.97.178.155" dyno=web.1 connect=1ms service=49ms status=500 bytes=4784
[35m2015-10-06T20:19:11.979119+00:00 heroku[router]:[0m at=info method=GET path="/favicon.ico" host=frozen-dawn-1547.herokuapp.com request_id=f4021ca0-d6d3-4a51-a0f1-72ccc021d504 fwd="58.97.178.155" dyno=web.1 connect=1ms service=1ms status=200 bytes=245
[32m2015-10-06T20:19:11.987220+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:19:11 +0000] "GET /favicon.ico HTTP/1.1" 200 - "https://frozen-dawn-1547.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:19:17.410386+00:00 heroku[router]:[0m at=info method=GET path="/" host=frozen-dawn-1547.herokuapp.com request_id=792148cf-f155-46cf-a0d7-a889e0e9c209 fwd="58.97.178.155" dyno=web.1 connect=1ms service=32ms status=500 bytes=4784
[32m2015-10-06T20:19:17.411338+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:19:17 +0000] "GET / HTTP/1.1" 500 4519 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:19:17.938373+00:00 heroku[router]:[0m at=info method=GET path="/favicon.ico" host=frozen-dawn-1547.herokuapp.com request_id=503792e3-7f72-4eac-8ebf-e24a5d7d62ee fwd="58.97.178.155" dyno=web.1 connect=2ms service=2ms status=200 bytes=245
[32m2015-10-06T20:19:17.939276+00:00 app[web.1]:[0m 10.65.203.5 - - [06/Oct/2015:20:19:17 +0000] "GET /favicon.ico HTTP/1.1" 200 - "https://frozen-dawn-1547.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[32m2015-10-06T20:25:54.015970+00:00 app[web.1]:[0m 10.159.155.105 - - [06/Oct/2015:20:25:54 +0000] "GET / HTTP/1.1" 500 4519 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:25:54.017706+00:00 heroku[router]:[0m at=info method=GET path="/" host=frozen-dawn-1547.herokuapp.com request_id=9fa798e6-3b84-456a-aee3-c4e44903181e fwd="58.97.178.155" dyno=web.1 connect=1ms service=14ms status=500 bytes=4784
[32m2015-10-06T20:25:54.556064+00:00 app[web.1]:[0m 10.159.155.105 - - [06/Oct/2015:20:25:54 +0000] "GET /favicon.ico HTTP/1.1" 200 - "https://frozen-dawn-1547.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[35m2015-10-06T20:25:54.557845+00:00 heroku[router]:[0m at=info method=GET path="/favicon.ico" host=frozen-dawn-1547.herokuapp.com request_id=0837c49e-9366-48f0-96c8-af9b4e5707b9 fwd="58.97.178.155" dyno=web.1 connect=2ms service=2ms status=200 bytes=245
[35m2015-10-06T20:25:58.233362+00:00 heroku[router]:[0m at=info method=GET path="/" host=frozen-dawn-1547.herokuapp.com request_id=a2545543-3d25-4cef-83e5-d4b285f2266f fwd="58.97.178.155" dyno=web.1 connect=1ms service=24ms status=500 bytes=4784
[35m2015-10-06T20:25:58.765106+00:00 heroku[router]:[0m at=info method=GET path="/favicon.ico" host=frozen-dawn-1547.herokuapp.com request_id=ecd60a2b-f24d-4af7-8a74-ee9ec9b12b6d fwd="58.97.178.155" dyno=web.1 connect=1ms service=1ms status=200 bytes=245
[32m2015-10-06T20:25:58.764102+00:00 app[web.1]:[0m 10.159.155.105 - - [06/Oct/2015:20:25:58 +0000] "GET /favicon.ico HTTP/1.1" 200 - "https://frozen-dawn-1547.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
[32m2015-10-06T20:25:58.221129+00:00 app[web.1]:[0m 10.159.155.105 - - [06/Oct/2015:20:25:58 +0000] "GET / HTTP/1.1" 500 4519 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 UBrowser/5.4.5426.1034 Safari/537.36
for this oopps message.. check if the permission with the folder /storage are set to correctly... i have had this problem many time already...
Please or to participate in this conversation.