Error after upgrade V1 to V2

I have recently updated the laravel version of my project to version 8 and Livewire to version 2.36, but I have had problems in some components. For example:

I have a component that is called from another and a function that only redirects, but when entering the function it always returns the error: Allowed memory size of 134217728 bytes exhausted.

In this function I have just added this:
return redirect (route (‘see.class’, [$ this-> course-> alias, $ class-> id]));

I have tried several ways to redirect but it always happens the same.

Has it happened to someone else?

Hey, @luisvbz

the error Allowed memory size of 134217728 bytes exhausted. is php error not livewire, so you must look at php.ini depend on your OS and change memory_limit

For more info take a look here:
https://www.php.net/manual/en/ini.core.php#ini.memory-limit

Thank you very much for answering.

I know it’s a php bug. But I find it strange that it only throws me that error since I have upgraded to Livewire 2.3.6. I’d say it’s a Bug.

I don’t think this is a bug, and you need to bring more details about your code.

From the docs:

memory_limit int

This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. Note that to have no memory limit, set this directive to -1.