On 7/26/07, Platonides Platonides@gmail.com wrote:
A php timeout? http://www.php.net/set_time_limit
Thank you for this suggestion. I have investigated the matter reading the page you pointed me to. It appears that set_time_limit is subject to the max_execution_time setting in php.ini. The set_time_limit() function just resets the timeout counter. In my case max_execution_time is set to 3000 seconds, which is plenty. My imports stop after about 60 seconds. In fact in one case I also received an error message which unfortunately I didn't manage to record. But it said the timeout was enforced by include/globalFunction.php. Unfortunately I was not able to locate in it a meaningful timeout value to increase.
For importing files, it's better to use a command line script (which will also be faster).
I guess you are referring to maintenance/importDump.php. Indeed if I don't find a workaround that option will have to do. I was hoping not to go down that root though. Had it been for myself only and as a one-off thing it wouldn't be a problem. Unfortunately whatever workflow I find it is for the users of an application that export xml transformed through an XSLT stylesheet. Ideally they would just export the file and import it in MediaWiki through the Special:Import page. It's crucial to keep it that simple for them. Luckily, this all works for small files (<150/180 KB) and this will help them already. But I'd love for them to be able to handle much bigger ones.
Beside, let's face it, if MediaWiki has a 2MB limit, I should be able to upload at least 1.5 MB without a problem! No?
Ciao!
Manu