You'll need to debug this further. Looking at the code it seems like this function is returning FALSE instead of returning a file name for the Open Case activity:
CRM_Activity_BAO_Activity::getFileForActivityTypeId($this->_activityTypeId,
'Case'
)
I "thought" this might be caused by the expected option_value.name for that activity type being modified somehow. But that condition actually returns a very explicit fatal error:
The Open Case activity type is missing or disabled. Please have your site administrator check Administer > Option Lists > Activity Types for the CiviCase component.
So you'll need to add debug statements to figure out why getFileForActivityTypeId is failing in your install(s).
can you check if this happens on the demo server?