<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fix PHP fatal error in Laravel Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/fix-php-fatal-error-in-laravel/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/fix-php-fatal-error-in-laravel/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 17 Apr 2021 06:42:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to fix PHP fatal error in Laravel?  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-fix-php-fatal-error-in-laravel-allowed-memory-size-of-1610612736-bytes-exhausted-tried-to-allocate-4096-bytes/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-fix-php-fatal-error-in-laravel-allowed-memory-size-of-1610612736-bytes-exhausted-tried-to-allocate-4096-bytes/#respond</comments>
		
		<dc:creator><![CDATA[abhishek k]]></dc:creator>
		<pubDate>Sat, 17 Apr 2021 06:30:30 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)]]></category>
		<category><![CDATA[Fatal error]]></category>
		<category><![CDATA[fatal error in php]]></category>
		<category><![CDATA[fix PHP fatal error in Laravel]]></category>
		<category><![CDATA[How to fix PHP fatal error in Laravel?]]></category>
		<category><![CDATA[memory limit exceeded in php]]></category>
		<category><![CDATA[memory size exhausted]]></category>
		<category><![CDATA[php Fatal error]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=5912</guid>

					<description><![CDATA[<p>Whenever we type the below displayed command We see the command runs initially good but there comes some problem in [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-fix-php-fatal-error-in-laravel-allowed-memory-size-of-1610612736-bytes-exhausted-tried-to-allocate-4096-bytes/">How to fix PHP fatal error in Laravel?  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Whenever we type the below displayed command </p>



<figure class="wp-block-image size-large"><img decoding="async" width="425" height="57" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-7.png" alt="" class="wp-image-5915" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-7.png 425w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-7-300x40.png 300w" sizes="(max-width: 425px) 100vw, 425px" /><figcaption>locobucci error</figcaption></figure>



<p class="wp-block-paragraph">We see the command runs initially good but there comes some problem in few moments. similar to </p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="119" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-6-1024x119.png" alt="" class="wp-image-5914" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-6-1024x119.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-6-300x35.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-6-768x90.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-6.png 1466w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>php fatal error</figcaption></figure>



<p class="wp-block-paragraph">This error is PHP fatal error: and complete display image is </p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="367" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-5-1024x367.png" alt="" class="wp-image-5913" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-5-1024x367.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-5-300x108.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-5-768x275.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-5.png 1486w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>fatal error complete image</figcaption></figure>



<p class="wp-block-paragraph" style="font-size:25px"><strong>What we need to do to remove this ?</strong></p>



<p class="wp-block-paragraph">Folllow the below steps:</p>



<ol class="wp-block-list"><li>Close the xampp if its running.</li><li>got to <strong>“C:\ProgramData\ComposerSetup\bin”</strong>  (we can copy the location and paste it in the explorer header) </li></ol>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="733" height="108" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-8.png" alt="" class="wp-image-5917" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-8.png 733w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-8-300x44.png 300w" sizes="auto, (max-width: 733px) 100vw, 733px" /><figcaption>explorer heading</figcaption></figure>



<p class="wp-block-paragraph">just press on the above header (after pc) and paste the location and press enter  </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="648" height="108" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-9.png" alt="" class="wp-image-5918" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-9.png 648w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-9-300x50.png 300w" sizes="auto, (max-width: 648px) 100vw, 648px" /><figcaption>composer setup/bin location</figcaption></figure>



<p class="wp-block-paragraph">This will open the file location: </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="865" height="227" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-10.png" alt="" class="wp-image-5919" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-10.png 865w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-10-300x79.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-10-768x202.png 768w" sizes="auto, (max-width: 865px) 100vw, 865px" /></figure>



<p class="wp-block-paragraph">3. We then need to open the <strong>composer.bat</strong> to edit it (<em>right click on it and click on edit with notepad++</em>)</p>



<p class="wp-block-paragraph">4. Now just copy the below code and <strong>replace </strong>it with the code present in <strong>composer.bat</strong> </p>



<p class="wp-block-paragraph"><strong>Code:</strong></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
@echo OFF
:: in case DelayedExpansion is on and a path contains ! 
setlocal DISABLEDELAYEDEXPANSION
php -d memory_limit=-1 &quot;%~dp0composer.phar&quot; %*

</pre></div>


<p class="wp-block-paragraph">5. <strong>Now save it.</strong>  For saving it</p>



<ul class="wp-block-list"><li>Press (Ctrl + S)</li><li>we will be prompted as run as Administrator. </li><li>press Allow</li><li>Then again Press ( Ctrl + S)</li><li>The file will be saved.</li></ul>



<p class="wp-block-paragraph">Now we can run the above command and check it.  </p>



<p class="wp-block-paragraph">we will see the command execuites sucessfully </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="626" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-11-1024x626.png" alt="" class="wp-image-5920" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-11-1024x626.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-11-300x183.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-11-768x470.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-11.png 1511w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Happy Coding!</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-fix-php-fatal-error-in-laravel-allowed-memory-size-of-1610612736-bytes-exhausted-tried-to-allocate-4096-bytes/">How to fix PHP fatal error in Laravel?  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-fix-php-fatal-error-in-laravel-allowed-memory-size-of-1610612736-bytes-exhausted-tried-to-allocate-4096-bytes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
