General developer forum

Trying to get property of non-object in php

 
Picture of Marcus Green
Re: Trying to get property of non-object in php
Core developersParticularly helpful MoodlersPlugin developersTesters

I would add the following line

$shakes = json_decode($events->CallAPI('GET', $url, $data));

var_dump($shakes);

exit();


And you should get more information (possible it will say that $shakes is null)

 
Average of ratings: -