Error/Bug Cron importcsv

Status
Not open for further replies.

Fastserv

Member
Hi,

I try to setup a cron csv import but when I start the import manually I get the following error:

Code:
[B]Fatal error[/B]:  Class 'plgFabrik_Cron' not found in [B]/plugins/fabrik_cron/importcsv/importcsv.php[/B] on line [B]18[/B]

Greetings
Stefan
 
Try editing importcsv.php

Around line 16 change


Code:
// Require the abstract plugin class
require_once(COM_FABRIK_FRONTEND . '/models/importcsv.php');


to

Code:
// Require the abstract plugin class
require_once(COM_FABRIK_FRONTEND . '/models/plugin-cron.php');
require_once(COM_FABRIK_FRONTEND . '/models/importcsv.php');


I haven't looked at the code though to verify if this is the problem.
 
Okay, I do believe that line should be added so I'll raise it on Github.

Let us know how your tests go.
 
I assume nobody has used the cron import in fabrik3 until now:
Next step: can't open file (because of doubled BaseDir)

@Fastserv: are you the Fabrik2 German translator?
 
Import doesn't work. No error message, but "0 records updated" message.
Also "Last run" still say 0000-00-00 00:00:00 .
All Folder and Files are readable.

@troester: Ja bin ich
 
OK, I've fixed a few issues with it, seems to be working for me now. Fixes are in github.

Note, I've added two new params, for field and text delimiters, which default to comma and double quote respectively.

At some point, I should really tweak that code so it can use the defaults specified on the main List CSV settings, rather than having to set them separately on the cron import.

let me know if it works.

-- hugh
 
Status
Not open for further replies.
Back
Top