Expected data must be a string or stringable while importing large CSV
-
Hello,
While importing relatively big CSV on lists (big is relative to server’s performance and internet connection performance), at some point the import stop with error “Expected data must be a string or stringable”.
While checking at browser requests, we see that these errors happens randomly on the wp-json/fluent-crm/v2/import/csv-import HTTP request.
After digging, we understood the problem. Your cron action “fluentcrm_scheduled_hourly_tasks” is calling FluentCrm\App\Hooks\Handlers\Scheduler@maybeCleanupCsvFiles which delete the CSV file before the end of importation.
We currently just changed the CSV to be deleted after 1 day of creation time, instead of 15 minutes (wp-content/plugins/fluent-crm/app/Hooks/Handlers/Scheduler.php line 120).
Could you please fix this by implementing a proper way to know if a CSV file is still used for importation or not?
Best regards.
- The topic ‘Expected data must be a string or stringable while importing large CSV’ is closed to new replies.