• Warning: Trying to access array offset on value of type bool in?/StMarys/wp-content/themes/happenstance/functions.php?on line?497

    I’ve recently upgraded the PHP on my hosting to v8. Is there a fix for this error?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I reported the same issue 4 months ago and am still awaiting a reply

    Gordon

    Thread Starter smithgt

    (@smithgt)

    ok – I don’t have a header image so I’ve just changed those lines in the functions.php

    /**
     * Outputs Custom Logo URL.
     *  
    */
    if ( ! function_exists( 'happenstance_custom_logo' ) ) {
    function happenstance_custom_logo() {	
    if ( function_exists('the_custom_logo') ) {
    $custom_logo_id = get_theme_mod('custom_logo');
    $image = wp_get_attachment_image_src($custom_logo_id , 'full');
    return '';
    /**  $image[0];
    */
    } else {
    return '';

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Support for PHP v8’ is closed to new replies.