Support » Plugin: Custom Login Page Customizer | LoginPress » PHP Fatal error Cannot redeclare

  • 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 1 replies (of 1 total)
  • Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hey, @dronixxx

    Thank you for reaching out to us. LoginPress hasn’t any Shortcode. Can you please let us know which shortcode are you using or you created your own shortcode for it?

    P.S: I’ll make a check for the described method in the very next update.

    Looking forward.

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