Forum Replies Created

Viewing 1 replies (of 1 total)
  • I came across this thread when I googled the issue of 0 posts being posted so I just thought I’d add a suggested solution here. As per earlier posts my problem was my hosting offering a system tmp dir that wasn’t actually writable. So the patch that writes out a new file wasn’t working. I figured the one dir we definietly know we have access to at this point is the php upload dir (this is where the csv file is uploaded to and must be writable is we have got this far into the plugin). So we use that instead. To do this, in the file DataSource.php, function _patch(), replace the line

    $t_fname = tempnam(md5(''), __CLASS__ . '_');

    wih

    $t_fname = tempnam(ini_get('upload_tmp_dir'), __CLASS__ . '_');

    This works for me – your mileage may vary. There may well be reasons why we don’t want to do this but it seems reasonable to me at this stage.

    Cheers,
    Colm

Viewing 1 replies (of 1 total)