Http 500 error. Please help


#1

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

https://shoperecom.000webhostapp.com/


#2

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


#3

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);


#4

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


#5

can anyone help me, im new to 000webhost…


#6

Hi @ocean_tammy!

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


#10

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.


#11

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


#12

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/


#13

Have you uploaded the zip yet?


#14

Yes i have just now. What’s next?


#15

Sorry & the working local database?


#16

Yes i just uploaded it in public_html folder…


#17

https://nerdjunction.net/


#18

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


#19

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


#20

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


#21

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


#22

Hmm same process different end result

Something not quite wanting to work on 000wh


#23

Turned on debug