Keyword

Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)

  • phobosdesign
  • phobosdesign's Avatar Topic Author
  • Offline
  • New Member
More
1 year 6 months ago #177601 by phobosdesign
Bonjour,

Lorsque j'ajoute un fichier pdf dans l'onglet "Pièces Jointes" d'un élément K2, suivant le poids du fichier en question, mon site souffre d'un délais considérable de déclenchement du téléchargement. J'ai beau regarder à tous les niveaux (Serveur, php, joomla...), je n'arrive pas à trouver où ce situe le problème.

www.caraibaffaires.com/nos-services/nos-catalogues.html
Cliquez sur n'importe quel bouton gris pour télécharger le catalogue ad hoc. Suivant la taille du fichier, le déclenchement est plus ou moins long. Parfois c'est très très long...

Avez-vous déjà rencontré ce souci ? Si oui comment y palier ?

D'avance merci !

Joomla! 3.9.23, K2 Version 2.10.3

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

More
1 year 6 months ago #177653 by JoomlaWorks
It doesn't seem normal. But the issue can range from some limited PHP setting to some security utility on your server (e.g. some weird ModSecurity rule).

Perhaps your server log contains more info on the matter.

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

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

More
1 year 6 months ago #177655 by JoomlaWorks
For the record, this is the executed code: github.com/getk2/k2/blob/47a4c0a0b57404d32684f5fca8f4d35eb95087a2/administrator/components/com_k2/models/item.php#L901-L920

There's also a chance the DB write for the download count (hit) is slow for some reason...

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

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

  • phobosdesign
  • phobosdesign's Avatar Topic Author
  • Offline
  • New Member
More
1 year 6 months ago #177723 by phobosdesign
Very difficult to found where I need to change something. I have looked everywhere (I think).
I noticed having no problem when I come back to the page and click on the same link. It downloading strait.
And it's also going worst when the PDF file is more than 2 Mo.

I'm still stuck

Thank you for your answer by the way ;-)

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

More
1 year 5 months ago #177760 by JoomlaWorks
This is definitely a server issue. My guess is there is some sort of proxying which causes the initial download to delay but once the file is proxied (and possibly cached), any subsequent download operation is much faster.

I would recommend loading your site on another server (or locally) if possible. If things work as expected (and there is no issue with another plugin for example), then you need to contact your hosting company and let them know.

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

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

  • phobosdesign
  • phobosdesign's Avatar Topic Author
  • Offline
  • New Member
More
1 year 5 months ago #177804 by phobosdesign
Hello, after investigation, I see a file named "kroos.jpg" in the root of the site. It says "Hacked By MiSh" in it.
Mean that my website has been hacked unfortunately. Maybe the reason of the problem...

I'll try to fix it anyway, any suggestion?

Thanks again!

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

More
1 year 5 months ago #177811 by JoomlaWorks

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

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


Powered by Kunena Forum