- Posts: 14
COMMUNITY FORUM
Attachments K2_FILE_DOES_NOT_EXIST
- Aurélien CADIOU
-
Topic Author
- Offline
- New Member
I have a problem with K2. I want attach PDF files, but we can't download it.
The message is K2_FILE_DOES_NOT_EXIST...
The files are good in the FTP with the 777 permission.
Can you help me please ?
Thank you for advance,
Aurélien
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Can you download the file in question by typing it into your browzers url bar?
Please Log in or Create an account to join the conversation.
- Aurélien CADIOU
-
Topic Author
- Offline
- New Member
- Posts: 14
I have put 755 permission for the folder.
When I open the flie with the adress in my browser, the file is good oppening...
File st-andre-le-gaz.fr/joomla/images/cr_mairie/2011/20110304.pdf
URL K2 : st-andre-le-gaz.fr/joomla/index.php/vie-municipale/comptes-rendus-municipaux/item/download/13_5b198069ec1a8bdbc8e5c181673155e6
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Check and be sure that the root attachments folder is set correctly in k2 paramaters and
k2 information tab for mb_string enabled
Please Log in or Create an account to join the conversation.
- Aurélien CADIOU
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Aurélien CADIOU
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Jose M.
-
- Offline
- New Member
- Posts: 7
I have the same problem, if I change the directory in the parameters (e.g. images/documents or media/k2/attachments) does not work, but if parameter leave in blank, if that works.
The images/documents or media/k2/attachments folder exists and has the appropriate permissions.
When not working, the file was not created in any folder but the link to the file from the backend in the form of the item if that works.
Joomla 2.5.9
K2 v.2.6.3
Thanks
Sorry for my english.
Jose
Please Log in or Create an account to join the conversation.
- Aurélien CADIOU
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Jose M.
-
- Offline
- New Member
- Posts: 7
is a bug?
Jose
Please Log in or Create an account to join the conversation.
- Jose M.
-
- Offline
- New Member
- Posts: 7
Without this, the problem is that it creates the directory within the directory administrator
e.g. = administrator/media/k2/attachments or administrator/images/documents
and from Frontend, can not find files, but from Backend yes.
K2.2.6.3
Thanks
Jose
Please Log in or Create an account to join the conversation.
- Jose M.
-
- Offline
- New Member
- Posts: 7
with the / character only works locally (xampp) by creating the folder in the root c :/ media/k2/attchments
but online not working.
Jose
Please Log in or Create an account to join the conversation.
- Jose M.
-
- Offline
- New Member
- Posts: 7
I modified the file administrator/components/com_k2/models/item.php
to add the path to the directory
line 496
before:
$path = $params->get('attachmentsFolder', NULL);
after:
$path = JPATH_ROOT.DS . $params->get('attachmentsFolder', NULL);
line 1021 :
before:
$path = $params->get('attachmentsFolder', NULL);
after:
$path = JPATH_ROOT.DS . $params->get('attachmentsFolder', NULL);
Jose
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
- Offline
- Platinum Member
- Posts: 529
Please Log in or Create an account to join the conversation.