Jon Posted January 19, 2021 Share Posted January 19, 2021 Hello All, I have started getting the following error when trying to add a image to a image field. This seems to just be effecting the field on 1 template any ideas and works on others? Error Wrong parameters for ProcessWire\WireDatabaseQueryException([string $message [, long $code [, Throwable $previous = NULL]]]) File: .../public_html/wire/core/FieldtypeMulti.php:345 335: 336: if($exception) break; 337: 338: $sort++; 339: } 340: 341: if($exception) { 342: /** @var \PDOException $exception */ 343: if($useTransaction) $database->rollBack(); 344: if($config->allowExceptions) throw $exception; // throw original 345: throw new WireDatabaseQueryException($exception->getMessage(), $exception->getCode(), $exception); 346: } else { 347: if($useTransaction) $database->commit(); 348: } Also had SQLSTATE[HY000}: General error: 1364 Field 'tag' doesn't have a default value Link to comment Share on other sites More sharing options...
elabx Posted January 19, 2021 Share Posted January 19, 2021 This just happened to me a few days ago when I disabled the tags on the image field (I think there is a Use Tags? checkbox). Adding it back fixed although I haven't had time to figure out what's going on. 1 Link to comment Share on other sites More sharing options...
Jon Posted January 19, 2021 Author Share Posted January 19, 2021 Thanks Elabx, I tried this but still having the same issue. " SQLSTATE[HY000]: General error: 1364 Field 'tag' doesn't have a default value" 1 Link to comment Share on other sites More sharing options...
Jon Posted January 20, 2021 Author Share Posted January 20, 2021 Manged to resolve this by deleting the tag field within the database, May have been something to do with a "Image Extra" field. 2 Link to comment Share on other sites More sharing options...
Pete Posted March 2, 2022 Share Posted March 2, 2022 @ryan I can confirm this on latest PW dev - having "tags" on an images field with extra custom fields, then removing tags from that field, then trying to upload images shows this error. For now I just re-enabled tags on that field. 1 Link to comment Share on other sites More sharing options...
Pete Posted June 17, 2022 Share Posted June 17, 2022 Haha just got caught out by it again 3 months later and end up here only to find my own comment on it ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now