FATAL ERROR(1): "Using $this when not in object context"