Http 500 error. Please help

Http error 500 please help! im using laravel, This is my site

https://shoperecom.000webhostapp.com/

Look again, there’s an error showing up :slight_smile:

Hi there,

I just changed to php version 5.4 from 7.

Now this is the error:
Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /storage/ssd2/743/6249743/public_html/index.php on line 51

this is line 51:
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

There is no error in console, but my site won’t show up. why?

can anyone help me, im new to 000webhost…

Hi @ocean_tammy!

Please follow this tutorial to successfully deploy your Laravel App into 000webhost site:

1 Like

Hi teodor,

Thank you for your guide. It is really helpful!!

But i still have problem.
https://shoperecom.000webhostapp.com/

Can you tell why so? I really have no idea. I checked every files and database. It should be okay.

Can you take a zip of your working local copy and upload it to your public_html folder?

1 Like

Yes i can and have done all the steps provided by @teodor.

but i still have a problem. What do you suggest i should do to fix it?

https://shoperecom.000webhostapp.com/

1 Like

Have you uploaded the zip yet?

1 Like

Yes i have just now. What’s next?

Sorry & the working local database?

1 Like

Yes i just uploaded it in public_html folder…

https://nerdjunction.net/

Thank you so much!! but why does the link name changed? how do you changed it?

So I uploaded your archive, extracted, moved public into root and renamed public_html
Opened env and changed the database details to my newly created database where I imported your database file
Opened my site and it seems to work

1 Like

I’ve uploaded this onto a Hostinger account and it seems to be working fine for some reason :frowning:

1 Like

I’m going to retry the process with a fresh 000webhost account and see if it works also…

1 Like

Hmm same process different end result

Something not quite wanting to work on 000wh

1 Like

Turned on debug

1 Like