Keyword

file does not exists..please help me

  • javier blanco
  • javier blanco's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #94541 by javier blanco
file does not exists..please help me was created by javier blanco
Hi!, i had a web with the k2 marticle management running perfectly in a Windows server hosting.

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
  • David GIRAUD-AUDINE's Avatar
  • Offline
  • New Member
More
13 years 6 months ago #94542 by David GIRAUD-AUDINE
Replied by David GIRAUD-AUDINE on topic file does not exists..please help me
I have exactly the same problem as you have. My web provider is amen.fr if it helps.

 

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.

More
13 years 6 months ago #94543 by Juan Pablo Campa
Replied by Juan Pablo Campa on topic file does not exists..please help me
i realised that it only happens with pdf, but it runs with images...

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

  • David GIRAUD-AUDINE
  • David GIRAUD-AUDINE's Avatar
  • Offline
  • New Member
More
13 years 6 months ago #94544 by David GIRAUD-AUDINE
Replied by David GIRAUD-AUDINE on topic file does not exists..please help me
Thanks for your remark. It is the same for me, jpg are allowed, not pdf.

 

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');
Maybe that I should add pdf as allowed at this line :
$handle->allowed[] = 'application/x-zip';
If I'm right, what should I add ?

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

  • David GIRAUD-AUDINE
  • David GIRAUD-AUDINE's Avatar
  • Offline
  • New Member
More
13 years 6 months ago #94545 by David GIRAUD-AUDINE
Replied by David GIRAUD-AUDINE on topic file does not exists..please help me
I confirm, only pdf can't be attached ...???

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

  • javier blanco
  • javier blanco's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago #94546 by javier blanco
Replied by javier blanco on topic file does not exists..please help me
thank you, I've just tried it, adding the line 'application/pdf', but it didn't run...

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

  • David GIRAUD-AUDINE
  • David GIRAUD-AUDINE's Avatar
  • Offline
  • New Member
More
13 years 6 months ago #94547 by David GIRAUD-AUDINE
Replied by David GIRAUD-AUDINE on topic file does not exists..please help me
I replace zip line by pdf line because I don't know how to ADD a line.

 

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
  • javier blanco's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago #94548 by javier blanco
Replied by javier blanco on topic file does not exists..please help me
It's not necessary to try it locally, because i confirm that when the website was on an older host it ran, and it was only when i change the web to another host when it became bad...the difference is that before it was an windows hosting, and now a Linux one. Both have 777 permission..

 

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

  • David GIRAUD-AUDINE
  • David GIRAUD-AUDINE's Avatar
  • Offline
  • New Member
More
13 years 6 months ago #94549 by David GIRAUD-AUDINE
Replied by David GIRAUD-AUDINE on topic file does not exists..please help me
that exceeds my competences, I hope that somebody of more qualified will appear.

 

The function of availability of pdf is essential for me.

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

  • David GIRAUD-AUDINE
  • David GIRAUD-AUDINE's Avatar
  • Offline
  • New Member
More
13 years 6 months ago #94550 by David GIRAUD-AUDINE
Replied by David GIRAUD-AUDINE on topic file does not exists..please help me
According to a technician on another forum, it appears to be a host based problem. I've been proposed to ask host support if their logs show something.

 

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.


Powered by Kunena Forum