Cannot create pdf or send email

Please help I cannot create invoice pdf or send invoice emails since I updated my installation to the new one, it only does that when I use custom theme; the same theme was working before I updated to the new version.

@mavusom if you like, you can send me your backup file to and I will try to reproduce the problem locally.