500 | SERVER ERROR appeared after uploading file to shared hosting.
I am facing problem on live server. It was working perfectly on localhost but when I upload file shared hosting it is started showing 500 | SERVER ERROR. My folder path is like this ; \home\himalipa\public_html\mycurrentdomain.com.
500 is internal server error, often happends, when php get fatal error. @tray2 meant, can u check your error.log and post here error, if u cant solve it?
[2021-02-22 02:27:37] production.ERROR: Trait 'App\Traits\createdBy' not found {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Trait 'App\Traits\createdBy' not found at /home/himalipa/public_html/mavirajhena.edu.np/app/Models/Welcome.php:9)
[stacktrace]
#0 {main}
"}
This is the problem I got on error log. I checked on line number 9 on the welcome.php model but there is createdBy exists.
Perhaps try and repeat the same action in your local environment since the APP_DEBUG variable should be false.
I was having this same issue and it was because whenever I stored a blog post I always had to include an image, the logic in the method would tell you that, there was no if statement in place so it was always expecting an image no matter what.