[Resolved] Customiser Warnings

Home Forums Support Customiser Warnings

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1098431
    t29k75

    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

    #1098718
    David
    Staff
    Customer Support

    Hi there,

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

    #1098757
    t29k75

    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

    #1098859
    Leo
    Staff
    Customer Support

    Have 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-modules

    #1099002
    t29k75

    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

    #1099009
    Leo
    Staff
    Customer Support

    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.

    #1099024
    t29k75

    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

    #1099028
    Leo
    Staff
    Customer Support
    #1099055
    t29k75

    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

    #1099083
    Leo
    Staff
    Customer Support
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.