Laravel Forge 500 Internal Server Error - php

I have updated the git repository (developer branch - this is the only branch on the repo) and deploy on Forge but I am getting 500 Internal Server Error
.env configurations are correct (database, username, password and other configs.)
Also, PHP version on the server is 7.2 and this same site has worked before When I made the last push (changes: routes and controller functions) it started showing the error.
I read this question but even after following these steps the 500 error is showing!
Any suggestion how can I solve this issue!?
PS: I am new to Forge!

i know this is a very late reply i had the same issue
check your routes something is conflicting

Related

Laravel site suddenly not working, and I need help interpreting error messages

I have a Laravel project which was working up to a few days ago, but now isn't. I think it's a config problem, but I am far from being knowledgeable about such things. Here's what I do know:
The project is still running correctly on our server. Another developer has a working local copy on his PC. It's the local copy on my PC that isn't working.
When I try to run the local site from Laragon, I get this error message:
This page isn’t working right now
site.test can't currently handle this request.
HTTP ERROR 500
The Laragon error logs don't contain anything that I can decipher as useful information. Windows Event Viewer gives me this error:
The description for Event ID 4 from source PHP-7.4.30 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
php[127824]
PHP Fatal error: Exception thrown without a stack frame (C:\laragon\bin\apache\httpd-2.4.54-win64-VS16\bin\httpd.exe -d C:/laragon/bin/apache/httpd-2.4.54-win64-VS16)
The message resource is present but the message was not found in the message table
The project uses PHP v 7.4.30 and MySQL for a database.
What does this error mean? How do I fix it?
Any help will be greatly appreciated.
I have deleted and recreated the project, and also uninstalled and reinstalled Laragon. Neither made any difference. The site simply will not load.

Unable to create lockable file Laravel

PHP version : 8.0.27
Laravel version : 9.45.1
I'm create a laravel project and upload it into shared hosting server (cpanel). That server already have some my other running project also with different laravel versions. After upload use above mention version project itkeep getting this error
Unable to create lockable file: /home/xxxxxx/domain_name/storage
/framework/cache/data/a0/52/a052c710b70b9dc1cc66e7710af44867198f74e1. Please ensure you
have permission to create files in this location.
If this error occurred all other laravel project on that server getting same error. Also can't going to change php version page on cpanel provide. That page also getting error message. I'm tired with solution on this post given solution. But it only works for limited time. If I clear the cache today it works without error but next day it getting this error again. Is their any permanent solution for this?

Deploying Laravel Application on Cloudways error

I'm trying to deploy my local host laravel project to a live Cloudways Digitalocean server. I have done a SSH transfer from bitbucket to deploy the app but am getting the following error when I try to view the live app. Stripe is not causing any issues on the local host.
"Class 'Laravel\Cashier\CashierServiceProvider' not found"
I've also created a seperate .env file and uploaded it to the server using the server database variables. Can anyone advise if this is the correct procedure?
I've found it really difficult to find any tutorials on how to deploy a Laravel app to a live environment. If anyone has encountered this issue or could point me in the right direction to fix this error it would be much appreciated.

Can't understand SocketJS Error

I'm currently developping a project with a Symfony API (version 3 with PHP 7.1) and a NodeJS Client with Angular 4.
Within the local environment, everything is working well, but when I try to deploy on the production server, I get the error "WDS Disconnected" and a connection error with sockjs.
I don't know where the error comes from.
Have you ever encountered this kind of error and have you got an idea on how to fix it ?
Thanks a lot.
caption of the error

OneAuth Blank Callback

I'm using Laravel and OneAuth to build a web application. The user can sign in with his/her Twitter or GitHub account.
This actually works perfectly on my local dev server (with the exception of GitHub because the callback URLs don't match localhost), but when I've uploaded it to production, I get a blank page (/connect/callback/twitter).
Anyone else experienced this with OneAuth?
There are no errors in the error log, and the page has a 200 status code.
Local server:
Mac OS X 10.8
MAMP
PHP 5.4
Production:
CentOS 5
Apache + PHP 5.3
Yeah i had this problem and the work around for this is to manually register your controller instead of doing ,
Route::controller(Controller::detect());
Do this,
Route::controller('connect');
FYI: If you are using nested controller the order in which you register matters.

Categories