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?
Thanks3 Replies
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.
@Hugh Messenger Yes, that's correct. I'm here to identify the root cause. How can we go about figuring it out?
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.