I've downloaded a site from a server to my laptop so I can work on it locally, but there's an error I can't get past. When I try to bring up the site, I get an error saying
"Parse error: syntax error, unexpected $end in \path\sites\all\themes\themename\page.tpl.php on line 70."
Line 70 is the very last line of the template file and all it contains is "</html>" (it's a customized version of the cms theme from the drupal.org). I have gone line by line through the file, and I can't find any opening tags without closing tags or vice versa. This exact same file works fine on the server (I've re-downloaded it to make sure it's the same one) and my desktop PC. To me this indicates something on my laptop. Can anybody she some light on what might be causing this?
Thanks.
Steve
Is the server *nix and your laptop windows? It could be a linebreak issue. Have you tried adding in an extra line break? Although it doesn't really sound like an xml parsing error, sounds more like a php tag that isn't closed somewhere. Could be character encoding as well. Those are the first 3 things I would check.
Steve Edwards wrote:
I've downloaded a site from a server to my laptop so I can work on it locally, but there's an error I can't get past. When I try to bring up the site, I get an error saying
"Parse error: syntax error, unexpected $end in \path\sites\all\themes\themename\page.tpl.php on line 70."
Line 70 is the very last line of the template file and all it contains is "</html>" (it's a customized version of the cms theme from the drupal.org). I have gone line by line through the file, and I can't find any opening tags without closing tags or vice versa. This exact same file works fine on the server (I've re-downloaded it to make sure it's the same one) and my desktop PC. To me this indicates something on my laptop. Can anybody she some light on what might be causing this?
Thanks.
Steve
Quoting sander-martijn lists@severeddreams.com:
Is the server *nix and your laptop windows? It could be a linebreak issue. Have you tried adding in an extra line break? Although it doesn't really sound like an xml parsing error, sounds more like a php tag that isn't closed somewhere. Could be character encoding as well. Those are the first 3 things I would check.
FLI, most line ending issues on windows are a myth. The issue with line endings are mostly the infamous NotePAD that opens its channels in binary mode and reads blocks and not lines. PHP for windows doesn't have an issue with line endings.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Op zaterdag 08 december 2007, schreef Steve Edwards:
Can anybody she some light on what might be causing this?
most probably line-endings. Make sure you **don't** have the ?> closing php tag in the end of **any** of your files.
else you have an unclosed bracket somewhere, could be due to a badly copied file.
Bèr
Steve Edwards wrote:
I've downloaded a site from a server to my laptop so I can work on it locally, but there's an error I can't get past. When I try to bring up the site, I get an error saying
"Parse error: syntax error, unexpected $end in \path\sites\all\themes\themename\page.tpl.php on line 70."
Line 70 is the very last line of the template file and all it contains is "</html>" (it's a customized version of the cms theme from the drupal.org). I have gone line by line through the file, and I can't find any opening tags without closing tags or vice versa. This exact same file works fine on the server (I've re-downloaded it to make sure it's the same one) and my desktop PC. To me this indicates something on my laptop. Can anybody she some light on what might be causing this?
This error indicates you have an unclosed brace ( { ) or if ($condition): with no endif or something along those lines.