Support » Plugin: Protect WP Admin » PHP Warning: getimagesize(): Filename cannot be empty ..

  • Resolved Ov3rfly

    (@ov3rfly)


    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 using getimagesize().

    Protect Your Admin 3.1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpexpertsin

    (@wpexpertsin)

    Hi Ov3rfly,

    Thanks to report the issue and help us to make our plugin bug free.

    We have fixed suggest changes and released a minor version of plugin.

    I hope you will enjoy our plugin.

    Please don’t forget to leave your valuable feedback by give best rate to our plugin.

    Let me know if you have any query and any suggestions to improve our plugin functionalities.

    Plugin Author MR Web Solution

    (@india-web-developer)

    Issue was fixed in last version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.