Trying to export All products but it gives me 500 Internal server error. i have set max execution time and max input time to 9000 also input memory 256MB on my cpanel and htaccess file. everything is fine from some post i see directory permissions are also correct and on another post i try change if condition in product.php but still problem is same please any one who faced and solved suggest me thanks in advance

2 Answers 2


You need to increase below

php_value memory_limit 256M  to  php_value memory_limit 1024m
php_value max_execution_time 18000 to php_value max_execution_time 36000

in .htaccess file.May be it help.

  • but my hosting give me maximum 512 which is also not work May 14, 2015 at 11:06
  • How much sku's you trying to export?
    – akgola
    May 14, 2015 at 11:08
  • 10057 are total sku i want to export May 14, 2015 at 11:23
  • 1
    There are so may sku,you can't export in 512 mb memory_limit.You need to write custom script for this.
    – akgola
    May 14, 2015 at 11:25
  • could you please help any hint for script sample script May 14, 2015 at 11:29

Open the file at


line: 873

Find the code

$dataRow += $stockItemRows[$productId];

In order to update the code to:

$dataRow = array_merge($dataRow,$stockItemRows[$productId]);
  • Don't edit core modules. You'll be in a world of hurt when you update Magento or install some 3rd party modules that depend on it. Use rewrites or copy the class to your local codePool. May 17, 2017 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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