- This topic has 9 replies, 3 voices, and was last updated 4 years, 4 months ago by Leo.
-
AuthorPosts
-
December 9, 2019 at 3:24 am #1098431t29k75
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 170if ( 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 126header( ‘Content-Type: ‘ . get_option( ‘html_type’ ) . ‘; charset=’ . get_option( ‘blog_charset’ ) );
thanks,
TiborDecember 9, 2019 at 6:52 am #1098718DavidStaffCustomer SupportHi there,
can you try disabling all other plugins aside from GP Premium to see if there is a conflict.
December 9, 2019 at 7:29 am #1098757t29k75Hi David,
I should think about that, ha.
Anyway, disabled all plugins except GP Premium, but warnings are still there and exactly the same…T
December 9, 2019 at 9:08 am #1098859LeoStaffCustomer SupportHave you modify the plugin file in anyways?
Any custom functions in hooks elements maybe?
If both no I assume the warning disappears if you disable the typography add-on?
https://docs.generatepress.com/article/installing-gp-premium/#activate-your-modulesDecember 9, 2019 at 10:38 am #1099002t29k75Hi 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 1046more suggestions, please?
thanks,
TDecember 9, 2019 at 10:40 am #1099009LeoStaffCustomer SupportAny 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.December 9, 2019 at 10:51 am #1099024t29k75Me 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,
TDecember 9, 2019 at 10:55 am #1099028LeoStaffCustomer SupportThis article should explain it:
https://docs.generatepress.com/article/remove-google-fonts/December 9, 2019 at 11:19 am #1099055t29k75Leo,
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
December 9, 2019 at 11:53 am #1099083LeoStaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.