Screwed up defualt.php

Permalink
Hello everyone,

I made a dumb mistake. I mistakenly copied over the default.php for my wrong domain. I was having trouble with one domain, but accidently entered the other through ftp and copied one default.php over the other (so dumb). The website I goofed up is gatheringatfivemedals.org. The error now says -- Parse error: syntax error, unexpected T_LNUMBER in /home/m1schuld/gatheringatfivemedals.org/concrete/models/page.php on line 1772

I seem to have copied over the default.php in /gatheringatfivemedals.org/concrete/themes/default

This is a fairly new site and I do not have a backup on my hard drive. Do I have any hope of restoring the default.php and getting things up and running?

Thanks!

View Replies:
PatrickCassidy replied on at Permalink Reply
PatrickCassidy
Because it is an FTP transfer, here's hoping that you have used a good web hosting company that does daily/nightly backups. If so, you can contact your host and ask them to use a backup from the day before you made the change (they may charge for this though).

Hope that helps.
enlil replied on at Permalink Reply
enlil
The default.php file is really just another page type like left_sidebar.php that is there to be used by default. You SHOULD be able to copy another page type file and name it default.php and it SHOULD work.
maschuld replied on at Permalink Reply
I guess I'm no longer sure I mistakenly copied over the default.php. It seems all of the default.php show that they were edited with today's date. Does the error message mean anything to you all?

Parse error: syntax error, unexpected T_LNUMBER in /home/m1schuld/gatheringatfivemedals.org/concrete/models/page.php on line 1772

www.www.gatheringatfivemedals.org...

Dreamhost didn't have a back up
maschuld replied on at Permalink Reply
Here is the section that contains line 1772. Any thoughts?

}

function getNextSubPageDisplayOrder() {
$db = Loader::db();
$max = $db->getOne("select max(cDisplayOrder) from Pages where cParentID = " . $this->getCollectionID());
if ($max == "" || $max == null) {
return 0;
} else if (!$max) {
return 1;
} else {
return $max 1;
}

}