405 posts Keep Walking
  • Has been a member for 3-4 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
  • Exclusive Author
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.

1234 posts How's the surf doing?
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Referred between 200 and 499 users
  • Exclusive Author
  • Has been a member for 3-4 years
  • Envato Studio (Microlancer) Beta Tester
+1 more
tommusrhodus says

Are you saving with option or theme_mod?

405 posts Keep Walking
  • Has been a member for 3-4 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
  • Exclusive Author
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
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Australia
  • Sold between 50 000 and 100 000 dollars
  • Most Wanted Bounty Winner
  • Exclusive Author
  • Referred between 50 and 99 users
+2 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

1234 posts How's the surf doing?
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Referred between 200 and 499 users
  • Exclusive Author
  • Has been a member for 3-4 years
  • Envato Studio (Microlancer) Beta Tester
+1 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?

405 posts Keep Walking
  • Has been a member for 3-4 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
  • Exclusive Author
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