News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Re: Check download area for single category (Solved)

Started by imjan, 01.07.2014 21:05:34

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

imjan

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.
  •  

Arno

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'.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

imjan

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.
  •  

imjan

Hi, I actually fixed the issue by adding the "set_time_limit ('600');" in the Check Files function in Scan.php file.

thanks,
  •  

Arno

When this should not work again, try the scan file below.


[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

imjan

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,
  •  

Arno

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?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

imjan

No, I did not see that message so it seems like remove_server_limits function is working.
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

imjan

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,
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

imjan

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,
  •  

Arno

The new architecture is in some parts very different.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •