kirki: Fatal error on WordPress after updating to the latest version of kirki

Hello, After updating to the latest version of kirki I get fatal error on WordPress

This log is from openliteserver + PHP 7.4 (I have modified the website name and IPs for privacy)

#0 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(351): Kirki\Module\CSS\Generator::css()
#1 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(268): Kirki\Module\CSS::loop_controls()
#2 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(179): Kirki\Module\CSS->print_styles()
#3 /home/example.com/public_html/wp-includes/class-wp-hook.php(303): Kirki\Module\CSS->print_styles_inline()
#4 /home/example.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#5 /home/example.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
#6 /home/example.com/public_html/wp-includes/general-template.php(3015): do_action()
#7 in /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php on line 170
2021-12-30 13:27:57.636518 [NOTICE] [71472] [15.236.0.0:52924#example.com] [STDERR] PHP Warning:  include(fix.php): failed to open stream: No such file or directory in /home/example.com/public_html/index.php on line 8
2021-12-30 13:27:57.636548 [NOTICE] [71472] [15.236.0.0:52924#example.com] [STDERR] PHP Warning:  include(): Failed opening 'fix.php' for inclusion (include_path='.:') in /home/example.com/public_html/index.php on line 8
2021-12-30 13:27:57.937728 [NOTICE] [71472] [15.236.0.0:52924#example.com] [STDERR] PHP Fatal error:  Uncaught Error: Class '\Kirki\Field\CSS\ReactColorful' not found in /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php:170
Stack trace:
#0 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(351): Kirki\Module\CSS\Generator::css()
#1 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(268): Kirki\Module\CSS::loop_controls()
#2 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(179): Kirki\Module\CSS->print_styles()
#3 /home/example.com/public_html/wp-includes/class-wp-hook.php(303): Kirki\Module\CSS->print_styles_inline()
#4 /home/example.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#5 /home/example.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
#6 /home/example.com/public_html/wp-includes/general-template.php(3015): do_action()
#7 in /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php on line 170
2021-12-30 13:28:15.566373 [NOTICE] [71472] [13.38.0.0:31262#example.com] [STDERR] PHP Warning:  include(fix.php): failed to open stream: No such file or directory in /home/example.com/public_html/index.php on line 8
2021-12-30 13:28:15.566396 [NOTICE] [71472] [13.38.0.0:31262#example.com] [STDERR] PHP Warning:  include(): Failed opening 'fix.php' for inclusion (include_path='.:') in /home/example.com/public_html/index.php on line 8
2021-12-30 13:28:56.518372 [NOTICE] [71472] [13.38.0.1:51232#example.com] [STDERR] PHP Warning:  include(fix.php): failed to open stream: No such file or directory in /home/example.com/public_html/index.php on line 8
2021-12-30 13:28:56.518398 [NOTICE] [71472] [13.38.0.1:51232#example.com] [STDERR] PHP Warning:  include(): Failed opening 'fix.php' for inclusion (include_path='.:') in /home/example.com/public_html/index.php on line 8
2021-12-30 13:29:05.365879 [NOTICE] [71472] [35.180.0.0:21478#example.com] [STDERR] PHP Warning:  include(fix.php): failed to open stream: No such file or directory in /home/example.com/public_html/index.php on line 8
2021-12-30 13:29:05.365899 [NOTICE] [71472] [35.180.0.0:21478#example.com] [STDERR] PHP Warning:  include(): Failed opening 'fix.php' for inclusion (include_path='.:') in /home/example.com/public_html/index.php on line 8
2021-12-30 13:29:29.612356 [NOTICE] [71472] [13.38.0.0:28442#example.com] [STDERR] PHP Warning:  include(fix.php): failed to open stream: No such file or directory in /home/example.com/public_html/index.php on line 8
2021-12-30 13:29:29.612377 [NOTICE] [71472] [13.38.0.0:28442#example.com] [STDERR] PHP Warning:  include(): Failed opening 'fix.php' for inclusion (include_path='.:') in /home/example.com/public_html/index.php on line 8
2021-12-30 13:29:30.966302 [NOTICE] [71472] [13.38.0.0:22958#example.com] [STDERR] PHP Warning:  include(fix.php): failed to open stream: No such file or directory in /home/example.com/public_html/index.php on line 8
2021-12-30 13:29:30.966324 [NOTICE] [71472] [13.38.0.0:22958#example.com] [STDERR] PHP Warning:  include(): Failed opening 'fix.php' for inclusion (include_path='.:') in /home/example.com/public_html/index.php on line 8
2021-12-30 13:29:31.291397 [NOTICE] [71472] [13.38.0.0:22958#example.com] [STDERR] PHP Fatal error:  Uncaught Error: Class '\Kirki\Field\CSS\ReactColorful' not found in /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php:170
Stack trace:
#0 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(351): Kirki\Module\CSS\Generator::css()
#1 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(268): Kirki\Module\CSS::loop_controls()
#2 /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS.php(179): Kirki\Module\CSS->print_styles()
#3 /home/example.com/public_html/wp-includes/class-wp-hook.php(303): Kirki\Module\CSS->print_styles_inline()
#4 /home/example.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#5 /home/example.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
#6 /home/example.com/public_html/wp-includes/general-template.php(3015): do_action()
#7 in /home/example.com/public_html/wp-content/plugins/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php on line 170

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 33 (12 by maintainers)

Most upvoted comments

Guys @codecreate-dev @YellowSnoww @Sandbox-ly , please update to 4.0.3 In case updating through WordPress is failed, please download it manually here

We’re going to release one more update. It’s been an issue with a lowercase foldername. Thanks everyone for reporting and allowing us to fix this so quickly.

I want to apologize for the inconvenience. This is something we’ve overlooked.

4.0.2 fixed the issue for me too 😃 Thank you guys.

yep, that was it. We never ran into this issue because we’re using Windows here. I just wonder why this never came up on any of our servers or clients websites as we had included Kirki 4 for quite a while now in our own theme.

OK so commenting out line 277 on file ./control-react-colorful/src/Field/ReactColorful.php resolves the issue but no doubt not an ideal fix

youre a life save @codecreate-dev … i even updated kirki 4.0.1 that was just released, that did not fix the issue.