markh76 Posted April 7, 2016 Share Posted April 7, 2016 I'm missing something. I've got a straight new install and figured I'd pick a simple csv to import, manufacturers.. Here's my most recent hand typed file: ID,Active (0/1),Name,Description,Short description,Meta title,Meta keywords,Meta description,Image URL,ID / Name of group shop 0,1,TopVapor,,,,,,,1 0,1,Nicobine,,,,,,,1 0,1,Vape Dojo,,,,,,,1 0,1,Cuttwood,,,,,,,1 0,1,Alicious,,,,,,,1 and my results every time. TopVapor (ID: 1) cannot be saved Property Manufacturer->name is empty Nicobine (ID: 2) cannot be saved Vape Dojo (ID: 3) cannot be saved Cuttwood (ID: 4) cannot be saved Alicious (ID: 5) cannot be save I've tried the import with 2 columns, 1 columns 3, 4 and above, with all columns, my latest iteration. Can't get it to import no matter what I do, always the same errors. I'm changing the delimiter, mapping, skipping row 1, etc but the same failure. I have 143 manufacturers to import but figured keep it simple for testing. Running 1.6.1.4 Any insight would be great.. Mark Link to comment Share on other sites More sharing options...
r-brown Posted April 7, 2016 Share Posted April 7, 2016 The same issue for me as well if I'm trying to import Categories, Suppliers and Products. Prestashop version: 1.6.1.4 Any help appreciated. 1 Link to comment Share on other sites More sharing options...
markh76 Posted April 8, 2016 Author Share Posted April 8, 2016 The same issue for me as well if I'm trying to import Categories, Suppliers and Products. Prestashop version: 1.6.1.4 Any help appreciated. Misery loves company. Supplier is same format as manufacturer so the same file should import. I can add to the tables directly with no problem Glad to know if you find anything.. Mark Link to comment Share on other sites More sharing options...
jonkerh Posted April 8, 2016 Share Posted April 8, 2016 I had the same problem, for me the solution was to edit the AdminImportController.php in the /controllers/admin directory. Change the line 1006 if (!call_user_func_array($funcname, array($row, $k, $user_data))) { to if (!call_user_func_array($funcname, array($row, $k, &$user_data))) { and that fixed for me the problem. 2 Link to comment Share on other sites More sharing options...
markh76 Posted April 8, 2016 Author Share Posted April 8, 2016 I had the same problem, for me the solution was to edit the AdminImportController.php in the /controllers/admin directory. Change the line 1006 if (!call_user_func_array($funcname, array($row, $k, $user_data))) { to if (!call_user_func_array($funcname, array($row, $k, &$user_data))) { and that fixed for me the problem. Wow.. That is awesome and fixed my multiple import problems. Can't thank you enough for sharing.. Mark Link to comment Share on other sites More sharing options...
r-brown Posted April 9, 2016 Share Posted April 9, 2016 I had the same problem, for me the solution was to edit the AdminImportController.php in the /controllers/admin directory. Change the line 1006 if (!call_user_func_array($funcname, array($row, $k, $user_data))) { to if (!call_user_func_array($funcname, array($row, $k, &$user_data))) { and that fixed for me the problem. Great tip, thank you very much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now