Statistik |
Beiträge: 144.530 (Täglich: 19,19 )
Themen: 16.700
Mitglieder: 13.209
Neuestes Mitglied: zitronentee.
Ausl. d. letzten Minute: 159%
Ausl. d. letzten 5 Minuten: 160%
Ausl. d. letzten 15 Minuten: 160%
Aktulle Uhrzeit: 11:05
Freier Webspace: 4.02 TB
PHP-Version: 7.4.33
|
|
|
|
|
Umstellung auf PHP 5.6 dann fehler meldung |
|
Umstellung auf PHP 5.6 dann fehler meldung |
|
Mahlzeit zusammen
Bin jetzt seit 2 tagen an dir Umstelleund meines Wbb 2.3.6 er beschäftigt und habe soweit alles gemacht und getan, das mein forum auf php 5.6 laufen sollte, hab aber immer wieder ein fehler.
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
|
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 27
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 28
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 28
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 31
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 33
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 33
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 34
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 34
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 35
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 35
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 36
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85 |
|
Hab mal die originale und ne modifizierte Datei angehängt, vielleicht könnt ihr mir ja dabei helfen.
Vielen lieben Dank schon mal
|
|
23.04.2017 15:34 |
|
|
|
RE: Umstellung auf PHP 5.6 dann fehler meldung |
|
|
|
|
|
Zitat: Original von 16V-Cabrio
Mahlzeit zusammen
Bin jetzt seit 2 tagen an dir Umstelleund meines Wbb 2.3.6 er beschäftigt und habe soweit alles gemacht und getan, das mein forum auf php 5.6 laufen sollte, hab aber immer wieder ein fehler.
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
|
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 27
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 28
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 28
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 31
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 33
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 33
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 34
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 34
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 35
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 35
Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/web681/html/forum/counter.php on line 36
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /var/www/web681/html/forum/counter.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web681/html/forum/counter.php:27) in /var/www/web681/html/forum/acp/lib/functions.php on line 85 |
|
Hab mal die originale und ne modifizierte Datei angehängt, vielleicht könnt ihr mir ja dabei helfen.
Vielen lieben Dank schon mal |
|
|
|
|
|
Habe das gefunden
Achtung: Da es sich bei der MySQLi-Erweiterung um eine experimentelle Erweiterung handelt, kann die einwandfreie Funktionsweise von MySQL 5 oder höher nicht garantiert werden. Die verwendeten Skripts wurden mit MySQL 5.0.24 getestet und Sie sollten PHP 5.1 oder höher für die MySQLi-Erweiterungen verwenden.
__________________ Wetter-Forum
Kleinanzeigen Support
|
|
23.04.2017 17:35 |
|
|
|
RE: Umstellung auf PHP 5.6 dann fehler meldung |
|
|
Zitat: Original von charly
Habe das gefunden
Achtung: Da es sich bei der MySQLi-Erweiterung um eine experimentelle Erweiterung handelt, kann die einwandfreie Funktionsweise von MySQL 5 oder höher nicht garantiert werden. Die verwendeten Skripts wurden mit MySQL 5.0.24 getestet und Sie sollten PHP 5.1 oder höher für die MySQLi-Erweiterungen verwenden. |
|
|
Hallo,
Das stimmt so nicht...
Ab PHP 7 wird die "mysql"-Erweiterung nicht mehr installiert und ist nur mehr über Umwege verfügbar.
"mysql" ist veraltet und als Ersatz dient dafür "mysqli" oder "PDO".
Ich glaube kaum, dass du dieses "Achtung" aus dem "php"-Manual hast.
Somit verbreitet diese Quelle entweder Unsinn oder ist veraltet beziehungsweise stammt aus jener Zeit, wo "mysqli" gerade erst erschien.
suche:
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
|
$delipblocked = mysqli_query("UPDATE bb".$n."_counter SET ip = 'del' WHERE datum <= '".$deltimeip."'");
$ipcheck = mysqli_num_rows(mysqli_query("SELECT * FROM bb".$n."_counter WHERE ip = '".$HTTP_SERVER_VARS["REMOTE_ADDR"]."'"));
if($ipcheck == 0)
{
$inserthit = mysqli_query("INSERT INTO bb".$n."_counter (datum, ip) VALUES ('".time()."', '".$HTTP_SERVER_VARS["REMOTE_ADDR"]."')");
}
$hitsall = mysqli_num_rows(mysqli_query("SELECT * FROM bb".$n."_counter"));
$hitstoday = mysqli_num_rows(mysqli_query("SELECT * FROM bb".$n."_counter WHERE `datum` <= '".time()."' AND datum >= '$today'"));
$hitsyesterday = mysqli_num_rows(mysqli_query("SELECT * FROM bb".$n."_counter WHERE `datum` <= '$today' AND datum >= '$yesterday'"));
$hitslastweek = mysqli_num_rows(mysqli_query("SELECT * FROM bb".$n."_counter WHERE `datum` <= '".time()."' AND datum >= '$lastweek'")); |
|
ersetze gegen:
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
|
$delipblocked = mysqli_query($db->link_id,"UPDATE bb".$n."_counter SET ip = 'del' WHERE datum <= '".$deltimeip."'");
$ipcheck = mysqli_num_rows(mysqli_query($db->link_id,"SELECT * FROM bb".$n."_counter WHERE ip = '".$HTTP_SERVER_VARS["REMOTE_ADDR"]."'"));
if($ipcheck == 0)
{
$inserthit = mysqli_query($db->link_id,"INSERT INTO bb".$n."_counter (datum, ip) VALUES ('".time()."', '".$HTTP_SERVER_VARS["REMOTE_ADDR"]."')");
}
$hitsall = mysqli_num_rows(mysqli_query($db->link_id,"SELECT * FROM bb".$n."_counter"));
$hitstoday = mysqli_num_rows(mysqli_query($db->link_id,"SELECT * FROM bb".$n."_counter WHERE `datum` <= '".time()."' AND datum >= '$today'"));
$hitsyesterday = mysqli_num_rows(mysqli_query($db->link_id,"SELECT * FROM bb".$n."_counter WHERE `datum` <= '$today' AND datum >= '$yesterday'"));
$hitslastweek = mysqli_num_rows(mysqli_query($db->link_id,"SELECT * FROM bb".$n."_counter WHERE `datum` <= '".time()."' AND datum >= '$lastweek'")); |
|
__________________
Dieser Beitrag wurde 2 mal editiert, zum letzten Mal von Schrimm: 23.04.2017 18:08.
|
|
23.04.2017 17:59 |
|
|
|
|
Zitat: Original von Stine
Hallo,
shoutbox_include_index.php(161) : eval()'d code on line
Template shoutbox_games
<td class="tableb" align="center"><span class="smallfont"><font color="$result[firstcolor]">
Bekomme auch diesen Fehler ... |
|
|
Hallo,
php: |
1:
|
$result[firstcolor] |
|
gegen:
php: |
1:
|
$result->firstcolor |
|
__________________
|
|
23.04.2017 21:21 |
|
|
|
Vielen lieben Dank
@Stine und Schrimm
Hab über das ACP vorhin mal die SB ausgeschaltet und dann ging das Forum zum Teil wieder
Hab doch noch einiges an Fehlern aber im ganzen board
Da macht man 3 Jahre gar nix und nun will man alles auf einmal hehe
Also update auf php 5.5 ging ja alles aber nun naja 5.6
Muss mich mal echt wieder etwas mehr damit beschäftigen.
Aber euch trotzdem noch mal vielen lieben dank, vielleicht melde ich mich weiterhin hier im Thema
|
|
24.04.2017 00:45 |
|
|
|
|
Zitat: Original von Schrimm
Hallo,
php: |
1:
|
$result[firstcolor] |
|
gegen:
php: |
1:
|
$result->firstcolor |
|
|
|
|
Danke dir dafür
|
Zitat: Original von Stine
Code geändert in Template shoutbox_games und shoutbox_input_afk
Vielen Dank
|
|
|
Und dir natürlich auch
So nun hatte ich da ja wie gesagt noch nen Fehler
Und zwar habe Ich die Googlemap/ Usermap von Viktor
Dort sind die abfragen in der
Thead.php
php: |
1:
2:
|
$checkmap1 = mysqli_query($db,"SELECT * FROM bb" . $n . "_gmap WHERE user_id='" . $posts['userid'] . "'");
$checkmap2 = mysqli_num_rows($checkmap1); |
|
Profile.php
php: |
1:
|
$locresult = mysqli_query($db,"SELECT * FROM bb".$n."_gmap WHERE user_id='".$wbbuserdata['userid']."'"); |
|
und natürlich die googlmap datei im includes ordner
Dort sind es auch mehrfach die abfragen
mysqli_query($db,
Mit der abfrage hatte ich fast den selben fehler text wie oben mit meiner Counter.php und habe einfach mal das
in das geändert
php: |
1:
|
mysqli_query($db->link_id |
|
Der fehler ist soweit weg, aber bin ich damit auch wirklich richtig
Will nur auf nummer sich gehen deswegen frag ich noch mal nach
Viele dank schon mal
|
|
30.04.2017 12:56 |
|
|
|
|
Zitat: Original von kill0rz
Ja
|
|
|
Ok dann war es ja richtig, den in deinem Blog findet es man so nicht
|
|
30.04.2017 18:01 |
|
|
|
|
|
|