Keyword

Attachment Issue with SVN

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 7 months ago #100251 by troponin
Attachment Issue with SVN was created by troponin
Somebody here have the same Problem like me ?

After upgraded to the latest SVN 2.5 K2 roots the Attachment to a 404.

File Exist in the standard Folder.

 

 

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

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 7 months ago #100252 by troponin
Replied by troponin on topic Attachment Issue with SVN
somebody  ?

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

More
13 years 7 months ago #100253 by william white
Replied by william white on topic Attachment Issue with SVN
are you using  the svn on joomla 1.5 or 1.7?

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

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 7 months ago #100254 by troponin
Replied by troponin on topic Attachment Issue with SVN
1.7 - it worked till I updated the last SVN yesterday. Doesn't matter if I turn Joomla SEO on or off

 

www.brain-style.de/downloads/item/9-k2-joomla-17-plugin-like...

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

More
13 years 7 months ago #100255 by william white
Replied by william white on topic Attachment Issue with SVN
I see the same behavior with 1.7/2.5 from gavick world news quickstart with k2 updated to latest svn, sef on or off..ill check 1.5 with same steup

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

More
13 years 7 months ago #100256 by william white
Replied by william white on topic Attachment Issue with SVN
works as expected with 1.5/2.5 svn (also have sh404 installed w/htaccess) but the link looks non-sef link

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

More
13 years 7 months ago #100257 by Lefteris
Replied by Lefteris on topic Attachment Issue with SVN
We have added some logic on the downloads of the attachments to prevent users from guessing ids and download attachments that they cannot see. The side effect of this is that there are some template changes. Please upgrade your templates  download links by looking at the default templates that come with K2. A complete list of these changes will be published once version 2.5 goes stable.

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

More
13 years 7 months ago #100258 by william white
Replied by william white on topic Attachment Issue with SVN
Thanks for your responce - we will check it out...

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

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 7 months ago #100259 by troponin
Replied by troponin on topic Attachment Issue with SVN
Work !!!

thx Lefteris for the Information and thx William for take a look at your Installation

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

More
13 years 7 months ago #100260 by Lee Noble
Replied by Lee Noble on topic Attachment Issue with SVN
I am encountering the same issue whilst using the default K2 template on 1.7

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

More
13 years 7 months ago #100261 by Lee Noble
Replied by Lee Noble on topic Attachment Issue with SVN
I notice that the attachments at the link you provided above are now working? What did you do to get them to function?Troponin said:
Work !!!

thx Lefteris for the Information and thx William for take a look at your Installation

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

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 7 months ago #100262 by troponin
Replied by troponin on topic Attachment Issue with SVN
You use a custom K2 Template.

 

All you have to do is to replace your custom item.php div class="itemAttachmentsBlock" with the standard.

Open components/com_k2/templates/default/item.php and search for <!-- Item attachments -->.

 

Copy the complete div to your custom item.php and replace the old one:

 

Here is the new Code:

 

<div class="itemAttachmentsBlock">          <span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span>          <ul class="itemAttachments">            <?php foreach ($this->item->attachments as $attachment): ?>            <li>                <a title="<?php echo htmlentities($attachment->titleAttribute, ENT_QUOTES, 'UTF-8'); ?>" href="<?php echo $attachment->link; ?>">                    <?php echo $attachment->title ; ?>                </a>                <?php if($this->item->params->get('itemAttachmentsCounter')): ?>                <span>(<?php echo $attachment->hits; ?> <?php echo (count($attachment->hits)==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>                <?php endif; ?>            </li>            <?php endforeach; ?>          </ul>      </div>

 

 

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

More
13 years 7 months ago #100263 by Lee Noble
Replied by Lee Noble on topic Attachment Issue with SVN
Issue is, I'm not using a custom template (yet). So, there is nothing to replace as it is there already. Furthermore, the issue also exists when editing the item in the frontend. Downloading in edit gives the 404 and deleting, whilst asking "are you sure" does nothing. All functions ok in the backend.

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

More
13 years 7 months ago #100264 by Lee Noble
Replied by Lee Noble on topic Attachment Issue with SVN
I notice that you have now closed issue 179. However, in my case this issue exists with the default template both in he frontend and in the frontend edit where it can niether be downloaded or deleted. All functions ok in the backend. Any ideas?

Lefteris Kavadas said:

We have added some logic on the downloads of the attachments to prevent users from guessing ids and download attachments that they cannot see. The side effect of this is that there are some template changes. Please upgrade your templates  download links by looking at the default templates that come with K2. A complete list of these changes will be published once version 2.5 goes stable.

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


Powered by Kunena Forum