WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 05.07.2021 16:34:27

Slugger
Member

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.

Last edited by Slugger (05.07.2021 16:34:51)


Hoster: ALL-INKL *** Grundsätzliche WBCE Konfig ***
WBCE: 1.5.0 • BE: 2.1.0 • PHP: 8.0.6 * 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  OK

Offline

#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;
		}
	}
}

Offline

Liked by:

Slugger

Board footer

up