WBCE CMS – Way Better Content Editing.
You are not logged in.
News with Images (NWI) — PHP 8.5 Bugfix
functions.inc.php · Stand: 23. März 2026
Fehlermeldung
[Deprecated] /modules/news_img/functions.inc.php:[2525]
"Non-canonical cast (boolean) is deprecated, use the (bool) cast instead"
[Deprecated] /modules/news_img/functions.inc.php:[2527]
"Non-canonical cast (double) is deprecated, use the (float) cast instead"Ursache
PHP 8.5 deprecates non-canonical Schreibweisen für Type Casts:
(boolean) → veraltet, korrekt: (bool)
(double) → veraltet, korrekt: (float)
(integer) → veraltet, korrekt: (int)
Fix — functions.inc.php
Zeile 2525:
// vorher
if ($filter_type == 'b') $temp[$key] = (boolean) $temp[$key];
// nachher
if ($filter_type == 'b') $temp[$key] = (bool) $temp[$key];Zeile 2527:
// vorher
if ($filter_type == 'd') $temp[$key] = (double) $temp[$key];
// nachher
if ($filter_type == 'd') $temp[$key] = (float) $temp[$key];Ergebnis
Kein Eintrag im Errorlog nach dem Fix.
Umgebung
NWI Version: 5.0.30
WBCE: 1.6.5
PHP: 8.5.2
Last edited by Slugger (23.03.2026 17:40:52)
Hoster: ALL-INKL *** Grundsätzliche WBCE Konfig ***
WBCE: 1.6.5 • BE: 2.1.0 • PHP: 8.x * Alle • BE: Argos
Status Projekt 1-4: OK
Online