• Resolved dronixxx

    (@dronixxx)


    Hello,
    The plugin generated Fatal Error on login form which displayed by shortcode:

    [16-Mar-2021 09:22:01 UTC] PHP Fatal error: Cannot redeclare loginpress_box_shadow() (previously declared in public_html/wp-content/plugins/loginpress/css/style-login.php:218) in public_html/wp-content/plugins/loginpress/css/style-login.php on line 218
    ?
    [16-Mar-2021 09:26:12 UTC] PHP Fatal error: Cannot redeclare loginpress_important() (previously declared in public_html/wp-content/plugins/loginpress/css/style-login.php:109) in public_html/wp-content/plugins/loginpress/css/style-login.php on line 109?

    etc…

    To fix it need to check if function exist before declare all functions in that file:

    if (!function_exists(‘loginpress_get_option_key’)) {
    function loginpress_get_option_key( $loginpress_key, $loginpress_array ) {

    }

    Please add changes to new version, so after update my site will continue work.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dronixxx,

    These method/s don’t exist in Login Customizer and have nothing to do with this fatal error.
    The paths are of LoginPress.
    Are you using some short code, as you mentioned this fatal error is displayed by a short code?

    Looking forward to hear from you!

    Thread Starter dronixxx

    (@dronixxx)

    Sorry seems I wrote to wrong plugin support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error Cannot redeclare’ is closed to new replies.