Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • perini ps Friend
    #181699

    Hi all,

    I’m having real trouble in trying to get the K2 download function working in JA University.

    Adding attachments is fine. When the content item is published, the attachments appear. Clicking any of them gives the error K2_FILE_DOES_NOT_EXIST.

    We have other Joomlart templates running on the same server; they work fine with K2 and downloads.

    I have explored the forums here and elsewhere and used as much advice as I can find from there, as well as copy the relevant item.php files from one of the working websites, to this one. No joy.

    What I have found, if it’s of relevance, is that the link is called in components/com_k2/models/item.php, here (line 1298)

    $row->link = JRoute::_(‘index.php?option=com_k2&view=item&task=download&id=’.$row->id.’_’.JUtility::getHash($row->id));

    but hacking around with that hasn’t produced any joy so far.

    If anyone could help, then it would be very much welcome! 🙂

    Cheers,
    Paul

    perini ps Friend
    #471104

    Fixed. Crikey, that took a while! I went through a good deal of files and settings.

    Turns out that it was nothing to do with JA University at all, but just the K2 parameter “Root attachments folder”, to which I put the entire file path in from root (eg /root/www/thiswebsite/httpdocs/images/attachments/) and it works fine.

    Cheers,
    Paul

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  perini ps 12 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum