Jump to content

Manufacturer CSV Import Failure


Recommended Posts

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. 

 

  1. TopVapor (ID: 1) cannot be saved
  2. Property Manufacturer->name is empty
  3. Nicobine (ID: 2) cannot be saved
  4. Vape Dojo (ID: 3) cannot be saved
  5. Cuttwood (ID: 4) cannot be saved
  6. 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

 

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

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.

  • Like 2
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...