TheLeader: Missing argument 2 for etheme_recognized_google_font_families()

This topic has 2 replies, 2 voices, and was last updated 8 years, 11 months ago ago by Eva Kemp

  • Avatar: robertstaddon
    robertstaddon
    Participant
    May 4, 2015 at 20:47

    With the latest TheLeader 1.8 theme, I’ve noticed the following messages in my error logs when the “Theme Options” page for “TheLeader” theme is pulled up:

    NOTICE: PHP message: PHP Warning: Missing argument 2 for etheme_recognized_google_font_families(), called in /wp-content/themes/theleader/option-tree/includes/ot-functions-option-types.php on line 1614 and defined in /wp-content/themes/theleader/framework/theme-functions.php on line 1995

    The cause for this error is the function declaration in “/framework/theme-functions.php” line 1995 requiring two parameters:

    function etheme_recognized_google_font_families( $array, $field_id )

    However, the only place that it’s called is in “/option-tree/includes/ot-functions-option-types.php” line 1614 and it only passes one parameter:

    foreach ( etheme_recognized_google_font_families( $field_id ) as $key => $value )

    The easy solution is to simply remove the $array parameter from the “etheme_recognized_google_font_families” declaration in “theme-functions.php” so that it looks like this:

    function etheme_recognized_google_font_families( $field_id )

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    May 5, 2015 at 10:57

    Hello,

    Thank you for notification.
    We’ve taken this into our account and we’ll fix this issue.

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

The forum ‘TheLeader Support Forum’ is closed to new topics and replies.

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.