clirdlf / clir_theme

WordPress theme enhancements
https://www.clir.org
1 stars 0 forks source link

Title Bar Missing #110

Closed waynegraham closed 6 years ago

waynegraham commented 6 years ago

Title bar is not displaying. In the stack trace there is an invalid callback

[12-Oct-2017 13:37:28 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'add' not found or invalid function name in /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php on line 298
[12-Oct-2017 13:37:28 UTC] PHP Stack trace:
[12-Oct-2017 13:37:28 UTC] PHP   1. {main}() /Applications/MAMP/htdocs/wordpress/index.php:0
[12-Oct-2017 13:37:28 UTC] PHP   2. require() /Applications/MAMP/htdocs/wordpress/index.php:17
[12-Oct-2017 13:37:28 UTC] PHP   3. require_once() /Applications/MAMP/htdocs/wordpress/wp-blog-header.php:19
[12-Oct-2017 13:37:28 UTC] PHP   4. include() /Applications/MAMP/htdocs/wordpress/wp-includes/template-loader.php:74
[12-Oct-2017 13:37:28 UTC] PHP   5. get_header() /Applications/MAMP/htdocs/wordpress/wp-content/themes/alchem-pro/page.php:8
[12-Oct-2017 13:37:28 UTC] PHP   6. locate_template() /Applications/MAMP/htdocs/wordpress/wp-includes/general-template.php:45
[12-Oct-2017 13:37:28 UTC] PHP   7. load_template() /Applications/MAMP/htdocs/wordpress/wp-includes/template.php:647
[12-Oct-2017 13:37:28 UTC] PHP   8. require_once() /Applications/MAMP/htdocs/wordpress/wp-includes/template.php:688
[12-Oct-2017 13:37:28 UTC] PHP   9. wp_head() /Applications/MAMP/htdocs/wordpress/wp-content/themes/alchem-pro/header.php:35
[12-Oct-2017 13:37:28 UTC] PHP  10. do_action() /Applications/MAMP/htdocs/wordpress/wp-includes/general-template.php:2589
[12-Oct-2017 13:37:28 UTC] PHP  11. WP_Hook->do_action() /Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php:453
[12-Oct-2017 13:37:28 UTC] PHP  12. WP_Hook->apply_filters() /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php:323
[12-Oct-2017 13:37:28 UTC] PHP  13. wp_enqueue_scripts() /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php:298
[12-Oct-2017 13:37:28 UTC] PHP  14. do_action() /Applications/MAMP/htdocs/wordpress/wp-includes/script-loader.php:1300
[12-Oct-2017 13:37:28 UTC] PHP  15. WP_Hook->do_action() /Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php:453
[12-Oct-2017 13:37:28 UTC] PHP  16. WP_Hook->apply_filters() /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php:323
waynegraham commented 6 years ago

This turned out to be a red herring (the plugin loader was referencing a handle that didn't exist in the clir-widgets-bundle which is fixed now. However, the main bar isn't getting generated on the page. Settings look correct though...

waynegraham commented 6 years ago

I'm not sure why, but something (probably an update) changed the load order for the parent theme with the less compiled Bootstrap getting loaded after the generated inline styles in the theme. While not elegant, I went in to the parent theme and changed the load order so the less files are compiled before the page styles are, which seems to have fixed the problem for now.