• There appear a long, ugly error message on my web-pages in wordpress with raindrop theme:
    Warning: Trying to access array offset on value of type null in /customers/c/d/3/cartography.no/httpd.www/bok/wp-content/themes/raindrops/functions.php on line 11189 Warning: Trying to access array offset on value of type null in /customers/c/d/3/cartography.no/httpd.www/bok/wp-content/themes/raindrops/functions.php on line 11211 Warning: Trying to access array offset on value of type null in /customers/c/d/3/cartography.no/httpd.www/bok/wp-content/themes/raindrops/functions.php on line 11167 Warning: Trying to access array offset on value of type null in /customers/c/d/3/cartography.no/httpd.www/bok/wp-content/themes/raindrops/functions.php on line 11254 Warning: Trying to access array offset on value of type null in /customers/c/d/3/cartography.no/httpd.www/bok/wp-content/themes/raindrops/functions.php on line 11276 Warning: Trying to access array offset on value of type null in /customers/c/d/3/cartography.no/httpd.www/bok/wp-content/themes/raindrops/functions.php on line 11232

    Any ide what to do?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author nobita

    (@nobita)

    Hi @terjemid

    There appear a long, ugly error message on my web-pages

    Wordpress / wp-config.php add below line.

    
    	define('WP_DEBUG_DISPLAY',false);
    

    The error will no longer be displayed on the website

    Thank you.

    Theme Author nobita

    (@nobita)

    In the previous answer, I wrote a general explanation for not displaying website errors on the web page

    Then comment out the part where the error occurs

    https://github.com/tenman/raindrops/blob/master/lib/hooks.php#L227-L232

    Comment out like below

    
    //add_filter( 'raindrops_site_title_class', 'raindrops_custom_site_title_class' );
    		//add_filter( 'raindrops_embed_meta_css', 'raindrops_custom_site_title_style' );
    		//add_filter( 'raindrops_embed_meta_pre', 'raindrops_apply_google_font_import_rule_for_site_title' );
    		//add_filter( 'raindrops_embed_meta_pre', 'raindrops_apply_google_font_import_rule_for_primary_menu' );
    		//add_filter( 'raindrops_embed_meta_css', 'raindrops_apply_google_font_styles_for_site_title' );
    		//add_filter( 'raindrops_embed_meta_css', 'raindrops_apply_google_font_styles_for_primary_menu' );

    `
    You are probably updating to PHP8.
    This version was not popular when this theme was last updated.

    Thenk you.

    • This reply was modified 2 years, 5 months ago by nobita.
    Thread Starter terjemid

    (@terjemid)

    Hi, and thanks for the response.

    The command: “define(‘WP_DEBUG_DISPLAY’,false);” already exists in the wp-config file when the error message shows up.

    The second suggestion: I comment out the 6 lines. Many of the error messages disappeared. However, a couple remained. And the text in my heading was changed (Shrinked a lot)

    Theme Author nobita

    (@nobita)

    I’ve checked your site again and it’s showing the same error as last time.
    Even if the code is commented out, there seems to be an error that continues to be displayed.

    Please let me know what error you keep getting

    This error is occurring in the part that parses the google font settings. So commenting it out will change the font.

    This can be reverted by writing additional CSS.
    Please let me know the input contents of the following items.

    • Customize / Site Identity / CSS Class of Site Title
    • Customize / Presentation / Post / Entry Title CSS Class
    • Appearance / Menus / CSS Classes (optional) on Primary Menu

    Note: Setting WP_DEBUG_DISPLAY worked as expected in my environment.

    Thank you.

    • This reply was modified 2 years, 5 months ago by nobita.
    • This reply was modified 2 years, 5 months ago by nobita.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error message on top of web-pages with Raindrop Theme’ is closed to new replies.