Solution to update timeout errors

It’s been a while since I’ve been able to update using the built in updater without getting PHP timeout errors that give “FormatException: SyntaxError:” messages and result in the update not completing.

Using GitHub and Composer for updates wasn’t doable on my shared hosting as the php-cli version is 7.4 which gives errors with Composer.

Manually updating each time by downloading and uploading the zip was a bit time consuming so I’ve made a bash script for updates that works on my hosting environment. It would probably need to be modified for different hosting environments but the code is here if anyone is interested:

3 Likes