We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When setting a usageLimit on a new Token and subsequently accessing/consuming the token, I'm getting an error about an unknown column:
usageLimit
Error Info: Array ( [0] => 42703 [1] => 7 [2] => ERROR: column "usagecount" does not exist LINE 1: UPDATE "tokens" SET "usageCount"=usageCount + 1, "dateUpdate... ^ HINT: Perhaps you meant to reference the column "tokens.usageCount". )
It sounds like something's wrong with new Expression('usageCount + 1'), but I'm useless when it comes to SQL expressions! 😢
new Expression('usageCount + 1')
$tokens->createToken(['controller/action', ['param' => 'val']], 100);
https://mydomain.com/path?token=EQhn5d29k1kT-1yjldVbi8gFRZf0v2h6
The text was updated successfully, but these errors were encountered:
8a4f94f
Thanks, that’s fixed for the next release.
To get the fix early. change your craftcms/cms requirement in composer.json to:
craftcms/cms
"require": { "craftcms/cms": "dev-develop#8a4f94fd46ff187c0a293c24713f58960d9f4ef2 as 3.1.17.1", "...": "..." }
Then run composer update.
composer update
Sorry, something went wrong.
No branches or pull requests
Description
When setting a
usageLimit
on a new Token and subsequently accessing/consuming the token, I'm getting an error about an unknown column:It sounds like something's wrong with
new Expression('usageCount + 1')
, but I'm useless when it comes to SQL expressions! 😢Steps to reproduce
usageLimit
:$tokens->createToken(['controller/action', ['param' => 'val']], 100);
;https://mydomain.com/path?token=EQhn5d29k1kT-1yjldVbi8gFRZf0v2h6
;Additional info
The text was updated successfully, but these errors were encountered: