WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
Theme My Login - Deprecated error (6 posts)

  1. cgrray
    Member
    Posted 2 years ago #

    I get these errors when I activate Theme My Login:
    Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\KitsapSoccer\wp-content\plugins\theme-my-login\theme-my-login.php on line 53,line 77 and line 85
    and
    Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\KitsapSoccer\wp-content\plugins\theme-my-login\includes\class-theme-my-login.php on line 595

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    This has to be done for PHP4.

  3. cgrray
    Member
    Posted 2 years ago #

    So if I'm running php5 the plugin won't work?

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    Of course it will. That is a notice, not an error. Turn off WP_DEBUG.

  5. deadweasel
    Member
    Posted 2 years ago #

    Hey! Great plugin idea! Does exactly what I was looking to do!
    The only gripe I have is regarding this very "problem".

    I'm not using WP_DEBUG, but I do get those errors in my server's error log, which I tail while experimenting with the site coding. Almost every hit on the site results in a flood of info regarding the deprecated warnings, so it tends to make for a bit of a mess if I screw something up and need to see where the error I'm actually interested in happened.

    For one-off purposes, and because I'm still cutting my teeth with PHP overall, what needs to change in the code to resolve those warnings? A little research pointed to the use of =&.
    If I'm not mistaken, removing the '&' should resolve the warnings, right?

    Thanks a bunch!

  6. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    @deadweasel: Yes, removing the & will do it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic