cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes)

Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes)

I have upgraded Magento 2 E.E 2.3.5 to Magento 2 E.E 2.4.3. But after the upgrade frontend forms are not submitted. Add to cart, Signup, Login, Newsletter. Even I created a sample test form. That is also not submitting. But Form GET is submitted. Form POST is not submitted. I don't want to increase 'memory_limit' value. Because I have the same M2 Version in a different project and that is working there

 

I am getting this error

Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes) in /vendor/magento/framework/DB/Statement/Pdo/Mysql.php on line 91
4 REPLIES 4

Re: Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes

@ankurkinex 

You can increase the memory limit from:

php.ini file and 

another option is if your server has such a setting then you can do so from your server option as well.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes


@mymilestonecard wrote:

I have upgraded Magento 2 E.E 2.3.5 to Magento 2 E.E 2.4.3. But after the upgrade frontend forms are not submitted. Add to cart, Signup, Login, Newsletter. Even I created a sample test form. That is also not submitting. But Form GET is submitted. Form POST is not submitted. I don't want to increase 'memory_limit' value. Because I have the same M2 Version in a different project and that is working there

 

I am getting this error

Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes) in /vendor/magento/framework/DB/Statement/Pdo/Mysql.php on line 91

Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 262144 bytes) in C:\XAMPP\htdocs\magento4\vendor\magento\module-store\Model\Config\Placeholder.php on line 146

Hi when trying to start magento 2 for the first time I get this error i tried changing the memory size in php.ini (XAMPP), in htaccess and also in the root folder of magento. I also tried fixing it in cli but i still get the error

Re: Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes

Please try to Run the following commands

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
php bin/magento cache:flush
php bin/magento cache:clean

/*To Run Command Forcefully */
php -f bin/magento

/*To run command with memory limit 4G*/
php -d memory_limit=4G bin/magento

/*To run command with max memory limit */
php -d memory_limit=-1 bin/magento

Re: Fatal error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 994004992 bytes

Hey @ankurkinex,

 

I have seen your query. This blog might helpful to you. Please refer to this blog: https://magecomp.com/blog/fixed-php-fatal-error-allowed-memory-size-magento-2/

 

Hope this helps you. 

 

Thank you.