# TypeError: Cannot read properties of null (reading ‘getAttr’)

**URL:** <https://forum.pinegrow.com/t/typeerror-cannot-read-properties-of-null-reading-getattr/7862>\
**Category:** WooCommerce\
**Created:** [March 26, 2023, 5:42pm UTC](https://forum.pinegrow.com/t/typeerror-cannot-read-properties-of-null-reading-getattr/7862 "2023-03-26T17:42:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonny](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jonny](https://forum.pinegrow.com/u/Jonny)\
**Post date:** [March 26, 2023, 5:42pm UTC](https://forum.pinegrow.com/t/typeerror-cannot-read-properties-of-null-reading-getattr/7862/1 "2023-03-26T17:42:16Z")

</div>

I’ve been seeing this error a lot lately. Right now it’s popping up after following along in the tutorial on adding your own PHP code in the StarterShop videos–this one can be found here: [Adding custom PHP code | Pinegrow Web Editor](https://pinegrow.com/docs/woocommerce/creating-custom-woocommerce-themes-course/adding-custom-php-code/)

The error:

The following problems were encountered during the export:

- Page cart.php could not be exported.TypeError: Cannot read properties of null (reading ‘getAttr’)

Those parts of the theme that were not affected by these problems were exported.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [March 27, 2023, 2:36am UTC](https://forum.pinegrow.com/t/typeerror-cannot-read-properties-of-null-reading-getattr/7862/2 "2023-03-27T02:36:02Z")

</div>

@Jonny please send the project (source HTML project) to support at [pinegrow.com](http://pinegrow.com) so that we can take a look.
