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

Bug: Model calls builder before initializing #4036

Closed
jbotka opened this issue Dec 28, 2020 · 0 comments
Closed

Bug: Model calls builder before initializing #4036

jbotka opened this issue Dec 28, 2020 · 0 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@jbotka
Copy link
Contributor

jbotka commented Dec 28, 2020

Describe the bug
CRITICAL - 2020-12-28 10:39:14 --> Typed property CodeIgniter\Model::$builder must not be accessed before initialization
-0 server_root\system\Model.php(793): CodeIgniter\Model->builder()
-1 server_root\OS\Auth\Models\TokenModel.php(50): CodeIgniter\Model->__call('where', Array)
-2 server_root\OS\Auth\TokenManager.php(107): OS\Auth\Models\TokenModel->findByAccessToken('2a855fa54046767...')
-3 server_root\OS\Auth\Authentication.php(196): OS\Auth\TokenManager->validateToken()
-4 server_root\OS\Auth\Filters\LoginFilter.php(36): OS\Auth\Authentication->isLogged()
-5 server_root\system\Filters\Filters.php(181): OS\Auth\Filters\LoginFilter->before(Object(CodeIgniter\HTTP\IncomingRequest), NULL)
-6 server_root\system\CodeIgniter.php(403): CodeIgniter\Filters\Filters->run('/', 'before')
-7 server_root\system\CodeIgniter.php(333): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
-8 server_root\public\OS.launcher.php(47): CodeIgniter\CodeIgniter->run()
-9 {main}

CodeIgniter 4 version
CI 4.0.4 develop - latest

Affected module(s)
Model

Expected behavior, and steps to reproduce if appropriate
Processing. In the last sync with develop worked properly.

Context

  • OS: Windows 8.1
  • Web server Apache 2.4
  • PHP version 7.4.13
@jbotka jbotka added the bug Verified issues on the current code behavior or pull requests that will fix them label Dec 28, 2020
@jbotka jbotka closed this as completed Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

1 participant