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

$model is undefined - SalesTaxService.php #35

Closed
curtismorte opened this issue Jun 29, 2021 · 1 comment
Closed

$model is undefined - SalesTaxService.php #35

curtismorte opened this issue Jun 29, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@curtismorte
Copy link

Craft Version: 3.6.14
Craft Commerce Version: 3.2.14.1
Craft Avatax Version: 2.1.3
PHP Version: 8.0.2

$model is undefined in /src/services/SalesTaxService.php on line 714

When running craft-avatax in a production context ('devMode' => false), we get an internal server error because the variable $model is undefined. Specifically speaking, the errors happens here when $model is used within the logging statement.

The source of the problem is that $model is only defined when devMode is enabled. See here.

This issue is related to #34

@siffring
Copy link
Member

Thanks @curtismorte. We'll get this fixed.

@siffring siffring added the bug Something isn't working label Jun 29, 2021
imagehat added a commit that referenced this issue Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants