[PREVIEW] Sj AutoNews - Cars News, Cars Review Joomla Template
Your Cart is currently empty!
Product update
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

[Solved] Error in download attachment
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [Solved] Error in download attachment

[Solved] Error in download attachment 5 years, 10 months ago #20658

Hi all,

I used SJ Flat News template, and i use the K2 component, when i attach a file (zip,pdf,... etc) in K2 item, i can't download it, i get this page (in the attached photo)..
I use:

Joomla 3.3.3
K2 Version 2.7.0.

I tried to install the other version from k2 but the same error, i disable advanced SEF for K2 URLs and nothing changed, i disabled the SEO Settings in joomla and nothing changed!!

Please help!!!
The topic has been locked.

Re: Error in download attachment 5 years, 10 months ago #20808


Go to file /temp/templates/sj_flatnews/html/com_k2/general/item.php change this code:
<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"><?php echo $attachment->title; ?></a>


<a title="<?php echo htmlentities($attachment->titleAttribute, ENT_QUOTES, 'UTF-8'); ?>" href="<?php echo JRoute::_('media/k2/attachments/'.$attachment->filename); ?>" TARGET="_blank"> <?php echo $attachment->title ; ?>

The topic has been locked.
  • Page:
  • 1
Time to create page: 1.48 seconds


Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes