Error: json_decode(): Argument #1 ($json) must be of type string, stdClass given: The event you are trying to register is not found