Title: Support for PHP v8
Last modified: March 13, 2023

---

# Support for PHP v8

 *  [smithgt](https://wordpress.org/support/users/smithgt/)
 * (@smithgt)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/support-for-php-v8/)
 * **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)

 *  [grshirlaw](https://wordpress.org/support/users/grshirlaw/)
 * (@grshirlaw)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/support-for-php-v8/#post-16555993)
 * I reported the same issue 4 months ago and am still awaiting a reply
 * Gordon
 *  Thread Starter [smithgt](https://wordpress.org/support/users/smithgt/)
 * (@smithgt)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/support-for-php-v8/#post-16555998)
 * ok – I don’t have a header image so I’ve just changed those lines in the functions.
   php
 *     ```wp-block-code
       /**
        * 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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/happenstance/3.0.1/screenshot.
   png)
 * HappenStance
 * [Support Threads](https://wordpress.org/support/theme/happenstance/)
 * [Active Topics](https://wordpress.org/support/theme/happenstance/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/happenstance/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/happenstance/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [smithgt](https://wordpress.org/support/users/smithgt/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/support-for-php-v8/#post-16555998)
 * Status: not resolved