Solved

How to fix Theme Updater app error related to boolean value?

JonathanReeves
Shopify Partner
17 0 0

Hello, I am trying to use the Theme Updater app to update my theme in an easy manner but I am running into the following error: Value for '$.sections.newsletter-popup.disabled' is "disabled". It should be a boolean. There isn't a file that this error is referencing so I am not sure what is going on. Any assistance would be very helpful.

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
7726 1506 1515

This is an accepted solution.

Boolean is a logical data type that can have only the values true or false. 

You must find where is that code and change disabled to false to solve the issue

- Helpful? Like and Accept solution or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

View solution in original post

Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
7726 1506 1515

This is an accepted solution.

Boolean is a logical data type that can have only the values true or false. 

You must find where is that code and change disabled to false to solve the issue

- Helpful? Like and Accept solution or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

JonathanReeves
Shopify Partner
17 0 0

Hello, thank you for your suggestion. While I understand Boolean logic, I am a React developer in my day to day work, I wasn't sure if there was a better solution to figuring out where this issue is shy of looking through every file. I am not well versed in liquid so I wasn't sure if there was a better solution. If this was React I would use my IDE to search the entire project for that specific line and would be able to find it within a few seconds. I was hoping something like that would be available within the code editor for a Shopify site but I am guessing that might not be the case. 😞 

Thank you again. I will comb through the files and try my best to locate that line. 

JonathanReeves
Shopify Partner
17 0 0

So I marked this as a solution I think maybe a bit prematurely. I have located the line of code that the Theme Updater app has flagged as invalid and while the Theme Updater app says it needs to be a Boolean value, Shopify itself won't let me save the file if it's any other value other than a string. The line in question is inside the file settings_data.json and is this:

"newsletter-popup": {
"type": "newsletter-popup",
"settings": {
"mode": "disabled",
"popup_seconds": 5,
"popup_days": 30,
"popup_title": "Sign up and save",
"popup_text": "<p>Entice customers to sign up for your mailing list with discounts or exclusive offers. Include an image for extra impact.<\/p>",
"close_text": "No thanks",
"enable_newsletter": true,
"button_label": "Optional button",
"button_link": "",
"enable_button": false
}

The "mode": "disabled" is the incorrect line. But when I change the value to "mode": true or "mode": false, Shopify won't let me save the file stating: 

JonathanReeves_0-1705461900423.png

 

I really need to update the theme. If this app isn't working what other options do I have available to me for updating a Shopify Theme to the latest?

Dan-From-Ryviu
Shopify Partner
7726 1506 1515

You can try to add it is 0 and then try to save again

- Helpful? Like and Accept solution or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

JonathanReeves
Shopify Partner
17 0 0

Unfortunately that didn't work. I end up receiving the same error message as the data type Shopify is looking for is a string. Are there any tips on manually updating a them? What all do I need to do in order to get the theme updated. Here are the steps that I have already completed:

1. Downloaded the current theme from the theme store

2. Started to modify the content of the new theme to match the currently used, previous version of the theme. 

3. Tried to use the Theme Updater on the current theme, Impulse 5.4.0. 

 

Short of copying and pasting files and lines of code is there anything else I can do that will allow me to update to the latest theme in the easiest and hassle-free way possible?