Skip to content

Breaking bug: Fatal error: Uncaught Error: Undefined constant "HEADER" #270

Description

@Moldiz

If you happen to get blank screen, and after turning on debug option you will get this error:

Fatal error: Uncaught Error: Undefined constant "HEADER" in /wp-content/themes/sparkling/inc/custom-header.php:56 Stack trace: #0 /wp-includes/class-wp-hook.php(324): sparkling_header_style() #1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /wp-includes/plugin.php(517): WP_Hook->do_action() #3 /wp-includes/general-template.php(3192): do_action() #4 /wp-content/themes/sparkling/header.php(31): wp_head() #5 /wp-includes/template.php(810): require_once('...') #6 /wp-includes/template.php(745): load_template() #7 /wp-includes/general-template.php(48): locate_template() #8 /wp-content/themes/sparkling/page.php(13): get_header() #9 /wp-includes/template-loader.php(106): include('...') #10 /wp-blog-header.php(19): require_once('...') #11 /index.php(17): require('...') #12 {main} thrown in /wp-content/themes/sparkling/inc/custom-header.php on line 56

You have to open /wp-content/themes/sparkling/inc/custom-header.php file and change this lines:

@$a = HEADER; // @codingStandardsIgnoreLine
@$b = TEXTCOLOR; // @codingStandardsIgnoreLine

To this:

@$a = 'HEADER';
@$b = 'TEXTCOLOR';

That should fix your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions