Trying to get property 'image' of non-object in

How i fix this problem? This code is working on Xampp, but not on 000webhost.
please help me.

And this my error

And please tell me, is there something causing this error? thank you…

At a guess different PHP version?

You can toggle 000webhost versions of PHP via your control panel once the panel has resumed service.