System Information
- Strapi Version: 4.1.12
- Operating System: ubuntu
- Database: mysql
- Node Version: 16.17.0
- NPM Version: 8.15.0
- Yarn Version:
When trying to us await strapi.plugins["users-permissions"].services.user.sendConfirmationEmail(user);
i get the below error. I do not get the error when a user registers and the system sends an email, only this database error when I call it directly from a controller I also tried from a cron.
the database debug seems like it should work. i don’t understand the error.
It dies on /node_modules/@strapi/plugin-users-permissions/server/services/user.js:51 in edit()
I am not sure what the next steps to debugging this are.
method: 'first',
options: {},
timeout: false,
cancelOnTimeout: false,
bindings: [ 8, 1 ],
__knexQueryUid: 'SJpSDtbL4CNxqVZBaLunQ',
sql: 'select `t0`.* from `up_users` as `t0` where (`t0`.`id` = ?) limit ?'
}
[2022-09-03 05:06:00.056] error: Undefined binding(s) detected when compiling WHERE. Undefined column(s): [t0.id] query: where `t0`.`id` = ?
Error: Undefined binding(s) detected when compiling WHERE. Undefined column(s): [t0.id] query: where `t0`.`id` = ?
at QueryCompiler_MySQL.toSQL (/app/artefy-shared/node_modules/knex/lib/query/querycompiler.js:110:13)
at compileCallback (/app/artefy-shared/node_modules/knex/lib/formatter/formatterUtils.js:13:19)
at rawOrFn (/app/artefy-shared/node_modules/knex/lib/formatter/wrappingFormatter.js:225:7)
at QueryCompiler_MySQL.whereWrapped (/app/artefy-shared/node_modules/knex/lib/query/querycompiler.js:1066:17)
at QueryCompiler_MySQL.where (/app/artefy-shared/node_modules/knex/lib/query/querycompiler.js:555:34)
at /app/artefy-shared/node_modules/knex/lib/query/querycompiler.js:130:40
at Array.map (<anonymous>)
at QueryCompiler_MySQL.select (/app/artefy-shared/node_modules/knex/lib/query/querycompiler.js:129:35)
at QueryCompiler_MySQL.toSQL (/app/artefy-shared/node_modules/knex/lib/query/querycompiler.js:73:29)
at Builder.toSQL (/app/artefy-shared/node_modules/knex/lib/query/querybuilder.js:83:44)
at ensureConnectionCallback (/app/artefy-shared/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:4:30)
at Runner.ensureConnection (/app/artefy-shared/node_modules/knex/lib/execution/runner.js:307:20)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Runner.run (/app/artefy-shared/node_modules/knex/lib/execution/runner.js:30:19)
at async Object.execute (/app/artefy-shared/node_modules/@strapi/database/lib/query/query-builder.js:354:22)
at async Object.findOne (/app/artefy-shared/node_modules/@strapi/database/lib/entity-manager.js:118:22)```