2

I get error like memory not enough,

enter image description here

but I have changed memory limit in code part,

enter image description here

After I went to check my site, memory limit was not changed, and Product Attributes Index not successes.

My php info,

enter image description here

  • Verify, in the phpinfo() if the php.ini file you modified is being used (GENERAL section) – Łukasz Jul 6 '16 at 7:22
  • why my menu collapsed, – Gem Jul 6 '16 at 7:30
  • i.imgur.com/ZIJfVAY.png – Gem Jul 6 '16 at 7:31
1

You have to restart the Webserver (looks like Apache to me) to make this change happen. Alternatively, in some hosting environments you can use the .htaccess file in the Magento root directory to change the memory limit:

php_value memory_limit 512M
  • already did what you told, – Gem Jul 6 '16 at 5:27
  • i.imgur.com/Nh5FPre.png – Gem Jul 6 '16 at 5:28
  • But i can't reindex my product attributes – Gem Jul 6 '16 at 5:28
  • Maybe you are not allowed to change these values. You should contact your hoster – simonthesorcerer Jul 6 '16 at 5:28
  • Wimpy shared server contracts don't let you change these kind of settings. Get an ecommerce friendly hosting plan that allows you to increase memory_limit through the cPanel – Fiasco Labs Jul 6 '16 at 5:40
1

you get increase memory limit from .htaccess by adding php_value memory_limit 1024M to <IfModule mod_php5.c>.

    <IfModule mod_php5.c>
        php_value memory_limit  1024M
    </IfModule>

You can also increase memory by putting a php.ini file in magento root.

    memory_limit = 64M
  • If i export products using the path System->import/export->export, its return "No Valid Data Send" Report. May i know why i am getting this error? Is any memory issue? If i export single products using enter single sku the products export working. – Gem Aug 16 '17 at 4:32
1

You can change the memory limit globally in php.ini, look for this line:

memory_limit =

and adjust the value acording to your needs,

also you can do it in index.php using below code:

ini_set("memory_limit","512M");
  • memory limit = ini_set("memory_limit","512M"); – Gem Jul 6 '16 at 5:30
  • is it right ..... – Gem Jul 6 '16 at 5:30
  • just only you need to put ini_set("memory_limit","512M"); – Prashant Valanda Jul 6 '16 at 6:03
  • menu collapsed i.imgur.com/ZIJfVAY.png – Gem Jul 6 '16 at 7:32
1

Be aware that there are two separate memory limits in PHP config files - one for the Apache and second for the Command Line (CLI).

Usual apache php.ini configuration file location: /etc/php5/apache/php.ini

Usual command line configuration file location: /etc/php5/cli/php.ini

If your script is run from shell or is planned as cron task the CLI configuration will be used.

Some servers allow php.ini file inside vhost root for specific vhost configuration. You can try create one and add following line inside it:

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M

If you're going to use ini_set("memory_limit","512M"); always remember to set it back to it's original value after the code that requires bigger amount of memory.

0

Most of you will be using WHM. MultiPHP INI Editor to edit the memory limit restriction and check back in phpinfo.php

  • If i export products using the path System->import/export->export, its return "No Valid Data Send" error. May i know why i am getting this error? Is any memory issue? If i export single products using enter single sku the products export working. – Gem Aug 16 '17 at 4:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.