500 posts Keep Walking
  • Trendsetter
  • 4 Years of Membership
  • Elite Author
  • Author Level 9
+5 more
UXbarn
says

Hi everyone,

I have implemented WP Theme Customizer into my themes and in most of the cases, it works without problems.

But I have got a strange issue from only a few buyers. They changed some options using the customizer and saved but the changes have never been updated in the frontend. When going back to the customizer screen, all changes reverted back just like nothing happened.

I tried to check the browser console, debug the code but no luck. There are no error messages, nothing. Really, I could not find what is the cause on this strange issue.

It never happened on my end so I also have no idea why.

Have you ever experienced the same case like mine? Any idea on the issue?

Thank you.

1763 posts How's the surf doing?
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
  • Community Superstar
+10 more
tommusrhodus
says

Are you saving with option or theme_mod?

500 posts Keep Walking
  • Trendsetter
  • 4 Years of Membership
  • Elite Author
  • Author Level 9
+5 more
UXbarn
says

I am using option type for the settings.

When I tried debugging the code, “get_option()” returned me the values correctly in the customizer’s live preview screen. I saved it. But when I went to the frontend, the function just returned “false” as it did not exist. I went to the customizer again, all those saved changes were gone somehow like it never happened. :S

29 posts Aim High
  • Affiliate Level 4
  • Author Level 8
  • Beta Tester
  • Collector Level 2
+9 more
Studio164a
says

I have had an issue like this when WPML is installed. I was never able to figure out a good solution other than deactivating WPML temporarily while using the customizer.

Cheers, Eric

1763 posts How's the surf doing?
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
  • Community Superstar
+10 more
tommusrhodus
says

I had 3 buyers with this issue over my sales here, I found they were all due to theme_mod so have since switched all my themes to option.

Never got an answer from them to finalise what the cause was, I’m thinking it might be an out of date ( < 5.2.4 ) PHP version?

500 posts Keep Walking
  • Trendsetter
  • 4 Years of Membership
  • Elite Author
  • Author Level 9
+5 more
UXbarn
says

Thank you @Eric, @TommusRhodus.

PHP version sounds make sense for my case. One of my buyers tried it on different hostings and the issue did not happen on another except the first server. Anyway I did not check the PHP version but it should be a major factor among the different servers/hostings.

Do you know how can PHP version has something to do with the customizer, I mean something under the hood? Just curious about it.

by
by
by
by
by
by