How to solve this problem in Soft reject theme

opendir() is not needed with WordPress themes because it is not particularly safe. Some hosts will disable it by default. http://envato.d.pr/1bxkS