1

I have developed custom import module in my Magento store. It works normally on localhost, but on a server as not expected. I send csv data sheet using post form and on module backend it should display products of csv sheet in grid. Response status 200 Ok, but grid is not loaded completely (response html also, there is no footer, grid js scripts), for example only 35 percent of grid. See attached image:

enter image description here
I cant figure out this issue related to Magento or PHP/Server configuration. Anybody have some suggestion? What does import module after uploading csv? It parses csv and stores array of product related data (attribute values, option values) in session. If I test csv data sheet with less data it works normally, fails only when count of products are more.

Keyul Shah
  • 7,219
  • 12
  • 37
  • 60
mageUz
  • 6,234
  • 3
  • 29
  • 52
  • 1
    Sounds like memory_limit exceeded or timeout. Have a look into the php error_log. – Fabian Blechschmidt Nov 24 '13 at 21:29
  • @Fabian Blechschmidt, I am using php_value memory_limit 1024M and php_value max_execution_time 480000 in .htaccess, on server and on local. Log files empty – mageUz Nov 24 '13 at 21:43
  • Did you check the magento files or the php error_log? Is error_logging active for php? If the grid is not rendererd correctly a error is thrown. – Fabian Blechschmidt Nov 24 '13 at 21:48
  • Try splitting your CSV into smaller pieces before you import it. – pspahn Nov 24 '13 at 22:04
  • Yes I can split and it works, but it is extra work every time split, upload – mageUz Nov 24 '13 at 22:10
  • @Fabian Blechschmidt, both error logs (PHP, Magento) are clean – mageUz Nov 24 '13 at 22:13
  • @mageUz Maybe it would be better if you programmatically split the CSV using Javascript before it is uploaded? If you intend for this module to run in a variety of environments (and depending on the size of your CSV files) it would be a good idea to make sure a user is actually capable of doing someone as simple as uploading a file. – pspahn Nov 25 '13 at 00:01
  • 1
    Please have a look on this great debugging answer and comment back: http://magento.stackexchange.com/a/429/217 – Fabian Blechschmidt Nov 25 '13 at 07:54

0 Answers0