$userNode is not defined and therefor this function will cause fatal errors. 3.8 is not affected because the fromString function was introduced in 3.9.