Menu

Automatic Import via Cron Job > Magmi Cli Problem

Help
TST
2016-07-28
2016-07-31
  • TST

    TST - 2016-07-28

    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

     
  • Björn Tantau

    Björn Tantau - 2016-07-28

    Looks more or less like what I use. What does your csv look like?

     
  • TST

    TST - 2016-07-28

    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

     
  • Björn Tantau

    Björn Tantau - 2016-07-29

    Did you try it with the standard format?

     
  • TST

    TST - 2016-07-30

    Unfortunately this format
    "sku","deliverytime"
    "4000901648","2-5 days"

    throws the same error :-(

     
  • TST

    TST - 2016-07-31

    I changed the PHP-Version to 5.4. Now it's working!

     

Log in to post a comment.