I installed the latest release of drupal tonight, set up the SQL database, connected, etc, all worked, but when I try browsing the site I get this parse error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/d/a/v/davidstrack/html/drupal/drupal/includes/common.inc on line 1320

I know basically nothing about php, only enough to use stuff like this...but line 1320 on the common.inc is this:

return theme('form_element', $title, '<select name="edit['. $name .']'. ($multiple ? '[]' : '') .'"'. ($multiple ? ' multiple="multiple" ' : '') . ($extra ? ' ''. $extra : '') .' id="edit-'. $name .'">'. $select .'</select>', $description, 'edit-'. $name, $required, _form_get_error($name));

This is all just a big headache to me...does anyone know how to solve this?

EDIT: if i put line 1320 as a comment to ignore it, the page will load, but with no skin or formatting, and no links work, they all lead to 404 pages.

Comments

gbanse’s picture

I think you have an extra single quote in there. Try this in place of what you posted:

return theme('form_element', $title, '<select name="edit['. $name .']'. ($multiple ? '[]' : '') .'"'. ($multiple ? ' multiple="multiple" ' : '') . ($extra ? ' '. $extra : '') .' id="edit-'. $name .'">'. $select .'</select>', $description, 'edit-'. $name, $required, _form_get_error($name));