Support Home Page › Forums › Joomla Software › Easy Folder Listing Pro Plugin › Error when downloading a lot of files
- This topic has 9 replies, 2 voices, and was last updated 4 weeks, 1 day ago by Michael Gilkes.
-
AuthorPosts
-
October 31, 2024 at 1:21 pm #5974serge73Participant
Hello
On a big folder (850 Mo / 247 Files) , I have the error
2006
MySQL server has gone away
What can I do to correct the problem ?
Thank you for your help
Serge
November 4, 2024 at 8:55 pm #5976Michael GilkesKeymaster@serge73. Thanks for posting.
There is nothing that I can think of with my extension that would trigger that error, regardless of how many files or how large the files are. There is no database interaction that is dependent on the number or size of the files.
So, you should probably check your error logs or Joomla debug info to find out what triggered that error.
November 14, 2024 at 11:05 am #5978serge73ParticipantSorry for my late response, but I was seek.
As I see the problem come from timeout with the bdd
I see a solution :
Either your processing takes too long, in which case you should maintain regular exchanges with the database via mysql_ping().
Is it possible for you to do it regularly during the creation of the archive file ?
Best Regards
Serge
November 18, 2024 at 10:07 am #5979serge73ParticipantHello
It is a great problem for me this error during the creation of the zipBest Regard
November 20, 2024 at 7:41 pm #5981Michael GilkesKeymaster@serge73. Thanks for following up.
You will need to describe what you are doing when the error is displayed. Also, you need to provide PHP error log information so, we can see what line of code the error is triggered at.
Is this related to only when you attempt to download a zip archive of a set of files? How many files are you allowing to be zipped up and what is the maximum size of the zip file that you set?
November 21, 2024 at 12:43 pm #5982serge73ParticipantHello Micheal
The problem arises when there are a lot of photo files to download and the host’s server is loaded, the file download process falls into a MySQL time-out when the archive file is created.The solution on a dedicated server would be to modify the Mysql settings.
But on a shared server like ours, like many Joomla users, it’s impossible to change the Mysql settings.
The recommended solution, then, is to add regular exchanges with the database using mysql_ping() to avoid time-out.Thanks for finding a solution
November 27, 2024 at 1:12 pm #5984serge73ParticipantNo possibility ?
November 28, 2024 at 10:02 am #5987Michael GilkesKeymasterHi Serge. Could you please respond to my questions? I can’t help you if I can’t replicate the problem. I need to know what you are doing that triggers your error.
You haven’t provided any error log entries, which would typically list what line the error occurs at. Nor have you told me what steps you have taken to trigger that error. Nor what settings you have used for creating the archive (zip file).
In creating a zip archive, the extension records which files are downloaded, which is the only reference to updating the MySQL database. It would be important to know what settings you used, as well as how many files you are attempting to zip in one archive, and the total size of those files.
Even if I was attempting to change the code, I need to know how to test it. I need to know how to replicate the error, so that I can test if the error is fixed. Otherwise, I would be making changes and guessing whether they worked or not. I trust you understand my point of view.
Kind regards
- This reply was modified 1 month ago by Michael Gilkes.
December 3, 2024 at 7:15 am #5992serge73ParticipantI just send you a mail
Best Regards
December 3, 2024 at 11:35 pm #6366Michael GilkesKeymaster@serge73. Thanks, I responded to your email.
-
AuthorPosts
- You must be logged in to reply to this topic.