i've got a problem setting up a script that updates product data automaticly using magmi cli interface.
At the moment i'm trying to run the following line via ssh to figure out how it works:
php magmi.cli.php -mode=update -profile=autoimport -CSV:filename="/home/www/p239123/html/magento-de/import/file.csv"
This is the error message i'm getting
PHP Warning: array_shift() expects parameter 1 to be array, null given in /html/magento-de/magmi/cli/magmi.cli.php on line 13
PHP Warning: Invalid argument supplied for foreach() in /html/magento-de/magmi/cli/magmi.cli.php on line 24
PHP Notice: Undefined offset: -1 in /html/magento-de/magmi/inc/magmi_engine.php on line 268
PHP Fatal error: Call to a member function getRecordsCount() on null in /html/magento-de/magmi/engines/magmi_productimportengine.php on line 1626
Status: 500 Internal Server Error
X-Powered-By: PHP/5.6.10
Content-type: text/html; charset=UTF-8
Can you give me a hint what the problem could be?
Thanks in advance!
tic
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Everyboy,
i've got a problem setting up a script that updates product data automaticly using magmi cli interface.
At the moment i'm trying to run the following line via ssh to figure out how it works:
php magmi.cli.php -mode=update -profile=autoimport -CSV:filename="/home/www/p239123/html/magento-de/import/file.csv"
This is the error message i'm getting
PHP Warning: array_shift() expects parameter 1 to be array, null given in /html/magento-de/magmi/cli/magmi.cli.php on line 13
PHP Warning: Invalid argument supplied for foreach() in /html/magento-de/magmi/cli/magmi.cli.php on line 24
PHP Notice: Undefined offset: -1 in /html/magento-de/magmi/inc/magmi_engine.php on line 268
PHP Fatal error: Call to a member function getRecordsCount() on null in /html/magento-de/magmi/engines/magmi_productimportengine.php on line 1626
Status: 500 Internal Server Error
X-Powered-By: PHP/5.6.10
Content-type: text/html; charset=UTF-8
Can you give me a hint what the problem could be?
Thanks in advance!
tic
Looks more or less like what I use. What does your csv look like?
Those are the first lines of the csv:
sku|delivery_time
4000129648|2-5 days
4000129649|2-5 days
4000129650|2-5 days
4000129651|2-5 days
I set | as csv separator and no enclosure in the used profile
Did you try it with the standard format?
Unfortunately this format
"sku","deliverytime"
"4000901648","2-5 days"
throws the same error :-(
I changed the PHP-Version to 5.4. Now it's working!