• Resolved pe2mc

    (@pe2mc)


    Warning: Missing argument 2 for Theme_My_Login::the_title() in /home/pi4utr/domains/pi4utr.nl/public_html/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 392

    Going back to 6.04 it works with my theme and wp 3.1

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    What theme are you using?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    This is due to theme developers and WordPress itself inconsistently using ‘the_title’ filter. I will implement a fix in 6.1.1. However, I will be waiting for more issues before releasing another version. This is just a WARNING (not an error) after-all, which is not particularly caused by TML.

    If you wish to properly fix this problem in the meantime, open up theme-my-login/includes/class-theme-my-login.php and go to line 392.

    Change it from this:

    function the_title( $title, $post_id ) {

    To this:

    function the_title( $title, $post_id = 0 ) {

    I had the same problem after recent plugin update.

    I replaced:
    function the_title( $title, $post_id ) {
    with
    function the_title( $title ) {

    and it worked.

    Thanks Jeff for the plugin.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Well, in certain instances, that will not work correctly.

    My theme doesn’t shows any error.
    Should I change it to
    function the_title( $title, $post_id = 0 ) {

    Ok I changed it as per your code and it’s working too.
    Thanks.

    Having this same problem– I changed the code per Jeff’s recommendation and reactivated the plugin and got this:

    “The plugin generated 310 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”

    Deactivated and deleted the plugin and my home page is still showing these errors.

    Reinstalled and reactivated the plugin and got another unexpected output error (this time 308 characters). The missing argument errors still show on my site, but ONLY on the main index, where it seems to be breaking my top menu (not a ‘custom menu’).

    Totally confused here. <_<

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Theme My Login] Getting this error after a short while’ is closed to new replies.