Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$dateCreated must not be accessed before initialization #32

Closed
thiagarajanm opened this issue Oct 30, 2022 · 1 comment
Closed

$dateCreated must not be accessed before initialization #32

thiagarajanm opened this issue Oct 30, 2022 · 1 comment

Comments

@thiagarajanm
Copy link

thiagarajanm commented Oct 30, 2022

Facing the issue after updating to the latest craft version

Error: Typed property putyourlightson\entrycount\models\EntryCountModel::$dateCreated must not be accessed before initialization

Craftcms Version: 4.3.1

I initialized the dateCreated and dateUpdated value in the models and it works.

@bencroker
Copy link
Collaborator

Fixed in ea95235 and released in version 3.0.1. This was caused by a breaking change in Yii 2.0.46.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants