- Posts: 12
COMMUNITY FORUM
file does not exists..please help me
- javier blanco
-
Topic Author
- Offline
- New Member
When i put the web in a new Linux hosting the k2 attachments funcionality didn't run anymore...
I tought it could be for three reasons:
Permissions: But it has 777
File Case sensitive: But i have enabled an apache module to avoid this problem
Database case sensitive....
Any ideas?. The attachment is created in k2 administrator, but the file is not upload, and the row of the database has an empty field "filename"
Thank you.
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
When my website was locally installed, I had no problem but now it is on amen, I have exactly the same problem. I can add attachment, but when you click on it, I get "File does not exit". The file does not exist on media/k2/attachment wich has 755 permission. Ftp is on on joomla...
I have this problem for several week and it is really a big issue for my business...
Thanks.
Please Log in or Create an account to join the conversation.
- Juan Pablo Campa
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
I'm not a programmer but in the file administrator/components/com_k2/models/item.php that seem to describe how attachment are treated, there is an information about allowing zip files as an attachment :
if($file["tmp_name"]){ $handle = new Upload($file); if ($handle->uploaded) { $handle->file_auto_rename = true; $handle->allowed[] = 'application/x-zip'; $handle->Process($savepath); $filename = $handle->file_dst_name; $handle->Clean(); $attachment = &JTable::getInstance('K2Attachment', 'Table'); $attachment->itemID = $row->id; $attachment->filename = $filename; $attachment->title = ( empty($attachments_titles[$counter])) ? $filename : $attachments_titles[$counter]; $attachment->titleAttribute = ( empty($attachments_title_attributes[$counter])) ? $filename : $attachments_title_attributes[$counter]; $attachment->store(); } else { $mainframe->redirect('index.php?option=com_k2&view=items', $handle->error, 'error');
$handle->allowed[] = 'application/x-zip';
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- javier blanco
-
Topic Author
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
Same, doesn't change anything.
Here is one thing you can try, use akeeba to install your site locally and check again. For me, pdf are attachable locally, not on host...
I wouldn't be bad if others join our conversation so that we find a solution.
Please Log in or Create an account to join the conversation.
- javier blanco
-
Topic Author
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
The function of availability of pdf is essential for me.
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
But since I don't know what is done by K2 when it try to attach pdf to an article, I can't be precise with my demand.
Does anyone know what method or what else should be on in order to attach pdf?
Thanx.
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- javier blanco
-
Topic Author
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
I asked my host who says he can't do anything...
An other thing is I upload from a mac. Could it have any relation ? Have you a PC ?
Where are the programmer to help us ? HELP ?
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
Do you work on a mac ?
Chrome can't work with administrator, safari's okay but very slow.
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- javier blanco
-
Topic Author
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- javier blanco
-
Topic Author
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- David GIRAUD-AUDINE
-
- Offline
- New Member
- Posts: 14
Be sure to have your browser and system up to date. Try on another PC too. You might be right concerning host but it would be so stupid to have a problem such as mine.
Please Log in or Create an account to join the conversation.
- javier blanco
-
Topic Author
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.