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
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developersGroup Testers

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: -