Keyword

Attachment link shows "File does not exist"

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160311 by Odin Mayland
Attachment link shows "File does not exist" was created by Odin Mayland
I have changed the "root attachments folder" to "../images/podcasts"

The backend download link works fine:
www2.icd10monitor.com/administrator/index.php?option=com_k2&view=item&task=download&id=74_c1f5c9ba4147c857b85c71ee7f58d64a

But the frontend link gives a "File does not exist" error page:
www2.icd10monitor.com/download/74_c1f5c9ba4147c857b85c71ee7f58d64a

Here is the frontend page: www2.icd10monitor.com/talk-ten-tuesdays/podcasts

How do I get the frontend link to work with my new root attachments folder?

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

More
8 years 2 months ago - 8 years 2 months ago #160312 by spock
move files from media/k2/attachments/ to images/podcast

but... no work fine for me.

The old files attached to articles no work dowload link from administration panel

i tested this option for my proyect and i return to original folder... :-(

If you have success and you do not find problems, I would be grateful if you told me to see what I did wrong.

Thank you and sorry 4 my english
Last edit: 8 years 2 months ago by spock.

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago - 8 years 2 months ago #160339 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
The files were uploaded using the attachment tab after I changed the root attachments folder, so they are being uploaded into the right place.

The issue is still that the frontend link gives a "File does not exist" error page:
www2.icd10monitor.com/download/74_c1f5c9ba4147c857b85c71ee7f58d64a
Last edit: 8 years 2 months ago by Odin Mayland.

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160344 by Odin Mayland

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160345 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
Since it only works with the admin dir i used ReReplacer to chnage the url on the front end to have
domain.com/administrator/...

So the frontend link looks like this now:
www2.icd10monitor.com/administrator/index.php?option=com_k2&view=item&task=download&id=74_c1f5c9ba4147c857b85c71ee7f58d64a

I doubt this hack should be necessary and I don't know if this is bad to have a link to the admin dir.

So can someone please help me fix this the correct way?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #160383 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attachment link shows "File does not exist"
Hey Jeff,

Which version of K2 are 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.

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160393 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
K2 v2.7.1 [Dev Build]
J 3.6.5

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #160423 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attachment link shows "File does not exist"
Can you try updating to 2.7.1 stable or the latest DEV build?

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

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160524 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
I'll have to take a backup to try that.

But first can you confirm that the link structure looks correct:
www.icd10monitor.com/index.php?option=com_k2&view=item&task=download&id=76_48b65d31ad1d315cbe90fcdf9f0763d0

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160525 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"

Krikor wrote: Can you try updating to 2.7.1 stable or the latest DEV build?


I just downloaded the latest version from getk2 and it is 2.7.1

The download link is still redirecting to a blank page with the text "File does not exist"

www.icd10monitor.com/download/78_a56ea6aa255bb61a9bdd928508d9efaa

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160526 by Odin Mayland

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160527 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
I just tested a different client's site using the previous k2 2.7.1 Dev and the download link works fine.

It had the same url structure as the other one: /index.php?option=com_k2&view=item&task=download&id=76_48b65d31ad1d315cbe90fcdf9f0763d0

So it doesn't appear to be a bug with k2.

****

I think it has to do with changing the "Change root attachments folder" to "../images/podcasts"
Do you see an issue with my path?

The reason I did this was so the user could select the same mp3 in the k2 media tab using the "Browse media on server".

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #160534 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attachment link shows "File does not exist"
Can you try images/podcasts instead?

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

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago - 8 years 2 months ago #160618 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
Yes, changing the root attachments folder" to "images/podcasts" allows the download link to work on the frontend BUT now the uploaded attachment does not get saved in "images/podcasts". That was why I had to add the ../ in the first place :-(

I actually can't find that specific uploaded attachment anywhere on the server. I even checked the old root folder but nothing is here: /media/k2/attachments
Last edit: 8 years 2 months ago by Odin Mayland.

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160633 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
If I erase the new folder and leave root attachments folder blank then everything works.

So it appears that something is stopping a custom root attachments folder from working.

The reason I bad a custom root att folder is because the client also makes the same mp3 available using the media tab. But the
"Browse media on server" only looks in the "images" folder. I suppose a workaround is to get the media/k2/attachments folder to also appear when you click "Browse media on server".

But this sounds like it should not be necessary if I can just get the custom root attachments folder working.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #160660 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attachment link shows "File does not exist"
Can you check which folder is being requested? It could something like a simple typo.

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

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160689 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
ok. How do I check which folder is being requested?

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160696 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
This is getting frustrating.

Now I can't even leave the "Change root attachments folder" empty. It just fills my custom "images/podcasts" back in upon saving.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #160709 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attachment link shows "File does not exist"
I am trying to replicate the issue.
I can pretty much enter any value, including blank values.

Please bear with me,

Yes, changing the root attachments folder" to "images/podcasts" allows the download link to work on the frontend BUT now the uploaded attachment does not get saved in "images/podcasts". That was why I had to add the ../ in the first place :-(


You never specified where the uploads were being saved.

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

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 2 months ago #160722 by Odin Mayland
Replied by Odin Mayland on topic Attachment link shows "File does not exist"
Thank you for your continuing effort to resolve this.

I have tested the same issue on another k2 site. I changed the root attachment folder to images/test and uploaded a k2 attachment. The file did not appear in images/test. It does not appear in media/k2/attachments either. The backend k2 item attachment download link works. But the frontend also shows the "File does not exist".

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


Powered by Kunena Forum