Closed (fixed)
Project:
Cms Theme
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
2 Jan 2008 at 05:29 UTC
Updated:
1 Feb 2008 at 12:31 UTC
Jump to comment: Most recent file
When I download and activate the cms-theme in the theme administration area, set it to default, and hit submit I get a white screen of death. I looked in the apache logs, and it is a parse error, below is a paste of the issue. The site is using the 5.5 package, on SuSE 10.3, MySQL version 5.x and Apache 2.x.
[Wed Jan 02 00:09:15 2008] [error] [client *.*.*.*] PHP Parse error: syntax error, unexpected $end in (removed for security)~/sites/all/themes/cms-theme/page.tpl.php on line 71
I see nothing wrong with the code, however, there is no empty line at the bottom, I *think* in some cases this matters, but when i added it, it changed nothing.
Thanks,
Arrick Moore
Systems Project Administrator
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | page.tpl_.php_.txt | 2.74 KB | sunad |
Comments
Comment #1
Arrick commentedComment #2
sunad commentedSame error here at line 71 in cms-theme. My environment is WAMP - WinXP, Apache/2.2.6 (Win32) PHP/5.2.4, MySQL/5.0.45.
I was just testing out different the themes. I did search other WSOD and this PHP parse error --both ta drupal sites and google--no luck so far.
Strange thing is, this theme was posted more than 6-months ago and there was no such bug report!
I am curious to find out what is the root cause.
PS: I tried opening the page.tpl.php in non-notepad and then paste it to notepad and save it--with and without extra line. Result was no different: PHP Parse error: syntax error, unexpected $end in
Comment #3
sunad commentedArrick, I found the problem and the solution for it.
In line 51 in php.tpl.php, change "
<? } ?>" to "<?php } ?>"Line 51 before change:
<?php if($title) { ?><h1 class="title"><?php print $title ?></h1><? }?>Line 51 after change:
<?php if($title) { ?><h1 class="title"><?php print $title ?></h1><?php }?>I have also attached the updated file, for the benefit of others.
- SN
PS: May be I am not uploading correctly, because as I upload, the file seem to be automatically renamed. So, you would have to rename page.tpl_.php_.txt to php.tpl.php
Comment #4
info@zrix.com commentedWe have update page.tpl file according to modification given by you, now it is under testing and after that it will be uploaded soon.
Thanks For Your Support