-
Notifications
You must be signed in to change notification settings - Fork 17
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
Sync of large wikis or with large files fails #42
Comments
@Alfredo-HMS For someone not that good with php, how do i add a call to @set_time_limit(300) in function _getSyncList? Would love to get this working. |
I have a similar probem with large list of files and have edited the admin.php file as suggested by Alfredo-HMS (I do not know, if I need to change the php.ini file as well and to what values; I am new to php). I get the following error message:
|
Changing the @set_time_limit you change the maximum execution time of the script. The max_execution_time in php.ini sets the same limit but globally. It's quite redundant to change both of them but to play safe we change them both. The time limit set in the admin.php should overwrite the time limit set globally but anyway check what time limit you have gobally set in php.ini The memory_limit in php.ini needs to be changed if you want to transfer big files like when you have attached big pdf to your pages. Set it as big as your largest file at least. We've set a limit of 256M and if works fine. The message you get says the script has run into a maximum limit of execution of 15 seconds. |
@Alfredo-HMS thank you, that works!
|
@Alfredo-HMS, gratefully by your suggestions I was able to sync a secondary wiki to a primary one. |
We have a quite large wiki (25.000 files) with quite some large media files. To make the plugin work we have to:
We think it'd be usefull not to have that time limit hardcoded to 30 but to include it as a parameter of the plugin and to include the second call in function _getSyncList
The text was updated successfully, but these errors were encountered: