F
Filament10mo ago
Ali

cpanel 404 error

Hi there, My project was functioning correctly on my local environment, but when I deployed it on the Cpanel server, the /admin page was giving a 404 error. I realized that it wasn't detecting the service providers (as I had experienced in previous projects). So, I added these service providers to the list of providers in the config/app.php file: Filament\FilamentServiceProvider::class, Filament\Forms\FormsServiceProvider::class, Filament\Tables\TablesServiceProvider::class, Filament\Widgets\WidgetsServiceProvider::class, Filament\Support\SupportServiceProvider::class, Filament\Actions\ActionsServiceProvider::class, Filament\Infolists\InfolistsServiceProvider::class, Filament\Notifications\NotificationsServiceProvider::class, After doing that, the 404 error was resolved, but I encountered a 500 error, and I've attached its image. Could you please guide me on how to proceed? Thanks
No description
3 Replies
cheesegrits
cheesegrits10mo ago
You shouldn't have to add those service providers. There's something wrong at a deeper level than Filament. You should probably figure that out before trying to debug anything else.
Ali
Ali10mo ago
@Hugh Messenger Yes, that's correct. I'm here to identify the root cause. How can we go about figuring it out?
cheesegrits
cheesegrits10mo ago
No idea. Doesn't sound like a Filament problem. Sounds like a deployment issue. Maybe try a composer dump autload by hand on the prod server.