Author Topic: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch  (Read 7824 times)

0 Members and 1 Guest are viewing this topic.

Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« on: July 22, 2013, 02:38:35 PM »
Hey all,

I'm new in working with 4images and have a little problem:
I've added two new image_fields and it worked perfect, but then I tried to show them also in the gallery search and then it happend:
Something went wrong.

Now, if you are trying to upload a picture and fill in some specific names in the fields "name", "Flugzeugtyp" and "Registration" you'll get an error message like this:

DB ErrorBad SQL QueryREPLACE INTO 4images_wordmatch (image_idword_idname_matchdesc_matchkeys_matchreg_matchtyp_matchVALUES (2830000)
Column count doesn't match value count at row 1


The strange thing is: This error message appears not always when uploading a picture.
I think it only appears if you type in two single words in one of the three fields named above.
But I'm not sure if this is right so I added a new category called "Test" where you can upload some pictures if you want to check that or something else.

Maybe this can help you: You also can not search for the "Registration" or the "Flugzeugtyp".

I hope you can help me! If you need some more information or the content of some files simlpy write it ;)

I also speak German so an answer in German would also be very helpful!

Thanks a lot!

Patrick 

Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #1 on: July 24, 2013, 07:29:28 PM »
Ich schilder das ganze jetzt mal doch noch in Deutsch:

Nachdem ich vor kurzem zwei neue image_fields angelegt habe (was auch funktioniert hat) bekommt man nun beim Upload der Bilder bzw. beim Suchen nach bestimmten Angaben die folgende Fehlermeldung:

DB ErrorBad SQL QueryREPLACE INTO 4images_wordmatch (image_idword_idname_matchdesc_matchkeys_matchreg_matchtyp_matchVALUES (2830000)
Column count doesn't match value count at row 1


Das komische ist, dass diese Meldung nicht immer beim Upload von Bildern kommt, sondern nur wenn man ganz bestimmte Wörter in die neuen image_fields eingibt.
Ich habe jedoch noch nicht herauslesen können bei welchen Wortfolgen das so ist.
 
Über jede Hilfe wäre ich dankbar!
Sollten noch weitere Informationen benötigt werden, bitte Bescheid sagen ;)

Grüße und Danke,
Patrick

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #2 on: July 24, 2013, 07:59:40 PM »
Lese dich hier mal durch, da wird dein Fehler besprochen
http://www.4homepages.de/forum/index.php?topic=1313.0

Wie es aussieht stimmen die Anzahl der Spalten (DB) nicht mit der Eingabe überein ?
Danke Harald




Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #3 on: July 26, 2013, 11:08:21 AM »
Lese dich hier mal durch, da wird dein Fehler besprochen
http://www.4homepages.de/forum/index.php?topic=1313.0

Wie es aussieht stimmen die Anzahl der Spalten (DB) nicht mit der Eingabe überein ?

Jup, das wars ;)

Nun kann man zumindest nach der Registration suchen, nach dem Flugzeugtyp ("Aircraft") komischerweise aber nicht?


Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #4 on: July 26, 2013, 06:18:21 PM »
Danke Harald




Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #5 on: July 26, 2013, 06:20:03 PM »
Geht leider immernoch nicht...

Grüße,
Patrick

Rembrandt

  • Guest
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #6 on: July 26, 2013, 08:33:00 PM »
...Nachdem ich vor kurzem zwei neue image_fields angelegt habe....
wo hast die überall angelegt?

Quote
Das komische ist, dass diese Meldung nicht immer beim Upload von Bildern kommt, sondern nur wenn man ganz bestimmte Wörter in die neuen image_fields eingibt.
Ich habe jedoch noch nicht herauslesen können bei welchen Wortfolgen das so ist.
Passiert das vielleicht wenn die wörter hochkommatas enthalten?

Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #7 on: July 26, 2013, 09:15:24 PM »
Du hast mich auf die richtige Spur gebracht ;)

Leerzeilen muss man natürlich mit * markieren  :oops:

Danke!

Rembrandt

  • Guest
Re: DB Error: Bad SQL Query: REPLACE INTO 4images_wordmatch
« Reply #8 on: July 27, 2013, 04:41:17 AM »
...
Leerzeilen muss man natürlich mit * markieren  :oops:
...
aha...ja...na dann :)