Potentially useful information: We were also experiencing odd issues with our photo gallery software. I was finally able to track those issues down to an imagejpeg() call that was passing in an empty string as the second argument, which is no longer supported since PHP 5.4 Perhaps the vaultwiki issue is similar?