• I am using Genesis Framework and Paid Membership Pro

    I am getting this error:
    Fatal error: Call to undefined function genesis_meta_boxes() in /nas/content/staging/healer/wp-content/themes/genesis/lib/admin/user-meta.php on line 52

    I have contacted Genesis and they told me it’s a plugin related issue. I have disabled everything but TML, including the Member plugin and the issue is still there so it has to do with TML.

    Aside from that error, the “save” button is gone in Profile… https://screencast.com/t/koVGc2Wc8

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

    (@jfarthing84)

    This appears to be because Genesis only loads the code for genesis_meta_boxes() when is_admin() is true. Normally, profiles are within wp-admin. TML’s Themed Profiles are not – therefore, you get this issue.

    You can try adding this snippet to wp-content/plugins/theme-my-login-custom.php (create it if you haven’t already):

    
    function my_custom_tml_request_callback( $tml ) {
        if ( 'profile' == $tml->request_action ) {
            define( 'WP_ADMIN', true );
        }
    }
    add_action( 'tml_request', 'my_custom_tml_request_callback' );
    

    Please note, this may have unintended consequences.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Following up with an update to this solution for 7+:

    
    function set_wp_admin_on_tml_profile() {
        define( 'WP_ADMIN', true );
    }
    add_action( 'tml_action_profile', 'set_wp_admin_on_tml_profile' );
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot save anything in Profile’ is closed to new replies.