I've managed to reproduce the issue by switching back to PHP version 5.2.
WordPress recommends at least PHP version 5.6
https://wordpress.org/about/requirements/
They do say WordPress an run on 5.2.4 but you may be exposing yourself to security issues.
I'll start looking at why this fails with PHP version 5.2, but I also highly recommend you look into changing your PHP version to at least 5.6 (version 7.0 is the latest).
If the website is on a shared web hosting you should be able to log into the management website (e.g. if it's cpanel the address is websitename.com/cpanel) and find and option to change PHP version.
Usually switching PHP version like this won't have an consequences, particually when you're already running such an old version. But if there are issues you can normally switch back (but if you're conceed contact your host about this). And of course, always ensure you have a backup of your website before making any changes.