# Warning: Trying to access array offset (when PHP is updated at webhost)

**URL:** <https://community.gravityforms.com/t/warning-trying-to-access-array-offset-when-php-is-updated-at-webhost/16568>\
**Category:** Get Help\
**Tags:** php-83, php-warning, chained-select, php-80, trying-to-access-array-offset, has-ticket, conflict\
**Created:** [January 4, 2024, 3:42am UTC](https://community.gravityforms.com/t/warning-trying-to-access-array-offset-when-php-is-updated-at-webhost/16568 "2024-01-04T03:42:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chicagowebmanagement](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chicagowebmanagement/32/2814_2.png) [@chicagowebmanagement](https://community.gravityforms.com/u/chicagowebmanagement)\
**Post date:** [January 4, 2024, 3:42am UTC](https://community.gravityforms.com/t/warning-trying-to-access-array-offset-when-php-is-updated-at-webhost/16568/1 "2024-01-04T03:42:25Z")

</div>

Hello, I updated my PHP settings at webhost (siteground) and see the following error in PHP 8.3.1  
_this warning displays:_  
Warning: Trying to access array offset on value of type null in /home/customer/www/REMOVED-for-SECURITY/public\_html/wp-content/plugins/gravityformschainedselects/includes/class-gf-field-chainedselect.php on line 526

in PHP 8.0.30  
_same warning displays:_  
Warning: Trying to access array offset on value of type null in /home/customer/www/REMOVED-for-SECURITY/public\_html/wp-content/plugins/gravityformschainedselects/includes/class-gf-field-chainedselect.php on line 526

in PHP 7.4.33  
NO WARNING (YAY)  
Error disappears.

SO, how do we fix this so that I can update PHP and not have this error display?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![chicagowebmanagement](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chicagowebmanagement/32/2814_2.png) [@chicagowebmanagement](https://community.gravityforms.com/u/chicagowebmanagement)\
**Post date:** [January 4, 2024, 4:14pm UTC](https://community.gravityforms.com/t/warning-trying-to-access-array-offset-when-php-is-updated-at-webhost/16568/2 "2024-01-04T16:14:47Z")

</div>

This has also been submitted to the GF support team; will update or delete this thread based on response.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [February 3, 2024, 4:15pm UTC](https://community.gravityforms.com/t/warning-trying-to-access-array-offset-when-php-is-updated-at-webhost/16568/3 "2024-02-03T16:15:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
