Hello

I am currently learning the laravel and filament I created a demo dashboard and every time i tried to create a new record of any model/table through the dashboard the redirection of the edit page just falls after minutes it redirects also after that long redirection time the whole app starts crashing in every route within filament dashboard tried and tired of AI responce it is solving the issue 🙂
No description
No description
24 Replies
Matthew
Matthew3mo ago
have you got that running in proper debug mode? Start DD'ing throughout the steps, see where it hangs
Dennis Koch
Dennis Koch3mo ago
Start by enabling the debug mode to get better error messages: APP_DEBUG=true in your .env file
Parth_Chohala
Parth_ChohalaOP3mo ago
hey @Dennis Koch It was true at first but then I disabled it and even doing that is not helping also how can I get rid of this screen error it wont go of without server restarting or new tab opening . what can be cause of it I can't find it out
No description
Dennis Koch
Dennis Koch3mo ago
So it looks like your first request is fine. That's why you can see the dashboard. Then some background request takes forever and leads to that error dialog. Can you open the DevTools, go to network tab and reload the page? Then look for that long running request that fails and check the URL and/or payload
Parth_Chohala
Parth_ChohalaOP3mo ago
@Dennis Koch as I can se the /admin/ceos/6 is generating the problem but do you think that after one api call fail the whole application can start malfunctioning as i shared first screen shorts ? also I tried in different browser but same situation can I share code with you so you can be more clear ?
No description
No description
Dennis Koch
Dennis Koch3mo ago
What is that page doing? If the whole apps fails after that, it sounds like a long running/stuck DB query. You can check via mysql CLI by running SHOW FULL PROCESSLIST Also: I don't know your setup, but if it only allows 1 PHP connection at a time, that means a long running requests can block the next ones.
Parth_Chohala
Parth_ChohalaOP3mo ago
@Dennis Koch but how can i find out about it ?? and also I remember in morning whenever I am trying to access the routes it said memory full or something like that so i changes the php.ini file and increased the memory limit up to 2 gb ....
Parth_Chohala
Parth_ChohalaOP3mo ago
@Dennis Koch see even the first load is taking more then 2 mins
No description
Matthew
Matthew3mo ago
Post your create file, and can have a look.
Dennis Koch
Dennis Koch3mo ago
Share the AccountResource and maybe the Account model
Parth_Chohala
Parth_ChohalaOP3mo ago
these are the resource fils I am using
Parth_Chohala
Parth_ChohalaOP3mo ago
@Dennis Koch @Matthew Or I personally suggest you to just create new laravel project and Add filament Add a resource and try it if it is behaving the same because i didn't do anything else then this and still having the problem
Dennis Koch
Dennis Koch3mo ago
Can you make sure you are using the latest filament version? I have seen similar reports but with memory limits.
Parth_Chohala
Parth_ChohalaOP3mo ago
@Dennis Koch Yes I am using letest stable version "v3.3.0" also I was having the same issue of memory limits but i exceeded the memory limit by 1 gb I though it was a minor issue
krekas
krekas3mo ago
3.3.0 isn't latest version
Parth_Chohala
Parth_ChohalaOP3mo ago
@krekas I know but it is letest stable version so that's why I am using it ....
Jyrki
Jyrki3mo ago
Latest stable release is v3.3.31. Previous releases have a memory issue because of a Laravel update
Dennis Koch
Dennis Koch3mo ago
That's probably your composer constraint, not the actual version
Parth_Chohala
Parth_ChohalaOP3mo ago
@Jyrki Thank you for your guidance Got frustrated whith that and also thank you every one who tried to help @Dennis Koch @Matthew @krekas
Dennis Koch
Dennis Koch3mo ago
What's the output of artisan about --only=filament
Parth_Chohala
Parth_ChohalaOP3mo ago
This is what i got but it got solved when i changes the version to 3.3.31
No description
Dennis Koch
Dennis Koch3mo ago
Okay, you are on the latest version then. That's all just standard stuff, so I don't see any issues here. Your whole app looks a bit broken though. What local dev environment are you using? I'd suggesting trying Herd for Windows and see whether those problems persist.
Parth_Chohala
Parth_ChohalaOP3mo ago
@Dennis Koch It got solved the version was creating the issue
Dennis Koch
Dennis Koch3mo ago
Oh didn’t read the second part.

Did you find this page helpful?