# Error in saved sections from child theme

**URL:** <https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [May 30, 2025, 1:35am UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601 "2025-05-30T01:35:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaltyKaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/saltykaren/32/34870_2.png) [@SaltyKaren](https://community.hubspot.com/u/SaltyKaren)\
**Post date:** [May 30, 2025, 1:35am UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601/1 "2025-05-30T01:35:51Z")

</div>

In a child theme, when you save a section there is an error becaue the path of the modules in the section are linked from the parent theme and not the child theme.

 ![1158655_1_Screenshot 2025-05-30 at 9.34.00 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/8/484641a640a71db8b8280729434eed93764c88ea.png)

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [May 30, 2025, 3:04pm UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601/2 "2025-05-30T15:04:52Z")

</div>

Hi @SaltyKaren, I hope that you are well!  
Thank you for asking the HubSpot Community and for sharing the screenshot, that’s really helpful!  
I understand that you are getting the following error message on your page:  
“There was an error inserting your section.  
One of the modules in this section has been deleted or isn’t allowed to be added to this page.  
This might affect the look and layout of your section.  
Would you like to continue inserting?”  
1. Could you please share the code you are using or the link to the page you are referring to (without confidential information)?  
2. Which theme are you using?  
I’d love to put you in touch with our Top Experts regarding modules: Hi @albertsg, @SteveHTM, @Anton and @evaldas do you have suggestions to help @SaltyKaren, please?  
Have a lovely weekend and thanks so much in advance for your valuable contributions!  
Bérangère

---

<div class="post-metadata">

**Author:** ![SaltyKaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/saltykaren/32/34870_2.png) [@SaltyKaren](https://community.hubspot.com/u/SaltyKaren)\
**Post date:** [May 31, 2025, 7:05am UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601/3 "2025-05-31T07:05:45Z")

</div>

I can’t provide a link cuz it’s not published yet. But the reason I knew why the modules inheritted from the parent theme still uses the parent theme’s path is because I tried copying the section code. When I checked I saw one of the path belongs to the parent theme. I’ve attached a screenshot of the code I got.

 ![1159084_1_Screenshot 2025-05-30 at 9.58.28 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/d/7d55a03f61a1c35139f07638dd157c20b53a4e37.png)

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [June 2, 2025, 7:18am UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601/4 "2025-06-02T07:18:35Z")

</div>

Hey @SaltyKaren,

thanks for providing the code.

A potential error can be the non-relative path of the module(s).

```lia-code-sample
...
path="/ncad-s2/modules/multiple-buttons"
...

```

If you’re using different themes/folders, my recommendation would be to copy the path of the module if you’re using different themes (parent/child).

Simply right-click on the desired module, select “copy path” and paste it into the section.

 ![Bildschirmfoto 2025-06-02 um 09.15.43.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/2/f26648c89ed0ec4b4a2673c7fcf7b08d956e24f1.png)

Also, make sure that the theme.json of the child-theme has

`"extends": "PATH-TO-PARENT-THEME",`

in it. Otherwise, HubSpot won’t recognize the theme as a child theme which can also lead to errors.

best,

Anton

---

<div class="post-metadata">

**Author:** ![SaltyKaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/saltykaren/32/34870_2.png) [@SaltyKaren](https://community.hubspot.com/u/SaltyKaren)\
**Post date:** [June 2, 2025, 8:54pm UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601/5 "2025-06-02T20:54:59Z")

</div>

The problem is with Saved sections. The one where we don’t have code access (See screenshot).

The Section code I provided above was coming from when I enter developer mode and copied the HubL code for the section. It showed the inheritted modules still uses parent’s path even though it’s being added on a page that uses a child theme.

 ![1160048_1_Screenshot 2025-06-03 at 4.51.43 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/9/69a12397094bb72fca5d87b647a8f6d37ca5b4b3.png)

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [June 26, 2025, 10:26am UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601/6 "2025-06-26T10:26:44Z")

</div>

Hi @SaltyKaren and thanks for the additional information!  
Hi @Anton, [@sylvain\_tirreau](https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366) and [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) do you have any tips to share with @SaltyKaren, please?  
Have a great day and thank you very much!  
Bérangère

---

<div class="post-metadata">

**Author:** ![GiantFocal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giantfocal/32/41969_2.png) [@GiantFocal](https://community.hubspot.com/u/GiantFocal)\
**Post date:** [June 1, 2025, 4:11pm UTC](https://community.hubspot.com/t/error-in-saved-sections-from-child-theme/133601/7 "2025-06-01T16:11:39Z")

</div>

Hi @SaltyKaren,

Can you confirm if all modules in the section are part of the theme?
