Title: Fatal error: Call to a member function shortcode()
Last modified: August 21, 2016

---

# Fatal error: Call to a member function shortcode()

 *  Resolved [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years ago](https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-shortcode/)
 * 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/](http://wordpress.org/extend/plugins/theme-my-login/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years ago](https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-shortcode/#post-3691548)
 * Got it.
 *     ```
       theme_my_login = Theme_My_Login::get_object();
       $args = array_merge( $args, $instance );
       echo $theme_my_login->shortcode( $args );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Call to a member function shortcode()’ is closed to new 
replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/fatal-error-call-to-a-member-function-shortcode/#post-3691548)
 * Status: resolved