Keyword

Attchments files corrupted

  • jm ber
  • jm ber's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #141051 by jm ber
Attchments files corrupted was created by jm ber
Something weird hapened suddenly with K2 attachments,
some of the attachmnents (pdf, word files) are corrupted (we can not open the them) when we download them from the frontend
From the back end, everything works normally.

I guess k2 doesnt change the files, so how can this happen?
Can this be caused by the hosting server? (OVH)

Thanks for help,

Please Log in or Create an account to join the conversation.

  • jm ber
  • jm ber's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #141055 by jm ber
Replied by jm ber on topic Attchments files corrupted
I have found a solution, hopefully it is ok,
it looks to be working:
www.joomlaworks.net/forum/k2-en/19111-fixed-k2-attachement-function-still-broken


placed " ob_end_clean(); " within function download() in components/com_k2/controllers/item.php :


function download()
{

require_once (JPATH_COMPONENT_ADMINISTRATOR.DS.'models'.DS.'item.php');
ob_end_clean(); // added
$model = new K2ModelItem;
$model->download();
}

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #141060 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attchments files corrupted
Which version of K2 and Joomla! where you using?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum