- Posts: 6
 
COMMUNITY FORUM
- Forum
 - K2 Community Forum
 - Communauté française K2
 - Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)
 
Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)
- phobosdesign
 - 
				
Topic Author
 - Offline
 - New Member
 
		Less
		More
		
			
	
		
			
	
						4 years 10 months ago				#177601
		by phobosdesign
	
	
		
			
	
			
			 		
													
	
				Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2) was created 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
					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.
- JoomlaWorks
 - 
				
 - Offline
 - Admin
 
		Less
		More
		
			
	
		- Posts: 6229
 
			
	
						4 years 10 months ago				#177653
		by JoomlaWorks
	
	
		
			
	
			
			 		
													
	
				Replied by JoomlaWorks on topic Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)			
			
				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.
					Perhaps your server log contains more info on the matter.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
 - 
				
 - Offline
 - Admin
 
		Less
		More
		
			
	
		- Posts: 6229
 
			
	
						4 years 10 months ago				#177655
		by JoomlaWorks
	
	
		
			
	
			
			 		
													
	
				Replied by JoomlaWorks on topic Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)			
			
				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...
					There's also a chance the DB write for the download count (hit) is slow for some reason...
Please Log in or Create an account to join the conversation.
- phobosdesign
 - 
				
Topic Author
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 6
 
			
	
						4 years 10 months ago				#177723
		by phobosdesign
	
	
		
			
	
			
			 		
													
	
				Replied by phobosdesign on topic Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)			
			
				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 ;-)
					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.
- JoomlaWorks
 - 
				
 - Offline
 - Admin
 
		Less
		More
		
			
	
		- Posts: 6229
 
			
	
						4 years 9 months ago				#177760
		by JoomlaWorks
	
	
		
			
	
			
			 		
													
	
				Replied by JoomlaWorks on topic Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)			
			
				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.
					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.
Please Log in or Create an account to join the conversation.
- phobosdesign
 - 
				
Topic Author
 - Offline
 - New Member
 
		Less
		More
		
			
	
		- Posts: 6
 
			
	
						4 years 9 months ago				#177804
		by phobosdesign
	
	
		
			
	
			
			 		
													
	
				Replied by phobosdesign on topic Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)			
			
				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!
					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.
- JoomlaWorks
 - 
				
 - Offline
 - Admin
 
		Less
		More
		
			
	
		- Posts: 6229
 
			
	
						4 years 9 months ago				#177811
		by JoomlaWorks
	
	
		
			
	
			
			 		
													
	
				Replied by JoomlaWorks on topic Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)			
			
				There's a guide for that here: docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced			
					Please Log in or Create an account to join the conversation.
- Forum
 - K2 Community Forum
 - Communauté française K2
 - Délais très long du téléchargement d'un fichier pdf (Pièces Jointes de K2)