Conversation
supportwp-Typography 5.9.1 on top off WP 6.6.2 and PHP Version 8.2.25 with 256 MB memory limit I’ve got a few times the following error in my log: Fatal error: Uncaught TypeError: WP_Typography\Implementation::process(): Return value must be of type string, null returned in /home/www-data/schreibrausch.ch/wp-content/plugins/wp-typography/includes/wp-typography/class-implementation.php:420 The page I need help with: [ log in to see the link]
Somehow, null has been passed instead of a string as the first parameter of ::process . That would likely be an issue in another plugin. Do you have a full stack trace for the call?
1. WP_Typography\Implementation->process()/home/www-data/schreibrausch.ch/wp-content/plugins/wp-typography/includes/wp-typography/class-implementation.php:325 2. WP_Typography\Implementation->process_title()/home/www-data/schreibrausch.ch/wp-includes/class-wp-hook.php:326 4. apply_filters()/home/www-data/schreibrausch.ch/wp-includes/widgets/class-wp-widget-text.php:233 5. WP_Widget_Text->widget()/home/www-data/schreibrausch.ch/wp-includes/class-wp-widget.php:394 6. WP_Widget->display_callback()/home/www-data/schreibrausch.ch/wp-includes/widgets.php:845 7. dynamic_sidebar()/home/www-data/schreibrausch.ch/wp-content/themes/graphy-pro/sidebar.php:16 10. locate_template()/home/www-data/schreibrausch.ch/wp-includes/general-template.php:136 11. get_sidebar()/home/www-data/schreibrausch.ch/wp-content/themes/graphy-pro/page.php:29 14. require(‘…’)/home/www-data/schreibrausch.ch/index.php:17 15. {main}
So there seems to be a null value passed as a widget title. I’ll add a workaround in the next version.
@pputzer Perfect. Thank you!
@pputzer btw: the error only happens if I de-activate (!) your plugin on an individual page with a sidebar.
You mean in the block editor? Yes, that tracks with what I’ve seen in the code.
The setting what you show for an individual post or page (this one: «wp-Typography ist für alle Beiträge aktiviert, außer du deaktivierst es über diesen Schalter.»). If it’s on, ok. If I set it to off part of the page (sidebar and footer) will «crash».
Tracked via GitHub issue now.
Somehow, null has been passed instead of a string as the first parameter of ::process . That would likely be an issue in another plugin. Do you have a full stack trace for the call?
1. WP_Typography\Implementation->process()/home/www-data/schreibrausch.ch/wp-content/plugins/wp-typography/includes/wp-typography/class-implementation.php:325 2. WP_Typography\Implementation->process_title()/home/www-data/schreibrausch.ch/wp-includes/class-wp-hook.php:326 4. apply_filters()/home/www-data/schreibrausch.ch/wp-includes/widgets/class-wp-widget-text.php:233 5. WP_Widget_Text->widget()/home/www-data/schreibrausch.ch/wp-includes/class-wp-widget.php:394 6. WP_Widget->display_callback()/home/www-data/schreibrausch.ch/wp-includes/widgets.php:845 7. dynamic_sidebar()/home/www-data/schreibrausch.ch/wp-content/themes/graphy-pro/sidebar.php:16 10. locate_template()/home/www-data/schreibrausch.ch/wp-includes/general-template.php:136 11. get_sidebar()/home/www-data/schreibrausch.ch/wp-content/themes/graphy-pro/page.php:29 14. require(‘…’)/home/www-data/schreibrausch.ch/index.php:17 15. {main}
So there seems to be a null value passed as a widget title. I’ll add a workaround in the next version.
@pputzer Perfect. Thank you!
@pputzer btw: the error only happens if I de-activate (!) your plugin on an individual page with a sidebar.
You mean in the block editor? Yes, that tracks with what I’ve seen in the code.
The setting what you show for an individual post or page (this one: «wp-Typography ist für alle Beiträge aktiviert, außer du deaktivierst es über diesen Schalter.»). If it’s on, ok. If I set it to off part of the page (sidebar and footer) will «crash».
Tracked via GitHub issue now.