PHP Classes

Undefined index:

Recommend this page to a friend!

      Quick CSV import  >  All threads  >  Undefined index:  >  (Un) Subscribe thread alerts  
Subject:Undefined index:
Summary:Notice: Undefined index: field_separate_char in CSV_import.php
Messages:3
Author:Roy D Baird
Date:2016-02-09 21:06:57
 

  1. Undefined index:   Reply   Report abuse  
Picture of Roy D Baird Roy D Baird - 2016-02-09 21:06:57
Notice: Undefined index: field_separate_char in CSV_import.php on line 78,




Same error for Enclose char, Escape char and Encoding.

Running on Centos 7 box.

  2. Re: Undefined index:   Reply   Report abuse  
Picture of Roy D Baird Roy D Baird - 2016-02-09 21:11:19 - In reply to message 1 from Roy D Baird
More information on this error:

Notice: Undefined variable: HTTP_POST_FILES in /CSV_import.php on line 18 Warning: fopen(): Filename cannot be empty in /Quick_CSV_import.php on line 81 Warning: fopen(): Filename cannot be empty in /Quick_CSV_import.php on line 81

  3. Re: Undefined index:   Reply   Report abuse  
Picture of Abed Nego Ragil Putra Abed Nego Ragil Putra - 2016-07-20 07:32:47 - In reply to message 2 from Roy D Baird
change to

$csv->file_name = $_FILES['file_source']['tmp_name'];
on import.php