I successfully imported clients, but I can’t get anything else to import.
If I import my csv files one at a time, Invoice plane just goes back to the Import window and says 0 items were imported.
![50|690x33]If I try importing all three at once, I get
A PHP Error was encountered
Severity: Warning
Message: fopen(./uploads/import/invoices.csv): failed to open stream: Permission denied
Filename: models/Mdl_import.php
Line Number: 167
Backtrace:
File: /var/www/html/application/modules/import/models/Mdl_import.php
Line: 167
Function: fopen
File: /var/www/html/application/modules/import/controllers/Import.php
Line: 86
Function: import_invoices
File: /var/www/html/index.php
Line: 327
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: fgetcsv() expects parameter 1 to be resource, boolean given
Filename: models/Mdl_import.php
Line Number: 177
Backtrace:
File: /var/www/html/application/modules/import/models/Mdl_import.php
Line: 177
Function: fgetcsv
File: /var/www/html/application/modules/import/controllers/Import.php
Line: 86
Function: import_invoices
File: /var/www/html/index.php
Line: 327
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: fopen(./uploads/import/invoice_items.csv): failed to open stream: Permission denied
Filename: models/Mdl_import.php
Line Number: 249
Backtrace:
File: /var/www/html/application/modules/import/models/Mdl_import.php
Line: 249
Function: fopen
File: /var/www/html/application/modules/import/controllers/Import.php
Line: 92
Function: import_invoice_items
File: /var/www/html/index.php
Line: 327
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: fgetcsv() expects parameter 1 to be resource, boolean given
Filename: models/Mdl_import.php
Line Number: 259
Backtrace:
File: /var/www/html/application/modules/import/models/Mdl_import.php
Line: 259
Function: fgetcsv
File: /var/www/html/application/modules/import/controllers/Import.php
Line: 92
Function: import_invoice_items
File: /var/www/html/index.php
Line: 327
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: fopen(./uploads/import/payments.csv): failed to open stream: Permission denied
Filename: models/Mdl_import.php
Line Number: 322
Backtrace:
File: /var/www/html/application/modules/import/models/Mdl_import.php
Line: 322
Function: fopen
File: /var/www/html/application/modules/import/controllers/Import.php
Line: 98
Function: import_payments
File: /var/www/html/index.php
Line: 327
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: fgetcsv() expects parameter 1 to be resource, boolean given
Filename: models/Mdl_import.php
Line Number: 330
Backtrace:
File: /var/www/html/application/modules/import/models/Mdl_import.php
Line: 330
Function: fgetcsv
File: /var/www/html/application/modules/import/controllers/Import.php
Line: 98
Function: import_payments
File: /var/www/html/index.php
Line: 327
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/codeigniter/framework/system/core/Exceptions.php:271)
Filename: helpers/url_helper.php
Line Number: 564
Backtrace:
File: /var/www/html/application/modules/import/controllers/Import.php
Line: 105
Function: redirect
File: /var/www/html/index.php
Line: 327
Function: require_once
Here are the first few lines of each:
Invoice items:
invoice_number,item_tax_rate,item_date_added,item_name,item_description,item_quantity,item_price
100,2012-02-04,Appointment,1,400
101,2012-02-04,Appointment,1,600
Invoices:
user_email,client_name,invoice_date_created,invoice_date_due,invoice_number,invoice_terms
techie.peet@gmail.com,Jan Eliasberg,2012-08-27,290,
techie.peet@gmail.com,Jan Eliasberg,2012-08-31,292,
Payments:
invoice_number,payment_method,payment_date,payment_amount,payment_note
100,Cheque,2012-02-04,400,
101,Cheque,2012-02-04,600,