WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Fatal error: Call to a member function shortcode() (2 posts)

  1. Doodlebee
    Member
    Posted 1 year ago #

    I'm using 6.3.6 of the plugin - just upgraded on a site a couple of days ago. I'm using a bit of code for a custom widget I wrote (I got the code a while back from the dev's website, I think).

    anyway, the line the error is:

    Call to a member function shortcode() on a non-object in wp-content/themes/theme/inc/widgets.php on line 1009

    and it refers to this line in my code:

    echo $GLOBALS['theme_my_login']->shortcode( $args );

    but apparently "shortcode" is no longer supported? Was this replaced by something? I looked in teh changelog, but don't see any mention of it.

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

  2. Doodlebee
    Member
    Posted 1 year ago #

    Got it.

    theme_my_login = Theme_My_Login::get_object();
    $args = array_merge( $args, $instance );
    echo $theme_my_login->shortcode( $args );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.