Fehler bei IP Tracking

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
ultraslan33

Fehler bei IP Tracking

Beitrag von ultraslan33 »

Ich habe gerade das IP Tracking Mod installiert und es zeigte folgende Fehlermeldung:

Warning: Division by zero in /usr/export/www/vhosts/funnetwork/hosting/ugur33asyhell/admin/admin_ip_tracking.php on line 436

Warning: Division by zero in /usr/export/www/vhosts/funnetwork/hosting/ugur33asyhell/admin/admin_ip_tracking.php on line 437

Warning: Division by zero in /usr/export/www/vhosts/funnetwork/hosting/ugur33asyhell/admin/admin_ip_tracking.php on line 438

Warning: Division by zero in /usr/export/www/vhosts/funnetwork/hosting/ugur33asyhell/admin/admin_ip_tracking.php on line 439

Warning: Division by zero in /usr/export/www/vhosts/funnetwork/hosting/ugur33asyhell/admin/admin_ip_tracking.php on line 440
Benutzeravatar
kjwargan
Mitglied
Beiträge: 1183
Registriert: 04.09.2005 18:53
Wohnort: Bavarian D.C.

Fehler bei IP Tracking 2.

Beitrag von kjwargan »

Servus,
bei mir zeigt er das in den Zeilen 438 bis 442 an!
Das sind die Zeilen

Code: Alles auswählen

$total_percent = round ( $total_ips / $total_ips * 100, 1);
$users_percent = round ($total_users / $total_ips * 100, 1);
$guests_percent = round ($total_guests / $total_ips * 100, 1);
$bots_percent = round ($total_bots / $total_ips * 100, 1);
$admins_percent = round ($total_admins / $total_ips * 100, 1);
Aber nur, wenn ich die Konfiguration auf "Null" setze!
Ist das normal?
Viele Grüße Carlo
Dieses Posting wurde aus 100% biologisch abbaubaren und freilaufenden Elektronen erzeugt.
.:Falo:.
Mitglied
Beiträge: 246
Registriert: 01.01.2007 16:40

Beitrag von .:Falo:. »

Hi, das Thema ist zwar schon älter, aber ich habe das gleiche Problem. Kann jemand helfen???
Benutzeravatar
easygo
Mitglied
Beiträge: 2170
Registriert: 03.09.2004 13:45
Kontaktdaten:

Beitrag von easygo »

Das könnte helfen -->

admin_ip_tracking.php öffnen / suchen

Code: Alles auswählen

		$total_percent = round ( $total_ips / $total_ips * 100, 1);
		$users_percent = round ($total_users / $total_ips * 100, 1);
		$guests_percent = round ($total_guests / $total_ips * 100, 1);
		$bots_percent = round ($total_bots / $total_ips * 100, 1);
		$admins_percent = round ($total_admins / $total_ips * 100, 1);
ersetzen durch

Code: Alles auswählen

		$ipx = ( $total_ips <= 0 ) ? '1' : $total_ips;

		$total_percent = round ( $total_ips / $ipx * 100, 1);
		$users_percent = round ($total_users / $ipx * 100, 1);
		$guests_percent = round ($total_guests / $ipx * 100, 1);
		$bots_percent = round ($total_bots / $ipx * 100, 1);
		$admins_percent = round ($total_admins / $ipx * 100, 1);
Feedback wär ok / easy
.:Falo:.
Mitglied
Beiträge: 246
Registriert: 01.01.2007 16:40

Beitrag von .:Falo:. »

Es klappt!!!!!

Vielen Dank @ easygo
Benutzeravatar
andreasOymann
Ehemaliges Teammitglied
Beiträge: 2392
Registriert: 10.06.2003 16:29
Wohnort: Hamminkeln
Kontaktdaten:

Beitrag von andreasOymann »

noch besser:

Code: Alles auswählen

      $total_percent = $total_ips == 0 ? '-' : round ( $total_ips / $total_ips * 100, 1);
      $users_percent = $total_ips == 0 ? '-' : round ($total_users / $total_ips * 100, 1);
      $guests_percent = $total_ips == 0 ? '-' : round ($total_guests / $total_ips * 100, 1);
      $bots_percent = $total_ips == 0 ? '-' : round ($total_bots / $total_ips * 100, 1);
      $admins_percent = $total_ips == 0 ? '-' : round ($total_admins / $total_ips * 100, 1);
Das erspart die zusätzliche Variable und gibt " - " aus, wenn nichts geloggt ist.

A.
Kein Support per PN / Mail / ICQ / MSN ! Dafür gibt´s dieses Forum...
Antworten

Zurück zu „phpBB 2.0: Mod Support“