To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

Bazy danych SQL - PHP Warning: mysql_fetch_row()

maranta - 06-12-2018, 17:18
Temat postu: PHP Warning: mysql_fetch_row()
Witam,

Bardzo proszę o pomoc. Nie jestem pewna czy chodzi o problem z bazą danych.

Forum http://maranciaki.pl/forum/index.php kilka dni temu zostało przeniesione na nowy serwer. Hosting ten sam. Przenosili panowie z serwerowni.

Na pierwszy rzut oka wszystko jest w porządku. Forum się ładuje, ale nie można wejść w żaden temat, bo strona zaczyna się ładować bez końca.

Wersja forum 1.12.8

Od panów z serwerowni dostałam takie info:

Kod:
Skrypt się zapętla przez blad w PHP, stad problem.

[Thu Dec 06 00:36:52.850383 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850397 2018] [lsapi:notice] [pid 2209317] [client 54.36.148.199:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n
[Thu Dec 06 00:36:52.850402 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850478 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850514 2018] [lsapi:notice] [pid 2212767] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850574 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850629 2018] [lsapi:notice] [pid 2209317] [client 54.36.148.199:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n
[Thu Dec 06 00:36:52.850671 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850765 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850814 2018] [lsapi:notice] [pid 2212767] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850882 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850916 2018] [lsapi:notice] [pid 2212767] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.850969 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851024 2018] [lsapi:notice] [pid 2213118] [client 54.36.148.56:0] [host www.maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n
[Thu Dec 06 00:36:52.851035 2018] [lsapi:notice] [pid 2212767] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851054 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851086 2018] [lsapi:notice] [pid 2209317] [client 54.36.148.199:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n
[Thu Dec 06 00:36:52.851136 2018] [lsapi:notice] [pid 2212767] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851155 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851247 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851305 2018] [lsapi:notice] [pid 2209317] [client 54.36.148.199:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n
[Thu Dec 06 00:36:52.851333 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851428 2018] [lsapi:notice] [pid 2212767] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851450 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851470 2018] [lsapi:notice] [pid 2213494] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851575 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851692 2018] [lsapi:notice] [pid 2215946] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts
[Thu Dec 06 00:36:52.851721 2018] [lsapi:notice] [pid 2213494] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts^C
[Thu Dec 06 00:36:52.851730 2018] [lsapi:notice] [pid 2212767] [client 79.211.157.61:0] [host maranciaki.pl] Backend log: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/maranta/domains/maranciaki.pl/public_html/forum/viewtopic.php on line 2600\n, referer: http://maranciaki.pl/forum/search.php?search_id=newposts


Linijka kodu z viewtopic.php wraz z poprzednią linijką:

Kod:
$zap3 = @mysql_query("SELECT username,vote FROM phpbb_fb_messages_votes WHERE messid='$comment_id' order by id");
while((list($kto,$vote)=mysql_fetch_row($zap3))!==false)


Próbowałam szukać, czytać coś o tym błędzie, ale im bardziej czytam tym głupsza się robię.

Nie znam się na tym. Zrobiłam tyle ile potrafię - naprawę tabel w bazie danych, wywalenie śmieci z folderu cache, wgranie ponowne dobrej wersji viewtopic.php.

Na starym serwerze wszystko śmigało.

W kontroli systemu, mam co nieco na czerwono, ale to mam od dawna, bom modyfikowała forum nie raz.
Zastanawia mnie czy poprzednio też miałam na NIE to -

mod_deflate: : Nie (htaccess gzip: Tak)

Chyba było tak, ale nie pamiętam.

Proszę o pomoc, gdzie szukać przycyzny i jak naprawić. Jestem zielona, więc proszę mnie traktować jak gamoniowatą blondynkę.

Jeszcze jedna rzecz, ale to już drobiazg - mod topics anywhere podaje - To forum jest teraz wyłączone.
Tak, na chwilę ustawiłam forum niewidoczne dla gości, ale to ustawienie cofnęłam, a jednak ostatnie tematy się nie pokazują (na portalu tak, ale tam jest inna bajka a nie topic anywhere).

Nie wiem czy problem dotyczy bazy danych, więc nie wiem czy w dobrym miejscu o nim napisałam.

Będę wdzięczna za pomoc :roll: :oops:

xlesiu - 06-12-2018, 22:11

maranta, jak widzę błąd naprawiony?
maranta - 06-12-2018, 22:27

Tak, ale poradziłam sobie tak trochę obchodząc problem dookoła.
Wprowadziłam zmiany w viewtopic.php usuwając skrypt, odpowiedzialny za głosowaniaa (oceny kciukami), zamiast dojść dokładnie co powodowało błąd.
Podejrzewam, że jakaś błędna odpowiedź na zapytania do bazy.
Wolałabym naprawić to co powodowało zapętlenie i przywrócić skrypt.
Podziałalam trochę na wariata.
Na poprzednim serwerze (przeszłam z dedyka na ogólny serwer) nie było tego problemu.



Powered by phpBB modified by Przemo © 2003 phpBB Group