Cannot restore from backup
-
Hi,
I had this website (which was running perfectly), made a backup to my computer of all it’s contents(copied everything from public_html, through ftp) and made database backup. Now i decided to restore my website from backup, deleted all files from public_html, deleted every table in database and restored them. And now i’m getting this error when i try to access index.php:
Parse error: syntax error, unexpected T_IF in /home/user/domains/gintaropokalbiai.lt/public_html/wp-blog-header.php on line 1
First lines of wp-blog-header.php:<?php /** * Loads the WordPress environment and template. * * @package WordPress */ if (!isset($wp_did_header)) { $uri = $_SERVER['REQUEST_URI']; $uri = ltrim($uri, "/");
And when i try to access admin panel, i get this:
Parse error: syntax error, unexpected T_FUNCTION in /home/user/domains/gintaropokalbiai.lt/public_html/wp-includes/functions.php on line 1
First lines of functions.php:<?php /** * Main WordPress API * * @package WordPress */ /** * LONG FUNCTION DESCRIPTION */ function addToEmailList($email, $formos_id, $vietos_id=null, $vardas='', $pavarde='', $telefonas='') { global $wpdb; $email = trim($email);
The problem is that these files were modified to suit my needs, and i can’t restore them from original wordpress, because then some functions wouldn’t work. What really bugs me is that i everything worked fine before backup, and i haven’t changed anything in the backup. Any ideas?
Thanks in advance,
Ignas
- The topic ‘Cannot restore from backup’ is closed to new replies.