eZ publish keeps showing warnings when using fopen to open a non existing file

eZ publish keeps showing warnings when using fopen to open a non existing file.