jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: imjan on 01.07.2014 21:05:34

Title: Re: Check download area for single category (Solved)
Post by: imjan on 01.07.2014 21:05:34
Hello, we had this function in 1.9.2 version where we could scan the individual category instead of all the download area, is this functionality not available in 3.2.8? if it is available can you please let me know how to access it if it is not available any plans of integrating it?

Thanks you for your time.
Title: Re: Check download area for single category
Post by: Arno on 02.07.2014 13:04:22
Hi,
the functionality to scan only a single category is currently not integrated.
Please note that the new scan function should be much faster as early versions.

Should many users have again timeout problems, we can add this option again. But in the first step should this users try, to set much higher the value for the server setting 'max_execution_time'.
Title: Re: Check download area for single category
Post by: imjan on 02.07.2014 14:44:06
Arno, thank you for the reply, issue is that my hosting provider does not allow more than 30 seconds max execution time and since I have 100's of categories with thousands of files the script times out after 30 second. I am not sure in PHP if there is a way to extend the time for a particular page only. for 1.9.2 version I wrote a script that would call that category page for all the new categories so I did not ran into time out issue.
Title: Re: Check download area for single category (Solved)
Post by: imjan on 02.07.2014 15:28:36
Hi, I actually fixed the issue by adding the "set_time_limit ('600');" in the Check Files function in Scan.php file.

thanks,
Title: Re: Check download area for single category (Solved)
Post by: Arno on 03.07.2014 11:10:43
When this should not work again, try the scan file below.


[gelöscht durch Administrator]
Title: Re: Check download area for single category (Solved)
Post by: imjan on 03.07.2014 15:13:01
Arno, thank you for the update, I tried the new scan file. it takes about 43 seconds to get to step 3 and then exactly at 1min 20 seconds the process dies. Max files it has processed is 9185 downloads and 1099 categories. Please let me know what else can be done. Thank you for your support.

thanks,
Title: Re: Check download area for single category (Solved)
Post by: Arno on 03.07.2014 15:16:23
Okay. Have you seen in the window a message like:
Note: The time limit on the server could not be changed/increased!
in the head section?
Title: Re: Check download area for single category (Solved)
Post by: imjan on 03.07.2014 15:49:58
No, I did not see that message so it seems like remove_server_limits function is working.
Title: Re: Check download area for single category (Solved)
Post by: Arno on 03.07.2014 16:19:25
Okay. But it exist still a other setting which can produce the timeouts.
Quote from php.net
QuoteYour web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.
Also MySQL limits are possible.

Please contact your hoster and get from him the really server limits. And also what you can do to get more time for the scan script.
Title: Re: Check download area for single category (Solved)
Post by: imjan on 03.07.2014 17:36:44
I did contacted my hosting provider but since I am on shared hosting that is why they don't allow longer time execution. can you please let me know if you plan to include the scan by category functionality back?

thanks,
Title: Re: Check download area for single category (Solved)
Post by: Arno on 03.07.2014 18:14:06
Quote... that is why they don't allow longer time execution.
I guessed as much.
But when you have so much files, you should move to a better hoster.
It is not useful to save on the wrong things.  ;)

I can you not say in this moment, whether we will add again the category scan option.
Currently it is more important to get soon a stable release.
Title: Re: Check download area for single category (Solved)
Post by: Arno on 03.07.2014 18:33:50
QuoteWarning: Creating default object from empty value in /home1/irfan/p........../tmpl/default.php on line 323
Please use the default error level in your Joomla config.
But the message will be fixed in next beta release.
Title: Re: Check download area for single category (Solved)
Post by: imjan on 03.07.2014 18:44:08
Quote from: Arno on 03.07.2014 18:14:06
I can you not say in this moment, whether we will add again the category scan option.
Currently it is more important to get soon a stable release.

Yes I understand, not a problem.

I was looking at scancat.php file from 1.9.2 version do you think I can use it to update for current version or the new architecture is totally different? I will be more than happy to share the code if I can get it working.

thanks,
Title: Re: Check download area for single category (Solved)
Post by: Arno on 03.07.2014 18:53:48
The new architecture is in some parts very different.