prospero's avatar

Livewire pagination!

Someone can tell me, if passing a value to paginate like, eg. 500 (->paginate(500)) can receive an HTTP ERROR 500??? I have dropdown for bulk with 100, 500 and All options values. For the 100 and All everything works well, but on 500 the browser pop up a black screen and in console I get:

Failed to load resource: the server responded with a status of 500 ()

If I change the dropdown values, like 100, 200, 300, all work well too.

I can't figure out what this is about... Thanks in advance!

Edit: the All option, not refer to retreive all the db records. It's related to an initial value and a loading more function on scroll!

0 likes
2 replies
Snapey's avatar

sounds like you ran out of memory. The logs might help.

Install laravel debugbar to help track memory usage and detect n+1 issues

prospero's avatar

@Snapey you're totally right. The Laravel log registered a memory limit issue. I have never used debugbar package before. Do you think it would be necessary in this case?

Please or to participate in this conversation.