Problem/Motivation

The SDKDecorator is injected in several services. Once injected, the "_construct" method is called, which calls init. Inside init, when no api key is set an error is thrown, but this error is thrown on every site, including the settings page, where the api key can be set.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork posthog-3585425

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grevil created an issue. See original summary.

grevil’s picture

Assigned: Unassigned » anybody
Status: Active » Needs review

The SdkDecorator implementation was weird in general... This should clean it up, please review!

anybody’s picture

Assigned: anybody » grevil
Status: Needs review » Reviewed & tested by the community

Left a comment.

grevil’s picture

Assigned: grevil » Unassigned

Thanks! Once everything is green, we can merge this!

  • grevil committed a8c9defb on 2.x
    feat: #3585425 Posthog PHP kills the entire site, when installed without...
grevil’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.