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

Comments

Arrick’s picture

Title: WSOD on activation of the module » WSOD on activation of the THEME
sunad’s picture

Same 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

sunad’s picture

StatusFileSize
new2.74 KB
new1.04 KB
new2.74 KB
new2.74 KB

Arrick, 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

info@zrix.com’s picture

Status: Active » Closed (fixed)

We 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