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

Anonymous’s picture

Assigned: Unassigned »

I 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.

Anonymous’s picture

Status: Active » Fixed

This should be address in the new 6.x-1.1 revision.

Anonymous’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.1
Category: support » bug
Priority: Normal » Critical
Status: Fixed » Active

Re-opening this issue because it seems to still be happening on some servers.

Anonymous’s picture

Version: 6.x-1.1 » 6.x-1.2
Status: Active » Fixed

There 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.