Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend error after switching to Boilerplate (2023) Theme #5

Open
Samuel88 opened this issue Sep 18, 2023 · 0 comments
Open

Frontend error after switching to Boilerplate (2023) Theme #5

Samuel88 opened this issue Sep 18, 2023 · 0 comments

Comments

@Samuel88
Copy link

After switching in Admin Appearance to "Boilerplate (2023)" this php error appear

 Uncaught Error: Class "Timber\ThemeHelper" not found in /mnt/devfiles/Learning/wordpress-boilerplate/www/themes/boilerplate-theme/includes/Site.php:190
Stack trace:
#0 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/class-wp-hook.php(312): App\Theme\Site->filter_style_loader_tag()
#1 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/class-wp-styles.php(251): apply_filters()
#3 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/class-wp-dependencies.php(137): WP_Styles->do_item()
#4 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/functions.wp-styles.php(68): WP_Dependencies->do_items()
#5 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/class-wp-hook.php(310): wp_print_styles()
#6 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/general-template.php(3053): do_action()
#9 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/timber/timber/src/Twig.php(602): wp_head()
#10 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Environment.php(361) : eval()'d code(54): Timber\Twig->exec_function()
#11 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(394): __TwigTemplate_78d0080dadbe1d294a38c731f36ebfc6->doDisplay()
#12 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#13 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Environment.php(361) : eval()'d code(89): Twig\Template->display()
#14 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(171): __TwigTemplate_456fa9bada69fd758611c5c54582fe2c->block_html_head_container()
#15 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Environment.php(361) : eval()'d code(43): Twig\Template->displayBlock()
#16 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(394): __TwigTemplate_456fa9bada69fd758611c5c54582fe2c->doDisplay()
#17 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#18 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Environment.php(361) : eval()'d code(42): Twig\Template->display()
#19 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(394): __TwigTemplate_c55be16c1da515c5bdad4c1ef29510f9->doDisplay()
#20 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#21 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/Template.php(379): Twig\Template->display()
#22 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/twig/twig/src/TemplateWrapper.php(40): Twig\Template->render()
#23 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/timber/timber/src/Loader.php(178): Twig\TemplateWrapper->render()
#24 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/timber/timber/src/Timber.php(1475): Timber\Loader->render()
#25 /mnt/devfiles/Learning/wordpress-boilerplate/vendor/timber/timber/src/Timber.php(1612): Timber\Timber::compile()
#26 /mnt/devfiles/Learning/wordpress-boilerplate/www/themes/boilerplate-theme/theme/front-page.php(14): Timber\Timber::render()
#27 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-includes/template-loader.php(106): include('...')
#28 /mnt/devfiles/Learning/wordpress-boilerplate/www/wordpress/wp-blog-header.php(19): require_once('...')
#29 /mnt/devfiles/Learning/wordpress-boilerplate/www/index.php(18): require('...')
#30 {main}
  thrown in /mnt/devfiles/Learning/wordpress-boilerplate/www/themes/boilerplate-theme/includes/Site.php on line 190

I look for this class Timber\ThemeHelper in vendor directory, but I didn't found anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant