Archived topic
PHP error on GP Premium
6 replies · Started by Avi on February 11, 2022
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 Tom,
The "Use dynamic typography system" option, as mentioned here:
https://docs.generatepress.com/article/switching-to-dynamic-typography/
does not appear on my site, so there is not way to switch to the new system.
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,
As I'll be working with the above site, please access the following instead:
**
Meanwhile, you can find the message displayed by visiting the following page:
https://goodjapanesegoods.com/?post_type=product
Thanks,
Avu
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.