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!
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!
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.
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
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
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;
}
}
}
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;
}
}
Hope that helps.