PHP Warning: getimagesize(): Filename cannot be empty ..
-
If custom “Login Page Logo” is empty in settings, a warning is triggered at login:
PHP Warning: getimagesize(): Filename cannot be empty ..
Reason is this code in
pwa-class.php
lines 325/327:$imagelogo = $getPwaOptions['pwa_logo_path']; ob_start(); $data = getimagesize($imagelogo);
Some check e.g.
!empty( $imagelogo )
or similar should be added before usinggetimagesize()
.Protect Your Admin 3.1
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Warning: getimagesize(): Filename cannot be empty ..’ is closed to new replies.