4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Dr_Freud76 on November 14, 2007, 02:20:13 AM

Title: doppelte Kommentare/double comments (Solution found)
Post by: Dr_Freud76 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
Title: Re: doppelte Kommentare/double comments
Post by: thunderstrike 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 ?
Title: Re: doppelte Kommentare/double comments
Post by: Dr_Freud76 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
Title: Re: doppelte Kommentare/double comments
Post by: Dr_Freud76 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

Title: Re: doppelte Kommentare/double comments
Post by: thunderstrike 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.
Title: Re: doppelte Kommentare/double comments
Post by: Dr_Freud76 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.
Title: Re: doppelte Kommentare/double comments
Post by: thunderstrike 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) ?
Title: Re: doppelte Kommentare/double comments
Post by: Dr_Freud76 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" (http://www.4homepages.de/forum/index.php?topic=7294),
which already was corrected  (http://www.4homepages.de/forum/index.php?topic=7294.msg42213#msg42213)by V@no.

Thanks for reading.
This thread can be closed.

Armin