YoTosho
291
11
Laravel

PHP Fatal error: Allowed memory size

Posted 9 months ago by YoTosho

Hi everyones I know this error is common asked, I read every post ans discussion that I found but nothing did work for me. The problem is the next:

When I try to migrate from Laravel to SQL Server 2016 I can get one of two error:

  1. When I set my memory_limit parameter in the php.ini file with a value >= 1000M the CLI crashes without any massage, only crashes

  2. When the memory_limit is lower than 1000M then I get the next error

PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 4096 bytes) in C:\xampp\htdocs\inteligencia\vendor\laravel\framework\src\Illuminate\Database\Grammar.php on line 96
PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 32768 bytes) in C:\xampp\htdocs\inteligencia\vendor\symfony\debug\Exception\FatalErrorException.php on line 1
PS C:\xampp\htdocs\inteligencia> php memory_limit

The most curious is that isnt matter the memory_limit value the error is the same with the same values on its description

(tried to allocate 4096 bytes) (tried to allocate 32768 bytes)

I wasted hours with this error without results. I really hope you can help me with this one.

Thanks

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.