Empty string supplied as input when parsing content

I have fixed the problem.

The main problem was that I was calling the function mb_find_my_image from index.php. After I’ve removed the calling from index.php, everything works as it should.