Trying to activate Sparklin

Hey, I’m trying to develop my first Wordpress website and chose Sparkling as my theme. But I’m getting this error.
Fatal error : Uncaught Error: Undefined constant “HEADER” in C:\xampp\htdocs\demo\wp-content\themes\sparkling\inc\custom-header.php:56 Stack trace: #0 C:\xampp\htdocs\demo\wp-includes\class-wp-hook.php(287): sparkling_header_style(’’) #1 C:\xampp\htdocs\demo\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 C:\xampp\htdocs\demo\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #3 C:\xampp\htdocs\demo\wp-includes\general-template.php(3005): do_action(‘wp_head’) #4 C:\xampp\htdocs\demo\wp-content\themes\sparkling\header.php(30): wp_head() #5 C:\xampp\htdocs\demo\wp-includes\template.php(730): require_once(‘C:\xampp\htdocs…’) #6 C:\xampp\htdocs\demo\wp-includes\template.php(676): load_template(‘C:\xampp\htdocs…’, true, Array) #7 C:\xampp\htdocs\demo\wp-includes\general-template.php(48): locate_template(Array, true, true, Array) #8 C:\xampp\htdocs\demo\wp-content\themes\sparkling\page.php(13): get_header() #9 C:\xampp\htdocs\demo\wp-includes\template-loader.php(106): include(‘C:\xampp\htdocs…’) #10 C:\xampp\htdocs\demo\wp-blog-header.php(19): require_once(‘C:\xampp\htdocs…’) #11 C:\xampp\htdocs\demo\index.php(17): require(‘C:\xampp\htdocs…’) #12 {main} thrown in C:\xampp\htdocs\demo\wp-content\themes\sparkling\inc\custom-header.php on line 56

Can someone help me please!

Hey there

What is the version of the PHP in your environment? make sure it’s not the latest version and check again

PHP 8.0.1 (cli) (built: Jan 5 2021 23:43:39) ( ZTS Visual C++ 2019 x64 )

I commented a few lines in custom-header.php. It didn’t throw an error. So it works for now.

1 Like

Hi

Well, that’s the case, it’s not yet ready for PHP 8, but if you already fixed it by commenting its ok, you may continue using it as is

Regards

Thanks for your time