dominic
I made the change to helpers.layout.php as you've laid out. The screen displays ok, but it is preceded by a new error -
Notice: Trying to access array offset on value of type bool in C:\Users\username\Local Sites\eclassactions\app\public\wp-content\themes\News-child\gavern\helpers\helpers.layout.php on line 267
line 267 is in gk_opengraph_metatags() function
265 if($image == '') {
266 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $postID ), 'single-post-thumbnail' );
267 $image = $image[0];
268 }
debug.log shows
[04-Feb-2021 23:03:45 UTC] PHP Notice: Trying to access array offset on value of type bool in C:\Users\username\Local Sites\eclassactions\app\public\wp-content\themes\News-child\gavern\helpers\helpers.layout.php on line 267
[04-Feb-2021 23:03:45 UTC] PHP Stack trace:
[04-Feb-2021 23:03:45 UTC] PHP 1. {main}() C:\Users\username\Local Sites\eclassactions\app\public\index.php:0
[04-Feb-2021 23:03:45 UTC] PHP 2. require() C:\Users\username\Local Sites\eclassactions\app\public\index.php:17
[04-Feb-2021 23:03:45 UTC] PHP 3. require_once() C:\Users\username\Local Sites\eclassactions\app\public\wp-blog-header.php:19
[04-Feb-2021 23:03:45 UTC] PHP 4. include() C:\Users\username\Local Sites\eclassactions\app\public\wp-includes\template-loader.php:106
[04-Feb-2021 23:03:45 UTC] PHP 5. gk_load() C:\Users\username\Local Sites\eclassactions\app\public\wp-content\themes\News-child\page-home.php:11
[04-Feb-2021 23:03:45 UTC] PHP 6. include() C:\Users\username\Local Sites\eclassactions\app\public\wp-content\themes\News-child\gavern\helpers\helpers.layout.php:33
[04-Feb-2021 23:03:45 UTC] PHP 7. do_action() C:\Users\username\Local Sites\eclassactions\app\public\wp-content\themes\News-child\layouts\header-child.php:17
[04-Feb-2021 23:03:45 UTC] PHP 8. WP_Hook->do_action() C:\Users\username\Local Sites\eclassactions\app\public\wp-includes\plugin.php:484
[04-Feb-2021 23:03:45 UTC] PHP 9. WP_Hook->apply_filters() C:\Users\username\Local Sites\eclassactions\app\public\wp-includes\class-wp-hook.php:311
[04-Feb-2021 23:03:45 UTC] PHP 10. gavernwp_metatags_hook() C:\Users\username\Local Sites\eclassactions\app\public\wp-includes\class-wp-hook.php:287
[04-Feb-2021 23:03:45 UTC] PHP 11. gk_opengraph_metatags() C:\Users\username\Local Sites\eclassactions\app\public\wp-content\themes\News\gavern\hooks.php:123
The header-child.php code on line 17 is <?php do_action('gavernwp_metatags'); ?>
Any ideas?