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 K8mo 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?
Zen Nitiruj
Zen NitirujOP8mo 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 K8mo ago
Yeah, no idea then, can't help without deeper debugging
krekas
krekas8mo ago
clear the cache resources are cached
krekas
krekas8mo ago
might be this problem
Majid Al Zariey
Majid Al Zariey8mo ago
Double check the file is added to git and is pulled on server

Did you find this page helpful?