Neuigkeiten:

moziloCMS verwendet Cookies. Wenn Sie auf unserer Seite weitersurfen, stimmen Sie der Cookie-Nutzung zu Datenschutzerklärung
moziloCMS Layouts
moziloCMS Plugins

Hauptmenü

Plugin moziloGB unter PHP 7

Begonnen von Paul, 23. März 2016, 15:51:18

« vorheriges - nächstes »

Paul

Wenn man moziloGB unter PHP 7 einsetzt, dann erhält man einige Deprecated - Warnungen:
Direkt auf der Inhaltsseite:
ZitatDeprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ShowEntries has a deprecated constructor in /www/plugins/moziloGB/ShowEntries.php on line 5
und im Admin bei der Datenbank-Verwaltung
ZitatDeprecated: Methods with the same name as their class will not be constructors in a future version of PHP; moziloGBAdmin has a deprecated constructor in /www/plugins/moziloGB/admin.php on line 30
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ShowEntries has a deprecated constructor in /www/plugins/moziloGB/ShowEntries.php on line 5

Website: BPGS.DE

Aggi

Ich möchte diese Thema wieder nach vorne schieben.

Bei mir die gleiche Fehlermeldung mit PHP 7

moziloGB unter PHP 7
Es ist noch kein Meister vom Himmel gefallen.

stefanbe

moziloGB/ShowEntries.php zeile 28

versucht mal die zeile
function ShowEntries($dbname,$tmpl,$gbsettings,$gblanguage) {

in
function __construct($dbname,$tmpl,$gbsettings,$gblanguage) {

zu ändern

lg stefanbe

Aggi

Hallo Stefanbe,

Zitat von: stefanbe am 25. Oktober 2016, 08:58:47
moziloGB/ShowEntries.php zeile 28

versucht mal die zeile
function ShowEntries($dbname,$tmpl,$gbsettings,$gblanguage) {

in
function __construct($dbname,$tmpl,$gbsettings,$gblanguage) {

zu ändern

lg stefanbe


das passt hatte das auch schon rausgefunden, nun muss noch in der admin.php

Zeile 40 das function moziloGBAdmin($settings,$gblanguage) { mit dem function __construct($settings,$gblanguage) { ersetzt werden...

Zeile 50 das $this->ShowEntries($this->curent_db,"",$settings,$gblanguage); mit dem parent::__construct($this->curent_db,"",$settings,$gblanguage); ersetzt werden...

mfg
Aggi
Es ist noch kein Meister vom Himmel gefallen.

stefanbe

super Aggi

habs geändert

lg stefanbe