Closed (fixed)
Project:
Nitobe
Version:
6.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Reporter:
Created:
25 Jun 2008 at 13:45 UTC
Updated:
10 Jul 2008 at 19:22 UTC
Jump to comment: Most recent
I enabled the Nitobe theme (alpha1) and cannot view any pages in my Drupal site. Can't even change the theme. I get the following error message.
Parse error: syntax error, unexpected $end in /var/www/html/seminars/material-modernism/themes/nitobe/nitobe_utils.php on line 97
I examined nitobe_utils.php to look for non-closed curly brackets and quotes, but didn't notice any. Also, I don't know PHP so I'm afraid I can't be of much more help.
Comments
Comment #1
Anonymous (not verified) commentedI think I know what the problem might be. The last line of nitobe_utils.php uses a close script tag:
?>
Try removing that. I didn't realize it was still there when I checked in the file. You will also need to remove the same thing from the end of theme-settings.php
PHP sometimes has issues if any character (like a line break) appears after the script closing at the end of a file.
I checked in these changes to CVS, but they aren't in the alpha2 release. They'll show up in the next release I roll. I'll keep this issue open until then.
Comment #2
Anonymous (not verified) commentedThis should be address in the new 6.x-1.1 revision.
Comment #3
Anonymous (not verified) commentedRe-opening this issue because it seems to still be happening on some servers.
Comment #4
Anonymous (not verified) commentedThere was an error on line 74 of nitobe_utils.php causing this error. The end of the HEREDOC had an extra E. Should have been 'EOJS' but was actually 'EEOJS'.
Thanks to David Strauss for tracking down the source of this one.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.