© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
mohdaftab

Replication causes 500 internal server error

Hello,
I am using Replication with filament-fabricator and was facing this issue on production server whenever we created a replica page I made it redirect to the edit page but it always gave me 500 server error because the newly created page id was not found in routes somehow.
I figured I always had to run php artisan optimize:clear command to make that page work so I created an observer to run this command everytime the page is created and it works ok but some times the optimize doesn't work and my client gets 500 server error.

Please let me know if any of you have faced this situation on production server?
Also please let me know how do I fix this issue on production server?
The local server works great without any commands.

Thank you
Solution
turns out I extended the Page.php model and didn't copy the booted method to forget the Cache which was being created for routes, after I copied the booted method and cleared the cache on saved event then it works fine.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

500 Internal Server Error after instert / update
FilamentFFilament / ❓┊help
7mo ago
livewire/update - 500 Internal error
FilamentFFilament / ❓┊help
2y ago
500 server error after updating user model
FilamentFFilament / ❓┊help
2y ago
Filament notification 500 error
FilamentFFilament / ❓┊help
7mo ago