WordPress.org

Ready to get started?Download WordPress

Forums

Custom Login
[resolved] "Warning: Creating default object from empty value" - after upgrading to PHP 5.4 (3 posts)

  1. Andy Evans
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/custom-login/

  2. wunderdojo
    Member
    Posted 1 year ago #

    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' );

  3. Austin Passy
    Member
    Plugin Author

    Posted 1 year ago #

    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..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic