The new version fixes the protocol issue and the php notice in line 24. (Which shows up in my development environment, btw.)
The php notice in line 21 is still there and i would be pleased if you could fix this. I like to have my debug.log as clean as possible, so that the real errors better show up.
Nevertheless i mark this topic as resolved, since the main issue is fixed.
Thanks for your work!