• Resolved Andy Evans

    (@adevans)


    Hi, I’ve just upgraded to PHP 5.4 on my server and now I’m getting an error message on my custom login page and on my wordpress dashboard;

    Warning: Creating default object from empty value in /………/wp-content/plugins/custom-login/custom-login.php on line 103

    Any ideas how to fix??

    Thanks,
    Andy

    https://www.ads-software.com/extend/plugins/custom-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s due to changes in PHP. Add the following:
    if ( !isset( $custom_login->settings ) )
    $custom_login = new StdClass();
    $custom_login->settings = get_option( ‘custom_login_settings’ );

    Plugin Author Austin

    (@austyfrosty)

    Thanks for the reply wunderdojo.

    I have added this fix in the most recent update. See version > 1.1.1

    Though you only need to see if $custom_login is not set..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"Warning: Creating default object from empty value" – after upgrading to PHP 5.4’ is closed to new replies.