Hi!

After I tried to import images from local server using acidfree, I got this error message:
Fatal error: Maximum execution time of 30 seconds exceeded in /domains1/do285700/public/www_root/includes/common.inc on line 729

I know that this error - execution time is about server, but I am sure that 30 sec is good ammount - e.g. gallery2 or another scripts have no problem with it for mass import (200 MB) from local server, so if Acidfree has problem with it, and it dowsn't know to do it in allowed time (or stop and resume it when the allowed time will be near it's end), I think that there is some bug, or wrong part of code.
Output can't be fatal error.

Thanks
Igor
somvprahe.sk

CommentFileSizeAuthor
#4 signature.png52.26 KBaddicted_to_drupal

Comments

true-pal’s picture

I have the same problem. From about 30 pics on local server, only 15 - 18 pics will be imported to the gallery. During/ after import an empty page is visible, nothing else.
Is there already a solution?

lakyljuk’s picture

It can be solved by adding following line into your .htaccess file:

php_value max_execution_time 600

Which means, that script has 10 minutes to finish it's job. Maybe it's too much, you can experiment.

vhmauery’s picture

Status: Active » Closed (fixed)

Acidfree does a soft set of the max_execution_time variable specifically for the mass import submit. However, it may be possible that you are running in safe mode (or a different version of php or something) that does not allow a script to set the max execution time when running. I have my max_execution_time set to 30, but the script sets it to 600. I threw in a while(1) loop just for fun to see if it would time out after 30 seconds. It has been running for 2 minutes now. So I think Acidfree is behaving just as it should and this is a settings/configuration issue you are seeing.

addicted_to_drupal’s picture

StatusFileSize
new52.26 KB

I had the same problem, i went on the net and after a lot pages i found this one

the soluce

And it works. You have to go one location of drupal/sites/default folder then found the file defaulf.setting and add new line on it

ini_set('max_execution_time', 0);

You can also use others one like
ini_set('session.cookie_lifetime', 2000000);
it's as you wish

I hope it help's you