by John R.
It turned out that on the web server, there is a setting that determines the max char length of variables and ours was set lower then what Moodle needs to function properly.