Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #230978

    So here is a fun one. I needed to replace the absolute urls in the database etc… because my client can not view their site internally if there is not a www. in front of it. It is an internal network thing. There were alot of hardcoded internal links. I ran a Search and Replace plugin I had used in the past. BIG MISTAKE. After it was done the site looked like it just got in a car crash. (http://sdrescue.org/wpsdrm/) and this site was almost complete…. All my content is there but it isn’t using the right settings. Oh and the content inside my sidebar widgets are gone.

    Luckily I have a great host and asked him to restore all the database tables to before I made the terrible change. He did so and it did not fully work! None of my Theme Options were showing up when I logged into Dashboard. FYI I am using a child theme. The child theme was set up first and then I set up Theme Options. So I tried to use Firebug to get a clue and asked him to send me the backed up versions of the files in wp-content/uploads/dynamic_avia. I thought this would do the trick. Nope. My css files in this folder are -rw-rw-r.

    Does anyone have a clue? I started to go in and set up all my Theme Options again but though I would try the forum before I spend more time. If I have a copy of the DB and files from the day before the disaster shouldn’t this work? Perhaps I should ask him to do a full restore with DB and all Files all at once?

    Any advice is so very appreciated!

    #231056

    Hey aarynm!

    Yes, personally I recommend to restore everything. Then use: WP MigrateDB or WP MigrateDB PRO to export the database and to change the url. Afterwards delete the old database and import the sql file with the new domain/url. The migrate plugin will take care of serialized data too.

    Cheers!
    Peter

    #231144

    Thanks Peter. Is there a topic that explains more about serialized data? If I restore both the database and all FTP files again and see don’t have my Theme Options could this be in part to serialized data?

    When I customize the Theme Options in Dashboard after having a child theme set up does this write to the stylesheets inside wp-content/uploads/dynamic_avia? I have 2 stylesheets in here. One is enfold.css and another is a css file named for my child theme.

    Thank you!

    #232105

    Hi!

    1) Yes – see: http://stackoverflow.com/questions/11817950/what-is-data-serialization – the important thing for you is that you can’t manipulate text stored as serialized data without changing some other values. I.e. if you replace:

    
    s:5:"hello" 
    

    with

    
    s:5:"hello world"
    

    the data wouldn’t be valid because php just searches for 5 characters and the text string “hello world” now has 11 characters. If you replace all occurrences of “world” with “hello world” in your database you also must make sure that the character count will reflect the change and increase/decrease the value accordingly. In this case

    
    s:11:"hello world"
    

    would be correct. The migrate script will take care of this issue.

    2) Yes, Enfold generates a dynamic stylesheet. However it does not store the options in the stylesheet but in the database and the stylesheet is just the output. The stylesheet will have the name of the current selected theme – if you activate a child theme you can delete the dynamic stylesheet of the enfold parent theme (enfold.css).

    Cheers!
    Peter

    #278430

    Damnit! Did the same thing… Replaced temporary domainname with a real domainname when site was finished. Now all the settings are gone from the theme…
    Isn’t that something you should WARN people about? Changing domain names ir rather common thing to do…

    Now if change it all back with same search & replace plugin I suppose it’d still be crappy, right? I don’t have enough life to recreate everything from begining…

    Is there a way to get back Quick CSS stuff at least?

    So, how are we supposed to switch domainnames from test/dev servers to production?

    #278569

    Hey!

    It’s quite simple – just copy the files from your test server to the production server. Then you need to use a plugin which takes care of the serialized data – i.e. http://wordpress.org/plugins/wp-migrate-db/ or wp migrate pro – to export the database and to change the url. At least import the sql file you exported with the migrate plugin on your production server and point your domain to the production server/website folder.

    Isn’t that something you should WARN people about?
    Actually it’s a common practice to use serialized data to save complex data structures. Even wordpress uses serialized data for widgets and other elements and if the widget data contains absolute url paths you’ll also break it. We already created an article here: http://kriesi.at/documentation/enfold/move-from-a-local-installation-to-a-live-server/ but eventually it’s up to the user to read the documentation and to ask us for help before he manipulates the database data. Even if you use the migrate plugin you should make a database backup first – then you can restore the database and export the database again if something goes wrong.

    Is there a way to get back Quick CSS stuff at least?
    Maybe but I’m not sure. Your best best is to use phpmyadmin to search the database. Go to wp_options > avia_options_enfold and edit the data field. You should find your quick css code somewhere in the serialized data string (search for “quick_css”).

    Best regards,
    Peter

    #402972

    This is still open, so I got a question. I only changed the server and database name during the transition. Obviously I changed the database information in config, and it is syncing, but Enfold will not operate. Blank white screen while Enfold is activated. Any thoughts would be appreciated. Database name has the same amount of characters and the domain name never changed.

    #403252

    Hi!

    Did you use the WP MigrateDB or WP MigrateDB PRO plugin as suggested above?

    Regards,
    Ismael

    #403522

    I did download the WP MigrateDB or WP MigrateDB PRO plugin, but it seemed mute as the domain name is not changing. Should I still use it? I have been able to move other sites no problem using php admin to export.

    #404159

    Hey!

    of course, please use the WP MigrateDB or WP MigrateDB PRO plugin and let us know if it’s working. What do you mean with “it seemed mute”?

    Cheers!
    Andy

    #409653

    welp, moved the domain back to my old server, got it up and running, ran WP MigrateDB or WP MigrateDB PRO, imported the database with no success. Any way you could help?

    #410271

    Hey!

    What do you mean by moving it back to the old server? The old server should have the correct database format. Can you please provide a link to a development site?

    http://kriesi.at/documentation/enfold/move-from-a-local-installation-to-a-live-server/
    https://code.tutsplus.com/tutorials/migrating-your-wordpress-database-wp-migrate-db-production-to-development–wp-32684

    The best thing to do is to hire a freelance developer who is familiar with the process.

    Best regards,
    Ismael

    #410275
    This reply has been marked as private.
    #410762

    Hey!

    Try enabling WordPress debug mode and check if you see something different than a white screen when activating Enfold.

    Cheers!
    Josue

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