Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import time period(secs) issue #50

Open
aaaaaa opened this issue Feb 27, 2012 · 4 comments
Open

Import time period(secs) issue #50

aaaaaa opened this issue Feb 27, 2012 · 4 comments

Comments

@aaaaaa
Copy link

aaaaaa commented Feb 27, 2012

Hi,

I'm trying to migrate Evo 1.0.5 to Revo 2.0.8 with provisioner 1.0.0, but I have around 5000 resources and provisioner doesnt complete the migration.

I've tried to increase the max_execution_time in my php.ini and Import time period(secs): in the provisioner settings and no luck. Any suggestions?

Apache error log (Wamp): [error] [client ::1] PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:\wamp\www\revolution\core\xpdo\xpdo.class.php on line 424, referer:

@shamblett
Copy link
Owner

It looks as though the ini set call Provisioner uses to set the backend execution time doesn't work in your environment, PHP doesn't guarantee this. You could try upping the max execution time in your php.ini, it would be interesting to see what value you end up with if this is possible.

@aaaaaa
Copy link
Author

aaaaaa commented Feb 28, 2012

shamblett:

Thanks! I've changed the php.ini settings and the Import time period, but always get the fatal error at 120 seconds,no matter the values, the httpd-default.conf has this value: Timeout 300.

I think that there's an issue with the set_time_limit setting, but i dont know where to change it.

@aaaaaa
Copy link
Author

aaaaaa commented Feb 28, 2012

Shambet:

I make it work!! its a PROVISONER PROBLEM, not the server. I don't even need to make any changes to the php.ini file.

In: \core\components\provisioner\processors\evoimport\evoimport.php set timeout from 120 to 0:

/* Timeout, default to 2 mins */
if ( isset($_POST['pv-ct-import-timeout'])) {

$timeout = $_POST['pv-ct-import-timeout'];

} else {

$timeout = 0;

}

In: \core\components\provisioner\model\provisioner\provisioner.class.php replace:

/* Set the time limit, or try to */
set_time_limit($timeout);

Replace with:

    /* Set the time limit, or try to */
    set_time_limit(0);

In Provisioner's Import time period(secs): I can change values freely without the 120 seconds limit.

I think you should add this in a future Provisioner release.

@shamblett
Copy link
Owner

Yes, good catch, this has been bugging people for a while, I'll incorporate this soon as.
Thanks

@shamblett shamblett reopened this Feb 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants