here is the code that i have in the listcsv plugin Import PHP File:
defined('_JEXEC') or die();
$listModel = $this->getModel();
$formModel = $listModel->getFormModel();
$data = $formModel->formData;
$origref = $_SERVER['HTTP_REFERER'];
$q = JURI::getInstance($origref)->getQuery(true);
$fid = $q['i'];
// modify csv data
// use updateFormData from the example plugins/fabrik_list/listcsv/scripts/import_cities.php
// because $formModel->formData['table___field'] = "testing" from the wiki is not storing in the db the altered value.
$today = date("Y-m-d H:i:s");
$formModel->updateFormData('tbl_table___date_time', $today, true);
$formModel->updateFormData('tbl_table___fid', $fid, true);
The error that i get (one per each csv entry that is inserted) is:
'An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval in onAfterImportCSVRow : mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead'
PS: i do not use 'After Import PHP File' option and all data are simple with no merge or join. I took a look in the 'listcsv_after_import_php_code' inside the DB and the value is "".
If i put a simple "return true;" then the onAfterImportCSVRow error is not displayed anymore.