Jump to content

c9141

Members
  • Posts

    3
  • Joined

  • Last visited

About c9141

  • Birthday October 24

Profile Information

  • First Name
    Ina
  • Last Name
    Adam

c9141's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. or done here, with extra details https://www.prestashop.com/forums/topic/81219-fatal-error-allowed-memory-size/?p=2359597
  2. The memory allocation error can be SOLVED by doing what's suggested by bellini13. Just wanted to add further clarification based on my understanding (I'm new! Spare me) after having solved the problem as well. I believe this applies for all errors similar to the following (and is what I'll only cover here):- "Fatal error: allowed memory size of 33554432 bytes exhausted (tried to allocate 3872 bytes)" Taking from example error above "33554432 bytes" may well be the default memory_limit set by your host provider (as it is with mine) i.e. 32MB (which = 33554432 bytes. The limit may be different for others I'm not sure.) Three workarounds suggested (briefly):- Add a line "memory_limit = **M" to the ini.php file. Add a line "ini_set('memory_limit','**M');" to the config.inc.php file. Update your server php memory limit to **M ​** 64(MB), 128(MB) or higher depending on how much memory exhausted stated in the error. e.g. 64MB works for me since 32MB were exhausted and I needed something higher than 32MB but total required memory less than 64MB.Initially, I tried the first option, changing the memory limit to 64MB but the error still comes up, saying allowed memory size is 32MB (remains unchanged even with the edit). The second option works for me. The file "config.inc.php" can be found at *your_prestashop_directory*/config/ Here's where I created a new line for the memory limit edit "ini_set('memory_limit','64M');" inside the config.inc.php /* Improve PHP configuration to prevent issues */ ini_set('default_charset', 'utf-8'); ini_set('magic_quotes_runtime', 0); ini_set('magic_quotes_sybase', 0); ini_set('memory_limit','64M'); I don't know if it'll make any difference if it's placed anywhere else (enlighten me, happy to know), but it works. After confirmation, I deleted the added memory_limit line in the "ini.php" and everything still works fine. I almost went for the third option, which seems reasonable after knowing that the server's php memory limit are set as default and I think it'll work the same. (I didn't go for it cause I didn't want to affect other websites under the server, or rather, I don't know if it will). Hope this helps.
  3. The memory allocation error can be SOLVED by doing what's suggested by bellini13. Just wanted to add further clarification based on my understanding (I'm new! Spare me) after having solved the problem as well. I believe this applies for all errors similar to the following (and is what I'll only cover here):- "Fatal error: allowed memory size of 33554432 bytes exhausted (tried to allocate 3872 bytes)" Taking from example error above "33554432 bytes" may well be the default memory_limit set by your host provider (as it is with mine) i.e. 32MB (which = 33554432 bytes. The limit may be different for others I'm not sure.) Three workarounds suggested (briefly):- Add a line "memory_limit = **M" to the ini.php file. Add a line "ini_set('memory_limit','**M');" to the config.inc.php file. Update your server php memory limit to **M ​** 64(MB), 128(MB) or higher depending on how much memory exhausted stated in the error.e.g. 64MB works for me since 32MB were exhausted and I needed something higher than 32MB but total required memory less than 64MB. I initially tried the first option, changing the memory limit to 64MB but the error still comes up, saying allowed memory size is 32MB (remains unchanged even with the edit). The second option works for me. As mentioned, the file "config.inc.php" can be found at *your_prestashop_directory*/config/ Here's where I created a new line for the memory limit edit "ini_set('memory_limit','64M');" inside the config.inc.php /* Improve PHP configuration to prevent issues */ ini_set('default_charset', 'utf-8'); ini_set('magic_quotes_runtime', 0); ini_set('magic_quotes_sybase', 0); ini_set('memory_limit','64M'); I don't know if it'll make any difference if it's placed anywhere else (enlighten me, happy to know), but it works. After confirmation, I deleted the added memory_limit line in the "ini.php" and everything still works fine. I almost went for the third option, which seems reasonable after knowing that the server's php memory limit are set as default and I think it'll work the same. (I didn't go for it cause I didn't want to affect other websites under the server, or rather, I don't know if it will). Hope this helps.
×
×
  • Create New...