Site logo

Archived topic

Customiser Warnings

9 replies · Started by t29k75 on December 9, 2019

Viewing posts 1–10 of 10

Hi,

When I access customiser two warnings are showing.
I have no idea how to deal with it or what it means:)
Could you help me, please.

1st:
Warning: array_key_exists() expects parameter 2 to be array, bool given in /home/surfatl9/public_html/wp-content/plugins/gp-premium/typography/functions/migration.php on line 170

if ( array_key_exists( $id, $select_fonts ) || in_array( $generate_settings[ $setting ], generate_typography_default_fonts() ) ) {

2nd:
Warning: Cannot modify header information - headers already sent by (output started at /home/surfatl9/public_html/wp-content/plugins/gp-premium/typography/functions/migration.php:170) in /home/surfatl9/public_html/wp-admin/customize.php on line 126

header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );

thanks,
Tibor

Hi there,

can you try disabling all other plugins aside from GP Premium to see if there is a conflict.

Hi David,

I should think about that, ha.
Anyway, disabled all plugins except GP Premium, but warnings are still there and exactly the same...

T

Hi Leo,

you mean GP Premium plugin? No I never modified it.
Hooks in Elements - I use 3. Change them to drafts. After that warning shows 17 times there.
I disabled the typography add-on - same result, except different destination
/home/surfatl9/public_html/wp-content/themes/generatepress/inc/typography.php on line 1046

more suggestions, please?
thanks,
T

Any chance you can re-install the theme and premium plugin first and make sure there are no corrupted files?

If that still doesn't work, can you send me the dashboard access with all plugins disabled except GP Premium??

You can send the dashboard access using Account Issue here:
https://generatepress.com/contact/

Please include the following information:
– The URL of this topic.
– Login URL.
– Username and password.

Me again,

In functions.php I have:

/* Remove Google Fonts From Customiser */
add_action( 'admin_init', 'tu_remove_google_fonts' );
function tu_remove_google_fonts() {
add_filter( 'generate_google_fonts_array', '__return_false' );
}

after deleting it, all warnings are gone.
Could that be it? and if yes, not using the above will not pull/load any google fonts?
Is that correct?
I believe am using only montserrat font locally for headings.
thanks,
T

Leo,
I think that was it. Mine snippet was different than one from the link.
Anyway, me happy again:)

thanks guys for your help and time.

till next time,

Tibor

No problem :)

This archived topic is closed to new replies.