WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 05.07.2021 16:34:27

Slugger
Mitglied

Fotorama Gallery based on MiniGallery 2.5.2

Hallo Florian,
du hattest mal hier:
https://forum.wbce.org/viewtopic.php?pid=24576#p24576

Eine Modifizierte Gallery zum DL bereitgestellt.

Nach dem Update auf PHP 8 kommen folgende Notices

[Notice] /modules/fotoramagal/functions.php:[210] from /modules/fotoramagal/functions.php:[28] isImageFile "getimagesize(): Read of 8192 bytes failed with errno=21 Is a directory"
[Notice] /modules/fotoramagal/functions.php:[210] from /modules/fotoramagal/functions.php:[28] isImageFile "getimagesize(): Error reading from /www/htdocs/xxx/media/fotoramagal/38/thumbs!"

Die Notices wiederholen sich, da ich mehrere Ordner habe, deshalb abgekürzt.

Beitrag geändert von Slugger (05.07.2021 16:34:51)


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

#2 05.07.2021 17:18:59

florian
Administrator

Re: Fotorama Gallery based on MiniGallery 2.5.2

Ändere in der /modules/fotoramagal/functions.php Zeile 208ff

if (!function_exists('isImageFile')) {
	function isImageFile($filename) {
		if(@!is_array(@getimagesize($filename))){
			return false;
		}
		return true;
	}
}

zu

if (!function_exists('isImageFile')) {
	function isImageFile($filename) {		
		if (!is_dir($filename)) {
			if(!is_array(getimagesize($filename))){
				return false;
			}
			return true;
		} else {
			return false;
		}
	}
}

Code allein macht nicht glücklich. Jetzt spenden!

Offline

Liked by:

Slugger

Fußzeile des Forums

up