F
Filamentβ€’8mo 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β€’8mo ago
change your memory_limit = 2048M in php.ini
davedriesmans
davedriesmansβ€’8mo ago
In the past I had the Filament debugbar causing this. Maybe quickly try disabling?
Raziul Islam
Raziul IslamOPβ€’8mo ago
it is on production, debugbar is no issue here yeah but that is not proper solution
Forever
Foreverβ€’8mo 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 IslamOPβ€’8mo ago
This is happening on 1 page (resource index: table)
Forever
Foreverβ€’8mo ago
whats your table defintion
Raziul Islam
Raziul IslamOPβ€’8mo ago
Mark Chaney
Mark Chaneyβ€’8mo ago
What kind of hosting environment? Are you using pulse? When local, what does debug bar show about your queries?
Raziul Islam
Raziul IslamOPβ€’8mo 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β€’8mo ago
Are you running Octane?
Raziul Islam
Raziul IslamOPβ€’8mo ago
no, I was thinking to use octane but decided not to
Mark Chaney
Mark Chaneyβ€’8mo ago
@Raziul Islam how big are you paginated sizes? just the default 10? something else is going on
Raziul Islam
Raziul IslamOPβ€’8mo ago
here is another issue, I think it is for everyone
No description
Raziul Islam
Raziul IslamOPβ€’8mo 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β€’8mo ago
you put 50 as your max, right?
Raziul Islam
Raziul IslamOPβ€’8mo ago
@Dennis Koch Do you know anything about this?
Mark Chaney
Mark Chaneyβ€’8mo ago
dont allow sizes bigger than that
Raziul Islam
Raziul IslamOPβ€’8mo ago
100 as max
Mark Chaney
Mark Chaneyβ€’8mo 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 IslamOPβ€’8mo ago
around 20 users at a time
Dennis Koch
Dennis Kochβ€’8mo ago
I have seen this before. Not sure why it happens though
Raziul Islam
Raziul IslamOPβ€’8mo ago
is there any way to set default pagination limit? I want to remove 'ALL' from the pagination list
Mark Chaney
Mark Chaneyβ€’8mo ago
all isnt even availably by default
Mark Chaney
Mark Chaneyβ€’8mo ago
also, its "Complaints", not "Complains" πŸ˜‰
Raziul Islam
Raziul IslamOPβ€’8mo ago
No description
Mark Chaney
Mark Chaneyβ€’8mo ago
you added all, its not availably by default
Raziul Islam
Raziul IslamOPβ€’8mo 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β€’6mo ago
i have the same proplem, are you solved ? @Raziul Islam
Want results from more Discord servers?
Add your server