Active
Project:
Parallel queue
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2020 at 15:45 UTC
Updated:
24 Nov 2020 at 16:12 UTC
Jump to comment: Most recent
After installing module on Drupal 8.9.7, simple query runner via drush starts shows the error:
$ drush queue:run my_queue
In Connection.php line 701:
SQLSTATE[HY000]: General error: user-supplied statement does not accept constructor arguments: INSERT INTO {cache
_bootstrap} (cid, expire, created, tags, checksum, data, serialized) VALUES (:db_insert_placeholder_0, :db_insert
_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placehol
der_5, :db_insert_placeholder_6) ON DUPLICATE KEY UPDATE cid = VALUES(cid), expire = VALUES(expire), created = VA
LUES(created), tags = VALUES(tags), checksum = VALUES(checksum), data = VALUES(data), serialized = VALUES(seriali
zed);
....
In Connection.php line 405:
SQLSTATE[HY000]: General error: user-supplied statement does not accept constructor arguments
....
PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: user-supplied statement does not accept constructor arguments in /srv/k.dev.brick.ru/brick/web/core/lib/Drupal/Core/Database/Connection.php:405
If I uninstall module - all becomes work well. Is this a module issue, or something wrong with Drupal database?
Comments
Comment #2
murzThis happens if I use entityStorage in my
QueueWorker::processItem()function, for example this line throws the error:If I comment-out this line (and all other logic, depending on it) - all becomes work well.