• I have configured the theme with the option locally and works perfectly. But when I migrate that developed website into live server. The theme options value doesn’t work its return false while debugging the value. But still, the value in the database options table.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    please confirm, you will change the site url or not and after migration to live server please check permalink settings.

    Thanks

    Thread Starter Padam Shankhadev

    (@shankhadev123)

    I have done everything. There is value in the options table also but it returns false.

    May be it will cache issue,please clear the cache and check.

    Thread Starter Padam Shankhadev

    (@shankhadev123)

    I have already clear the cache. It’s due to json mismatch in option value. But no idea how to fix these issue.

    WordPress doesn’t usually store data in JSON but it does Serialize the data which does look an awful lot of like JSON. I’ve written a similar explanation on WordPress Stack Exchange.

    How did you do your site migration / How did you replace the urls? If the serialized URLs were improperly replaced and the serialized string length counts were not updated properly then these will have to be fixed manually or you’ll have to go back to the original database and properly replace the serialized data using a specialized replacement plugin ( such as WPCLI or Interconnect/it ).

    What is the JSON mismatch you’re referring to?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘get_option function return false.’ is closed to new replies.