Download & Extend

Problem with iui page.tpl.php file

Project:iUI
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I got this error when I choose iui as default theme :
Parse error: syntax error, unexpected $end in C:\wamp\www\drupal\themes\iui\page.tpl.php on line 94
Could you help me please, as I have registered this theme, but I got this error. I don't know how to fix it, and now I can't go to the administration pages to change the theme.
Thanks a lot.

Comments

#1

Category:bug report» support request

I got this error when I choose iui as default theme :
Parse error: syntax error, unexpected $end in C:\wamp\www\drupal\themes\iui\page.tpl.php on line 94
Could you help me please, as I have registered this theme, but I got this error. I don't know how to fix it, and now I can't go to the administration pages to change the theme.
Thanks a lot.

#2

Remove the 'iui' folder from the themes folder and you will be able to get to the admin panel. Sorry don't know how to fix the error.

#3

Version:6.x-1.0» 6.x-1.x-dev
Status:active» needs review

Just made a small commit to clean it up a bit.

http://drupal.org/cvs?commit=133371

#4

Category:support request» bug report

#5

I also have this error message.
I have the following modules/themes:
iui-0.13.tar.gz
mobile-6.x-4.x-dev.tar.gz
browscap-6.x-1.0.tar.gz
mobile_theme-6.x-1.x-dev.tar.gz

I there a step-by-step document to get the iui theme running ? or a simple mobile theme ?

#6

Still same problem. Fresh install 6.14. Problem occurs both on iPhone and in regular web browsers. Line 92

#7

Is everyone who is experiencing this problem using Windows as their server OS?

For those of you who are, does the attached replacement page.tpl.php fix the problem? (Line endings changed to CR+LF.)

Tim Knittel

AttachmentSize
page.tpl_.php_.gz 1.3 KB

#8

This issue is caused by the use of PHP short open tags.

AttachmentSize
iui-280600.patch 992 bytes

#9

This isn't just an issue for Windows users, it is also an issue on Mac OS 10.6. Ultimately it depends on short tags being configured in php.ini on the server.

There is also another short tag on line 28, which will break the search bar. I used the patch in #8.

#10

Status:needs review» closed (fixed)

this has been fixed in cvs.