# Error on custom.php

**URL:** <https://forum.pinegrow.com/t/error-on-custom-php/6579>\
**Category:** WordPress\
**Tags:** wordpress\
**Created:** [May 31, 2022, 8:45pm UTC](https://forum.pinegrow.com/t/error-on-custom-php/6579 "2022-05-31T20:45:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincentba](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vincentba](https://forum.pinegrow.com/u/vincentba)\
**Post date:** [May 31, 2022, 8:45pm UTC](https://forum.pinegrow.com/t/error-on-custom-php/6579/1 "2022-05-31T20:45:00Z")

</div>

ho to all, everytime i insert a function on custom.php i have the followe error on save

#### Problems during export

The following problems were encountered during the export:

- Page custom.php could not be exported.TypeError: Cannot read property ‘getAttr’ of null

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

 ![errorCustom](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/3/345b7453b6ca7867fa5d5cf02194cb0cb5e9d447.png)  
thanks in advance

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [June 1, 2022, 5:55am UTC](https://forum.pinegrow.com/t/error-on-custom-php/6579/2 "2022-06-01T05:55:41Z")

</div>

Hello @vincentba

I invite you to contact directly the support.  
**BUT first** , please thank you to follow the instructions that you will find [HERE](https://pinegrow.com/contact-us/#wordpress-support-guidelines).

---

<div class="post-metadata">

**Author:** ![steveninety](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@steveninety](https://forum.pinegrow.com/u/steveninety)\
**Post date:** [June 1, 2022, 12:00pm UTC](https://forum.pinegrow.com/t/error-on-custom-php/6579/3 "2022-06-01T12:00:46Z")

</div>

Same issue. My front-end is also missing now on my local site!

---

<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:** [June 5, 2022, 11:52pm UTC](https://forum.pinegrow.com/t/error-on-custom-php/6579/4 "2022-06-05T23:52:24Z")

</div>

@vincentba @steveninety make sure that custom.php is not open in the visual editor when exporting the page.

To edit custom.php, right click on it in the Project panel and select Edit in code editor.

---

<div class="post-metadata">

**Author:** ![smgitner](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/smgitner/32/4615_2.png) [@smgitner](https://forum.pinegrow.com/u/smgitner)\
**Post date:** [June 28, 2023, 4:58pm UTC](https://forum.pinegrow.com/t/error-on-custom-php/6579/6 "2023-06-28T16:58:24Z")

</div>

@matjaz this is really important info to know. Maybe you can add it to the popup. The user has no idea why it is not exporting. - thx sg

---

<div class="post-metadata">

**Author:** ![mazzel](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mazzel](https://forum.pinegrow.com/u/mazzel)\
**Post date:** [September 23, 2024, 7:28pm UTC](https://forum.pinegrow.com/t/error-on-custom-php/6579/7 "2024-09-23T19:28:25Z")

</div>

Yes, this worked for me, I was also struggling with that. Thank you!
