Site logo

Archived topic

PHP error on GP Premium

6 replies · Started by Avi on February 11, 2022

Viewing posts 1–7 of 7

Hi,
PHP is throwing the following error (gathered by WP DEBUG) on WP Premium themes:

Undefined index: font_secondary_navigation in ~/wp-content/themes/generatepress/inc/typography.php

Details:
NOTICE: wp-content/themes/generatepress/inc/typography.php:911 - Undefined index: font_secondary_navigation
require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/woocommerce/templates/archive-product.php'), get_header, locate_template, load_template, require_once('/themes/generatepress/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action('wp_enqueue_scripts'), WP_Hook->do_action, WP_Hook->apply_filters, generate_secondary_color_scripts, generate_secondary_nav_css, generate_get_font_family_css, generate_get_google_font_category

Please help me to fix it.

Rokkhit

Hi there,

That's strange - are you using the Secondary Nav module on your site?

The easiest "fix" is likely to switch to our new typography system: https://docs.generatepress.com/article/switching-to-dynamic-typography/

The old typography system (which is where the notice you're getting is happening) is deprecated and should be replaced with the new system.

Let me know :)

Hi,
I've created a temporary login link for you so that you can check it yourself

**

*Meanwhile, you can find the message displayed by visiting the following page:
https://komorebi-tokyo.com/shop/

Regards,
Avi

Hi there,

Strange one - that function shouldn't even be firing. It may be something we need to change in the plugin itself.

Does the message go away if you deactivate the Secondary Navigation module?

Also, be sure to post login links in the Private Information field so others aren't able to see them :)

Hi,
Please close this ticket as the issue has been resolved.

This archived topic is closed to new replies.