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

Properly handle 'Allowed memory exhausted' error #570

Closed
antonkorotkov opened this issue Oct 6, 2020 · 4 comments
Closed

Properly handle 'Allowed memory exhausted' error #570

antonkorotkov opened this issue Oct 6, 2020 · 4 comments
Assignees

Comments

@antonkorotkov
Copy link
Contributor

This error may happen when trying to process large files. Need to handle this error and try to skip the problem file. Currently, the process stucks on the same large file preventing others to be processed and breaking the progress bar.

@antonkorotkov antonkorotkov added this to the v3.1.0 milestone Oct 6, 2020
@antonkorotkov antonkorotkov self-assigned this Oct 6, 2020
@antonkorotkov
Copy link
Contributor Author

Current progress. Needs to be tested.

image

@antonkorotkov
Copy link
Contributor Author

Testing this on GoDaddy now.

@antonkorotkov
Copy link
Contributor Author

GoDaddy was able to complete non-images sync successfully by skipping items that it cannot process due to memory limit and providing a hint as on the screenshot above. Going to test it with uploading by chunks enabled.

@antonkorotkov
Copy link
Contributor Author

Successfully processed large files on GoDaddy with help of WP_STATELESS_MEDIA_UPLOAD_CHUNK_SIZE constant. (10 * MB_IN_BYTES)

@ewsopp FYI

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

1 participant