fix: raise resource limits for synchronous pre-update backup (white screen) #236
Reference in New Issue
Block a user
Delete Branch "fix/preupdate-wsod-limits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Immediate safety net for the white screen reported when clicking Update with
backup_before_updateon.Cause
runPreActionBackup()(onExtensionBeforeUpdate/onExtensionBeforeUninstall) runs a full backup synchronously inside the update request with default PHP limits. On a large site (suite.dev is ~123 MB) it exceedsmax_execution_time/memory_limitmid-backup → white screen of death.Fix
Raise
set_time_limit(0)/max_execution_time/memory_limit=512M/ignore_user_abort(true)before the synchronous backup — mirroring the web-cron handler which already does this.This is a targeted safety net. The larger fix (full-screen backup screen + server-side redirect for core Joomla updates, so no synchronous backup runs in that request at all — Akeeba-style) is coming in a follow-up; these limits remain the guard for the extension-update/uninstall path.
Verify
php -lclean.https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i