• Resolved zapster94

    (@zapster94)


    I’ve accidentally deleted some theme files of my website via FTP while I was trying to export them. I have backed-up the website earlier but I can’t get it to restore via PhpMyadmin -> import. It shows the following message

    SQL-query:
    
    # WordPress MySQL database backup
    #
    # Generated: Sunday 5. October 2014 11:44 UTC
    # Hostname: localhost
    # Database: <code>polis</code>
    # --------------------------------------------------------
    # --------------------------------------------------------
    # Table: <code>wp_commentmeta</code>
    # --------------------------------------------------------
    #
    # Delete any existing table <code>wp_commentmeta</code>
    #
    DROP TABLE IF EXISTS  <code>wp_commentmeta</code> ;
    
    MySQL retourneerde: Documentatie
    
    #1046 - No database selected

    Is it possible to just extract the theme files from the .sql back-up file or does the site needs to be fully restored?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Just add the themes back to the themes folder.

    jack randall

    (@theotherlebowski)

    the files for you theme aren’t in the database so you can’t use phpmyadmin to do this.

    if you’ve got a back up of your site then it should have a directory structure with a folder called wp-content.

    inside this is a folder called themes, find you theme in there and upload the missing files from your back up. don’t touch the database unless you really know what you’re up to as it could break your site in one of thousands of ways!

    Thread Starter zapster94

    (@zapster94)

    Thanks for the quick replies. The thing is I only have a .sql.gz file as back-up. Is this file useless for getting the theme back? I don’t have another back-up…

    jack randall

    (@theotherlebowski)

    yeah, you can maybe get the name of the them from one of the tables but you’d be better off downloading or getting a new copy of the theme and uploading it fresh.

    Thread Starter zapster94

    (@zapster94)

    That’s bad news. I know what the theme is called but unfortunately I don’t have a new copy of the theme files. Isn’t there another way to get the theme files back or are the just gone?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you download the themes again?

    jack randall

    (@theotherlebowski)

    what theme is it? if you deleted them without creating a copy or back up of them then they’re gone. if you can remember the theme and where you got it from you should be able to get it again.

    Thread Starter zapster94

    (@zapster94)

    It’s the risen theme this one. I’m trying to find it somewhere for free now.

    jack randall

    (@theotherlebowski)

    if you bought it or got it from themeforest then i assume you can get it again from your account? otherwise you’re talking about a little intellectual property theft…

    Thread Starter zapster94

    (@zapster94)

    I’m not the creator of the website so I don’t know where the theme was bought from. Right now I’m thinking of changing the theme. Thanks for the help everyone!

    Get in touch via Support and I’ll help you. It’s my theme.

    Thread Starter zapster94

    (@zapster94)

    I’ve contacted you via support. Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Restoring website after accidentily deleting theme files via FTP’ is closed to new replies.