Jump to content
Jon

Wrong parameters for ProcessWire\WireDatabaseQueryException

Recommended Posts

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

Share this post


Link to post
Share on other sites

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. 

  • Like 1

Share this post


Link to post
Share on other sites

Thanks Elabx, I tried this but still having the same issue. " SQLSTATE[HY000]: General error: 1364 Field 'tag' doesn't have a default value"

 

  • Like 1

Share this post


Link to post
Share on other sites

Manged to resolve this by deleting the tag field within the database, May have been something to do with a "Image Extra" field.  

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...