That function does not exist verbatim on the J5 (J4) version, so here is the fix for that version:
Seems that the function calls home using cURL (if installed), which must be why it installs correctly on some servers (without cURL) and fails on others.
The address is coded with the ROT13...