Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Easy populate Array Flip Error

    I cannot upload my file, when I do I get the following error:

    Warning: array_flip() [function.array-flip]: The argument should be an array in.......

    My versions are:

    Database: MySQL 5.0.67-community
    Zen Cart 1.3.8a
    Patch: 1::
    Database Patch Level: 1.3.8
    HELP.....

    Thanks Terry

  2. #2
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Easy populate Array Flip Error

    I changed the file in question using the below advice. It updated but now I cannot see the products although the products listing does show there are added products, but when I click to that product, they are blank.
    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))) {

  3. #3
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Easy populate Array Flip Error

    Issue resolved, upgraded to latest PHP version. Close thread.

  4. #4

    Default Re: Easy populate Array Flip Error

    I had the flip error changed line to 1000, now I don't get error but no products are updated. i am on php 4 and I can't seem to get my host company to switch me over to 5?

    Is there something else I am doing wrong?

 

 

Similar Threads

  1. Easy Populate error
    By hp09 in forum General Questions
    Replies: 4
    Last Post: 26 Apr 2016, 08:56 PM
  2. v153 Easy Populate Error
    By msbfrnj in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 9 Sep 2014, 05:55 PM
  3. 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
  4. Easy Populate Error
    By emmdee in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Apr 2008, 05:14 AM
  5. Easy Populate error
    By waznu in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 Dec 2006, 01:58 AM

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