Announcement

Collapse
No announcement yet.

[ESPO 6.1.10] Importing large CSV files is causing "PHP Fatal error".

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [ESPO 6.1.10] Importing large CSV files is causing "PHP Fatal error".

    Importing large CSV files with more than 1000 rows is causing memory exhaustion in PHP. The log points to this file here.

    By the looks the $string variable is not used anywhere within this function after the substr function or is not returned out of the function, so it seems unnecessary and is causing problems with memory.

    PS: I am a newbie who started out with PHP and ESPO recently and I may be totally wrong. Please feel free to educate me.

    Thank You

    yuri

  • #2
    Try increasing memory limit (or run via CRON). 1000 rows is quite small number. I tested on much larger numbers.

    Comment


    • AgentT
      AgentT commented
      Editing a comment
      Running via cron fails after 1000 rows and the memory error is thrown.
      Running without cron fails at around 300 rows itself by giving the error 500, but there are no logs available for this anywhere.
Working...
X