Author Topic: doppelte Kommentare/double comments (Solution found)  (Read 9226 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr_Freud76

  • Pre-Newbie
  • Posts: 3
    • View Profile
doppelte Kommentare/double comments (Solution found)
« on: November 14, 2007, 02:20:13 AM »
Hi,

bin gerade dabei mir eine eigene Fotodatenbank aufzubauen und das mit 4Images.
Meine Lernkurve die letzten Wochen ist enorm, zumal ich eigentlich kein Programmierer bin - auch dank dieses Forums.

Nun bin ich aber wiedermal an meine Grenzen gestoßen.
Wenn man ein Kommentar posted erscheint dieses zweimal.
Und ich habe das Forum schon abgesucht leider kwinw Lösung gefunden und auch selbst gesucht, aber leider den Fehler nicht gefunden.
Nach dem posten zeigt PHP auch unten stehenden Fehler an!
Es passiert mit normalen Usern sowie auch mit Admins
Hat jemand eine Idee? Wo könnte ich suchen? An was kann das liegen?

------- short englisch version --------------
I've troubles with comments. They will be posted double. I dont know further.
after posting there ist this PHP Errorcode also.
it occurs with normal users and also with admins
Does anyone has a sugestion what could it be or where can i search?

Code: [Select]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\root-http\test.kuga28.at\includes\db_mysql.php on line 92
*** Solution found, Data deleted ***

Vielen Dank im Voraus/thanks in evidenz
Armin
« Last Edit: November 14, 2007, 10:26:26 PM by Dr_Freud76 »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: doppelte Kommentare/double comments
« Reply #1 on: November 14, 2007, 02:29:51 AM »
Quote
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\root-http\test.kuga28.at\includes\db_mysql.php on line 92

If login in admin account, what is say for all mySQL error ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Dr_Freud76

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: doppelte Kommentare/double comments
« Reply #2 on: November 14, 2007, 10:04:13 AM »
hallo, dies ist normal (leider), ausser die fehlermeldung ist sicher nicht i.o.
mir ist dies auch aufgefallen, dass wenn man einen reload (aktualisierung)
macht, kommentare doppelt geschrieben werden.

vielleicht schreibt jemand einen kleinen hack der dies unterbindet!

gruss ivan

Hallo Ivan,

also bei einem Reload könnte ich mir es erklären, da ja die Daten dann nochmals gepostet und eingetragen werden.
Da fragt Dich der Browser doch sogar ob Du die Daten nochmals schicken willst.
Bei mir passiert das leider jedesmal auch schon beim ersten Eintrag.

Liebe Grüße
Armin

Offline Dr_Freud76

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: doppelte Kommentare/double comments
« Reply #3 on: November 14, 2007, 10:08:48 AM »
Quote
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\root-http\test.kuga28.at\includes\db_mysql.php on line 92

If login in admin account, what is say for all mySQL error ?

I don't know exactly what you mean.
This mysql error message is the only one i get at my server.

greetings
Armin


Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: doppelte Kommentare/double comments
« Reply #4 on: November 14, 2007, 01:24:39 PM »
Quote
This mysql error message is the only one i get at my server.

If login in admin level, you see full error.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Dr_Freud76

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: doppelte Kommentare/double comments
« Reply #5 on: November 14, 2007, 09:51:41 PM »
Quote
This mysql error message is the only one i get at my server.

If login in admin level, you see full error.

Hi Thunderstrike,

i've tride it also with the admin Account, an there is only the same error i've allready postet. Not more and not less.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: doppelte Kommentare/double comments
« Reply #6 on: November 14, 2007, 09:53:55 PM »
What is say in web error logs (or in error_log file from root gallery in FTP) ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Dr_Freud76

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: doppelte Kommentare/double comments
« Reply #7 on: November 14, 2007, 10:25:18 PM »
Hi,

i've found the "malefactor".
I've checked all my modifikations step by step, and cheched every appropriated thread.
And the reason was a wrong instruction in the "Photo Preview Hack",
which already was corrected by V@no.

Thanks for reading.
This thread can be closed.

Armin