I am using ListCsv Plugin to import CSV files.
I have created a file in plugins/fabrik_list/listcsv/scripts called TheFile.php and it has a function called MyFunction($arg) which returns $value.
I have imported that Thefile.php on he listcsv plugin's 'import row PHP file'.
On the 'Import Row php Code', i call MyFunction($args).
When I import a CSV file with just one row(excluding header). It works fine and the MyFunction($args) returns the desired value.
However, while I import CSV with more than two rows(Excluding header) than it does not work and gives me an error - 'is currently unable to handle this request - HTTP '
When I am trying to import CSV with multiple rows, the first row does get processed by the MyFunction and returns what it needs to return(still gives that unable to handle this request error - I confirmed that it does process the first row using the Dump plugin) but not the second row and after that.
Can someone point me out in the right direction?
It is very important for me to call MyFunction, cannot do it any other way. Right now the way I am doing is just copying the function code in the 'Import row PHP code' and running it. The function is very very very long and the same function is used at various other places.
Cheers.
I have created a file in plugins/fabrik_list/listcsv/scripts called TheFile.php and it has a function called MyFunction($arg) which returns $value.
I have imported that Thefile.php on he listcsv plugin's 'import row PHP file'.
On the 'Import Row php Code', i call MyFunction($args).
When I import a CSV file with just one row(excluding header). It works fine and the MyFunction($args) returns the desired value.
However, while I import CSV with more than two rows(Excluding header) than it does not work and gives me an error - 'is currently unable to handle this request - HTTP '
When I am trying to import CSV with multiple rows, the first row does get processed by the MyFunction and returns what it needs to return(still gives that unable to handle this request error - I confirmed that it does process the first row using the Dump plugin) but not the second row and after that.
Can someone point me out in the right direction?
It is very important for me to call MyFunction, cannot do it any other way. Right now the way I am doing is just copying the function code in the 'Import row PHP code' and running it. The function is very very very long and the same function is used at various other places.
Cheers.