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:
Theme version: 1.8
WooCommerce version: 4.2.1
function etheme_recognized_google_font_families( $field_id )
Thank you for notification.
We’ve taken this into our account and we’ll fix this issue.
The forum ‘TheLeader Support Forum’ is closed to new topics and replies.
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.