WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 28.11.2022 11:03:01

bbs2
Member

Fehlermeldung bei WBStats

Hallo,

WBStats bringt unter PHP 8.1 folgende Fehlermeldung (Warnung):

[== PHP ==]
2022-11-28T08:29:31+00:00 [Visitor Request] https://www.vlw-rlp.de/index.php?3x=3x
2022-11-28T08:29:31+00:00 [Deprecated] /modules/wbstats/class.count.php:[177]  from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

WBCE 1.5.3
PHP 8.1.11
WBStats 0.2.5.3

Viele Grüße
Heinz

Offline

#2 30.11.2022 11:00:56

bbs2
Member

Re: Fehlermeldung bei WBStats

Hallo,

hier ergänzende Informationen zu den Warnungen in der php_error.log.php.

a) Unter PHP 8.1.11
Bei von webstat erfassten 290 Besuchen traten die Warnmeldungen 5-mal auf.

b) Unter PHP 8.0
Nach Umschaltung auf PHP 8.0 traten bisher nach 2 Tagen keine Warnmeldungen mehr auf.

Hier liegt also vermutlich eine Modulunverträglichkeit mit PHP 8.1 vor, wenn auch nicht
von Bedeutung. Allerdings wird mit der Zeit die php_error.log.php gefüllt wird.

Viele Grüße
Heinz

Offline

#3 07.12.2022 11:58:21

bbs2
Member

Re: Fehlermeldung bei WBStats

Hallo,

Fehlermeldungen erscheinen auch unter WBCE 1.5.4 in Verbindung mit PHP 8.1

WBStats 0.2.5.3
2022-12-06T19:17:05+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

mpform 1.3.43
2022-12-05T18:50:25+00:00 [Deprecated] /modules/mpform/paintform.php:[192]  from /modules/mpform/paintform.php:[293] new_submission_id "Implicit conversion from float 254247.99999999997 to int loses precision"

Die Warnungen treten nicht sehr oft auf. Kann dies auch mit der Systemumgebung (Browser,...) des
Seitenbesuchers zusammenhängen?

Viele Grüße
Heinz

Offline

#4 07.12.2022 12:00:24

Slugger
Member

Re: Fehlermeldung bei WBStats

bbs2 wrote:

Hallo,

Fehlermeldungen erscheinen auch unter WBCE 1.5.4 in Verbindung mit PHP 8.1
...
mpform 1.3.43
2022-12-05T18:50:25+00:00 [Deprecated] /modules/mpform/paintform.php:[192]  from /modules/mpform/paintform.php:[293] new_submission_id "Implicit conversion from float 254247.99999999997 to int loses precision"

Die Warnungen treten nicht sehr oft auf. Kann dies auch mit der Systemumgebung (Browser,...) des
Seitenbesuchers zusammenhängen?

Viele Grüße
Heinz

Hier gibt es bereits eine Lösung


Hoster: ALL-INKL *** Grundsätzliche WBCE Konfig ***
WBCE: 1.5.4 • BE: 2.1.0 • PHP: 8.1.16 * 1. Projekt: FE: Simple responsive • BE: Argos * 2. Projekt: FE: hortal • BE: Argos * 3. Projekt: FE: WBCEZon • BE: Argos * 4. Projekt: FE: WBCETik • BE: Argos
Status Projekt 1-4:  OK

Online

#5 07.12.2022 12:24:40

bbs2
Member

Re: Fehlermeldung bei WBStats

Danke für den Hinweis bzgl. mpform. Ich habe die Änderung vorgenommen und werde
alles Weitere beobachten.

Viele Grüße
Heinz

Offline

#6 14.12.2022 10:52:08

Slugger
Member

Re: Fehlermeldung bei WBStats

Hallo,
ich bekomme auch einige Meldungen als "Visitor Request", vermutlich von irgendwelchen Bots oder was auch immer rein.

2022-12-13T16:03:22+00:00 [Visitor Request] ./wp-content/plugins/dzs-zoomsounds/savepng.php?location=a57bze8931.php
2022-12-13T16:03:22+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:23+00:00  [Visitor Request] ./wp-content/plugins/dzs-zoomsounds/a57bze8931.php
2022-12-13T16:03:23+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:27+00:00 [Visitor Request] ./wp-content/plugins/ioptimizations/IOptimizes.php?hamlorszd
2022-12-13T16:03:27+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:28+00:00 [Visitor Request] ./wp-content/plugins/ioptimizations/a57bze8931.php
2022-12-13T16:03:28+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:32+00:00 [Visitor Request] ./wp-content/plugins/ioptimization/IOptimize.php?rchk
2022-12-13T16:03:32+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:33+00:00 [Visitor Request] ./wp-content/plugins/ioptimization/a57bze8931.php
2022-12-13T16:03:33+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:39+00:00 [Visitor Request] ./wp-content/plugins/wp-engine-module/wp-engine.php
2022-12-13T16:03:39+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:41+00:00 [Visitor Request] ./wp-content/plugins/wp-engine-module/a57bze8931.php
2022-12-13T16:03:41+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:50+00:00 [Visitor Request] ./wp-admin/admin-ajax.php?action=uploadFontIcon
2022-12-13T16:03:50+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:51+00:00 [Visitor Request] ./wp-content/uploads/kaswara/fonts_icon/a57bze8931/.__a57bze8931.php
2022-12-13T16:03:51+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:54+00:00 [Visitor Request] ./wp-content/plugins/apikey/apikey.php
2022-12-13T16:03:54+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:03:55+00:00 [Visitor Request] ./wp-content/plugins/apikey/a57bze8931.php
2022-12-13T16:03:55+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:01+00:00 [Visitor Request] ./wp-content/plugins/cherry-plugin/admin/import-export/upload.php
2022-12-13T16:04:01+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:02+00:00 [Visitor Request] ./wp-content/plugins/cherry-plugin/admin/import-export/a57bze8931.php
2022-12-13T16:04:02+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:09+00:00 [Visitor Request] ./wp-content/plugins/formcraft/file-upload/server/php/
2022-12-13T16:04:09+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:10+00:00 [Visitor Request] ./wp-content/plugins/formcraft/file-upload/server/php/files/a57bze8931.php
2022-12-13T16:04:10+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:20+00:00 [Visitor Request] ./wp-admin/admin-ajax.php
2022-12-13T16:04:20+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:22+00:00 [Visitor Request] ./wp-content/uploads/typehub/custom/a57bze8931/.__a57bze8931.php
2022-12-13T16:04:22+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:25+00:00 [Visitor Request] ./wp-content/plugins/superstorefinder-wp/ssf-wp-admin/pages/import.php
2022-12-13T16:04:25+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:27+00:00 [Visitor Request]./wp-content/plugins/superstorefinder-wp/ssf-wp-admin/pages/SSF_WP_UPLOADS_PATH/csv/import/abruzi.php
2022-12-13T16:04:27+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:31+00:00 [Visitor Request] ./wp-admin/admin-ajax.php
2022-12-13T16:04:31+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:32+00:00 [Visitor Request] ./abruzi.php4
2022-12-13T16:04:32+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:40+00:00 [Visitor Request] ./wp-json/wp_live_chat_support/v1/remote_upload
2022-12-13T16:04:40+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:41+00:00 [Visitor Request] ./wp-content/uploads/wp_live_chat/abruzi.php
2022-12-13T16:04:41+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:45+00:00 [Visitor Request] ./wp-admin/admin.php?page=html2wp-settings
2022-12-13T16:04:45+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:45+00:00 [Visitor Request] ./wp-content/uploads/html2wp/abruzi.php
2022-12-13T16:04:45+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:52+00:00 [Visitor Request] ./wp-content/plugins/wpcargo/includes/barcode.php?text=x1x1111x1xx1xx111xx11111xx1x111x1x1x1xxx11x1111xx1x11xxxx1xx1xxxxx1x1x1xx1x1x11xx1xxxx1x11xx111xxx1xx1xx1x1x1xxx11x1111xxx1xxx1xx1x111xxx1x1xx1xxx1x1x1xx1x1x11xxx11xx1x11xx111xx1xxx1xx11x1x11x11x1111x1x11111x1x1xxxx&sizefactor=.090909090909&size=1&filepath=../../../x.php
2022-12-13T16:04:52+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:54+00:00 [Visitor Request] ./wp-content/x.php?1=system
2022-12-13T16:04:54+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:04:55+00:00 [Visitor Request] ./wp-content/king.php
2022-12-13T16:04:55+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:05:00+00:00 [Visitor Request] ./wp-content/plugins/wp-file-manager/lib/php/connector.minimal.php
2022-12-13T16:05:00+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"
2022-12-13T16:05:02+00:00 [Visitor Request] ./wp-content/plugins/wp-file-manager-pro/lib/php/connector.minimal.php
2022-12-13T16:05:02+00:00 [Deprecated] /modules/wbstats/class.count.php:[177] from /modules/wbstats/class.count.php:[98] counter->getHosts "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

Nachtrag:
Eine kleine Vermutung habe ich.

Auf zwei Projekten war noch ein älteres Modul "404 Redirect Plus" installiert, das habe ich mal entfernt, denn auf der Seite des Kunden kommen diese Meldungen nicht (Modul ist dort nicht installiert).

Noch eine Anmerkung.
Die beiden Projekte laufen mit php 8.1.7

Die beim Kunden läuft mit php 8.1.13

Nachtrag2:
Heute mal reingeschaut, bisher sind die Meldungen nicht mehr gekommen.

Anmerkung:
Mittlerweile hat der Hoster auf dem die beiden Projekte Laufen die Version auf php 8.1.13 erhöht.

Last edited by Slugger (18.12.2022 10:47:24)


Hoster: ALL-INKL *** Grundsätzliche WBCE Konfig ***
WBCE: 1.5.4 • BE: 2.1.0 • PHP: 8.1.16 * 1. Projekt: FE: Simple responsive • BE: Argos * 2. Projekt: FE: hortal • BE: Argos * 3. Projekt: FE: WBCEZon • BE: Argos * 4. Projekt: FE: WBCETik • BE: Argos
Status Projekt 1-4:  OK

Online

#7 01.02.2023 11:40:14

Slugger
Member

Re: Fehlermeldung bei WBStats

Also ich habe das nun nach dem Update auf PHP8.1 jetzt längere Zeit beobachtet.

Die Meldungen tauchen sporadisch immer auf.

Die besagte Zeile der class.count.php sieht so aus:

if (substr($this->referer_host,0,4) == "www.") $this->referer_host=substr($this->referer_host,4);

Muss hierzu Operand eventuell angepasst werden, damit er keine NULL übergibt, wenn ja wie?


Hoster: ALL-INKL *** Grundsätzliche WBCE Konfig ***
WBCE: 1.5.4 • BE: 2.1.0 • PHP: 8.1.16 * 1. Projekt: FE: Simple responsive • BE: Argos * 2. Projekt: FE: hortal • BE: Argos * 3. Projekt: FE: WBCEZon • BE: Argos * 4. Projekt: FE: WBCETik • BE: Argos
Status Projekt 1-4:  OK

Online

#8 01.02.2023 13:15:54

webbird
Administrator

Re: Fehlermeldung bei WBStats

if($this->referer_host && substr(...)...


Ich habe eine Amazon-Wishlist. wink Oder spende an das Projekt.
Ich kann, wenn ich will, aber wer will, dass ich muss, kann mich mal

Offline

Board footer

up