Befit theme from the local server to the web server

Home Forums BeFit Theme Support Befit theme from the local server to the web server

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16002
    GianniGianni
    Member
    • Topics: 1
    • Replies: 0
    • Total: 1
    Member since: December 3, 2015

    good morning,
    I purchased the theme skt befit, install and custom of local server (easyphp), completed the site locally I went to install it on the server online via the plugin “Duplicator” with whom I never had problems, but with the theme skt befit pro, perderde all settings, colors, logo, menus, etc .. and shows the default template, and also trying to customize it again new server online does not take the settings. How should I do? What’s the matter?
    I also tried to override the theme folder via FTP but nothing has changed.

    I would not redo the site again…

    Thank you

    #16009
    Sonnal S SinhaSonnal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6964
    • Total: 6974
    Member since: June 12, 2013

    Hi,

    All the theme options gets saved in wp-options table as options_framework_befit-pro

    You have to copy that table in order to copy the whole theme options settings.

    Regards,
    Shri

    #26964
    GailGail
    Participant
    • Topics: 1
    • Replies: 7
    • Total: 8
    Member since: March 5, 2016

    I had a similar problem. I changed the domain name of the server; but I did not actually move the site to a new server, I just changed the domain name from a local host “myimac” to a dynamic DNS domain, “something.dtdns.net:8000”. So that row options_framework_befit-pro in the wp_options table was still there. But my settings were lost regardless. So there is something else going on besides the wp-options table not being copied.

    Please explain how to change the domain name without losing all the many settings in this theme. Thank you.

    #26969
    GailGail
    Participant
    • Topics: 1
    • Replies: 7
    • Total: 8
    Member since: March 5, 2016

    Just to add to my comment above: We also lost all settings when switching from SKT BeFit Pro to a child theme of that Pro theme; and again when switching back from the child theme to the parent. As with the domain change, there was no change in the database during either of these switches.

    I looked in the wp_options table. I did not find any option_name like “options_framework_befit-pro”. Instead I found rows with “option_name” equal to “skt_befit_pro”, “theme_mods_skt-befit-pro”, “skt_befit_pro_child”, and “theme_mods_skt-befit-pro-child”. So that would explain why switching to a child theme, for the first time, would lose all my settings. (It does not however, explain why I also lost settings when switching back to the parent theme. Perhaps I had changed the domain name between switching to child theme and switching back to parent theme.)

    In the row with option_name = “theme_mods_skt-befit-pro”, there was a relatively short list of 7 settings, with no domain names:

    a:3:{i:0;b:0;s:18:”nav_menu_locations”;a:1:{s:7:”primary”;i:3;}s:16:”header_textcolor”;s:3:”fff”;}

    However, in the row with option_name = “skt_befit_pro”, there was a long list of options, in a similar format, that included the domain name several times. For example:

    a:208:{s:4:”logo”;s:85:”http://myhostname.dtdns.net:8000/demo3/wp-content/uploads/2016/03/PMAmockLogo-1.png”;s:10: …

    It appears that “s” stands for string and the number after the “s:” is the length of the following string.

    So it is not enough to simply copy that table.
    It is also not enough to simply update the table using the SQL function REPLACE(option_value, “old_domain”, “new_domain”).
    You also have to adjust the string length number (85 in this example) if the length of the domain name changes.

    We need an easier way to migrate a web site using this theme.

    #27075
    Sonnal S SinhaSonnal S Sinha
    Moderator
    • Topics: 0
    • Replies: 30649
    • Total: 30649
    Member since: August 16, 2013

    Hi,

    Would develop an export/import option next month for this.

    Regards,
    Dave

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.