Working fine in local environment but fail on server

I got all working well accept RelationManager . It just does not work and return this error. I tried different ways changing class name, run php artisan optimize:clear etc, nothing help. It works on local environment but return error on server. File and database updated to the same correctly. Other parts are working fine just this simple Relation Manager does not work. #RelationManager
No description
No description
No description
No description
No description
7 Replies
Povilas K
Povilas K3mo ago
Your error page design looks like it's coming from older Laravel version. So maybe you have older Laravel/PHP version on the server? Another guess: maybe your local server is Windows and remote is Linux and there is some difference in filenames upper/lowercase?
zenepay
zenepay3mo ago
Hi, Thank you for suggestion. It is Laravel Version 10. Uploading to system via git. The servers are both Linux Ubuntu 22 . The only different is the local environment refer to root domain: dev.localhost/ but the server refer to sub directory zoploen.com/demo/waterbill/ . I had fixed issues with Livewire for all other cases. But this case is very strange. It happen to RelationManger. However, only particular to WaterReceiptsRelationManager I tried to change its filename, clasess names, still doesn't help. Tried to rebuild composer dump-autoload still does not help. Even I create new RelationManager class with fresh default config, it still does not work. I hope there is any hack way for this.
Povilas K
Povilas K3mo ago
Yeah, no idea then, can't help without deeper debugging
krekas
krekas3mo ago
clear the cache resources are cached
krekas
krekas3mo ago
might be this problem
Majid Al Zariey
Majid Al Zariey3mo ago
Double check the file is added to git and is pulled on server
Want results from more Discord servers?
Add your server
More Posts