Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2009
    Location
    Sydney Australia
    Posts
    15
    Plugin Contributions
    0

    Default Easy Populate CSV Am I doing something Wrong?

    HiI have created producs in catagories in zen cart (Zen Cart 1.3.8aDatabase Patch Level: 1.3.8) & all work Fine
    Tried using Easy populate but am stuck

    I downloaded the csv file with some products
    Used exel (numbers Actually) to import/open the csv i have added a product & followed the zen wiki on easy populate txt version
    Uploaded the csv to the dir & in does that fine

    Upload Results
    Filename: Full-EP2009Jan25-1604.csv

    But when i insert to db get this error warning

    "Warning: array_flip() [function.array-flip]: The argument should be an array in /home/archidra/public_html/eStore/admin/easypopulate.php on line 1222" & the added product is not added

    Have attached pic & uploaded csv file
    Looking to find out what i am obviously missing/doing wrong
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Zen Clip.jpg 
Views:	422 
Size:	29.8 KB 
ID:	5221  
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Easy Populate CSV Am I doing something Wrong?

    Hi
    There needs to be a header field EOREOR and it's value must always be EOREOR for each row

    this is where you can download the latest I believe:

    http://www.modhole.com/modhole/index..._Document_id=2

    I changed your file and uploaded it, maybe that works now, I dont have a spare zen cart to try importing it nor do i know what version of easypopulate you have
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2009
    Location
    Sydney Australia
    Posts
    15
    Plugin Contributions
    0

    Default Re: Easy Populate CSV Am I doing something Wrong?

    Thanks I am looking into this to see where i am going wrong
    Appreciate the help

  4. #4
    Join Date
    Oct 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: Easy Populate CSV Am I doing something Wrong?

    Is he talking about the csv-mod of EP? If so that EOREOR-stuff is gone.

  5. #5
    Join Date
    Jan 2009
    Location
    Sydney Australia
    Posts
    15
    Plugin Contributions
    0

    Default Re: Easy Populate CSV Am I doing something Wrong?

    Quote Originally Posted by SHK View Post
    Is he talking about the csv-mod of EP? If so that EOREOR-stuff is gone.
    Yes that is the one i am trying to get working CSV

  6. #6
    Join Date
    Sep 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Easy Populate CSV Am I doing something Wrong?

    Sorry to support the wrong version, I haven't seen any kind of useful documentation of the changes in that version, but your php error log may be helpful if you can access it.
    The warning could happen if fgetcsv(or similar function) doesn't create an array. Maybe Array_flip was going to use the array after import but doesn't get it.
    so.. maybe your file permissions need checking or something is wrong with the mod? I don't use it i use the tab-delimited file version
    good luck! :)
    Last edited by interrupt; 28 Jan 2009 at 12:19 AM.

  7. #7
    Join Date
    Feb 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Easy Populate CSV Am I doing something Wrong?

    I found this online, which solved my problem. (I just switched my PHP version to 5)

    error:
    Warning: array_flip() [function.array-flip]: The argument should be an array in path\path on line 1224

    issue: this occurs if you are using the latest version of easypopulate on a PHP 4 server.
    fix :
    The length parameter has been set to 0 on line 1222, which is OK for PHP5, but PHP4 needs a real number. I changed mine to 1000 and it now works fine.

    was:
    } else if($filelayout = array_flip(fgetcsv($handle, 0, $csv_deliminator, $csv_enclosure))) {

    now:
    } else if($filelayout = array_flip(fgetcsv($handle, 1000, $csv_deliminator, $csv_enclosure))) {

  8. #8
    Join Date
    May 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Easy Populate CSV Am I doing something Wrong?

    Hello,

    Since you've now gotten your questions answered, perhaps you (or someone else) can assist me. oilshackbodyproducts.com/zencart is the site and if you look at the burning oils category, you'll notice I have an attribute "scent". I have far more attributes (approx 130) for fragrance oils. I created a comma delimited file in excel with the scents for fragrance oils, but don't fully know how to alter the file, upload it, then access it.

    I'm attaching for any possible assistance.

    Thank you!
    Attached Files Attached Files

 

 

Similar Threads

  1. v150 Easy Populate 4 vs. Easy Populate CSV - What's going on with so many Easy Populates?
    By oleancomputers in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 20 Jun 2013, 05:58 PM
  2. Easy Populate CSV cannot upload csv files
    By alimtlai in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Sep 2009, 02:22 PM
  3. Replies: 0
    Last Post: 2 Sep 2009, 11:59 AM
  4. easy populate csv 1-2-5-5-csv-2 tax wrong
    By coolglobal in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 20 Apr 2009, 12:25 PM
  5. Is this wrong, odd or am I doing something wrong?
    By Ryk in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 25 Jun 2007, 11:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg