F
Filamentβ€’3mo ago
Raziul Islam

Allowed memory size of 134217728 bytes exhausted

I've built an ecommerce website using Livewire and FilamentPHP for the admin panel. Everything works fine but after using the website for some time (specifically order management) the error raises. I have a doubt the issue is causing because of filamentphp πŸ˜₯ Can anyone assist me to find the issue?
No description
29 Replies
Jr.Pikong
Jr.Pikongβ€’3mo ago
change your memory_limit = 2048M in php.ini
davedriesmans
davedriesmansβ€’3mo ago
In the past I had the Filament debugbar causing this. Maybe quickly try disabling?
Raziul Islam
Raziul Islamβ€’3mo ago
it is on production, debugbar is no issue here yeah but that is not proper solution
Forever
Foreverβ€’3mo ago
memory_limit=256M should be enough otherwise you may be loading to much data at once OR you have an infinite loop
Raziul Islam
Raziul Islamβ€’3mo ago
This is happening on 1 page (resource index: table)
Forever
Foreverβ€’3mo ago
whats your table defintion
Mark Chaney
Mark Chaneyβ€’3mo ago
What kind of hosting environment? Are you using pulse? When local, what does debug bar show about your queries?
Raziul Islam
Raziul Islamβ€’3mo ago
using DigitalOcean VPS (64$/month) and the problem is occurring after using the website for a while so there is nothing in the logs related to db queries
Dennis Koch
Dennis Kochβ€’3mo ago
Are you running Octane?
Raziul Islam
Raziul Islamβ€’3mo ago
no, I was thinking to use octane but decided not to
Mark Chaney
Mark Chaneyβ€’3mo ago
@Raziul Islam how big are you paginated sizes? just the default 10? something else is going on
Raziul Islam
Raziul Islamβ€’3mo ago
here is another issue, I think it is for everyone
No description
Raziul Islam
Raziul Islamβ€’3mo ago
If my resource has badge then the queries are duplicated I am doubting this, I use on 10 or 50 but the moderators may be using big size
Mark Chaney
Mark Chaneyβ€’3mo ago
you put 50 as your max, right?
Raziul Islam
Raziul Islamβ€’3mo ago
@Dennis Koch Do you know anything about this?
Mark Chaney
Mark Chaneyβ€’3mo ago
dont allow sizes bigger than that
Raziul Islam
Raziul Islamβ€’3mo ago
100 as max
Mark Chaney
Mark Chaneyβ€’3mo ago
i would reduce that to 50. Duplicate queries isnt necessarily an issue. Thats going to happen. when you say used for awhile, what do you mean? How many simultaneous users do you have within the admin?
Raziul Islam
Raziul Islamβ€’3mo ago
around 20 users at a time
Dennis Koch
Dennis Kochβ€’3mo ago
I have seen this before. Not sure why it happens though
Raziul Islam
Raziul Islamβ€’3mo ago
is there any way to set default pagination limit? I want to remove 'ALL' from the pagination list
Mark Chaney
Mark Chaneyβ€’3mo ago
all isnt even availably by default
Mark Chaney
Mark Chaneyβ€’3mo ago
also, its "Complaints", not "Complains" πŸ˜‰
Raziul Islam
Raziul Islamβ€’3mo ago
No description
Mark Chaney
Mark Chaneyβ€’3mo ago
you added all, its not availably by default
Raziul Islam
Raziul Islamβ€’3mo ago
it is from the model πŸ˜… Will override it no I did not You can check the demo as well. All is there by default https://demo.filamentphp.com/shop/orders Thanks, applied this I had removed almost all the badges but had to keep a few but I want to resolve the duplicate queries
Miran
Miranβ€’2w ago
i have the same proplem, are you solved ? @Raziul Islam