The drupal8_zymphonies_theme.theme file contains the following code.

  $form['drupal8_zymphonies_theme_settings']['social_icon']['twitter_url'] = [
    '#type' => 'textfield',
    '#title' => t('Twitter Link'),
    '#default_value' => theme_get_setting('twitter_url'),
  );

The code contains a syntax error: It uses [ at the beginning of the array, but it uses ) at the end. It should use ] at the end of the array.

CommentFileSizeAuthor
#5 3243265.patch565 bytesparijke
Screenshot_5.png55.07 KBAnonymous (not verified)

Comments

Anonymous’s picture

Bmuskan created an issue. See original summary.

Anonymous’s picture

In .theme file edit 264 line code as given below:

$form['drupal8_zymphonies_theme_settings']['social_icon']['facebook_url'] = [
    '#type' => 'textfield',
    '#title' => t('Facebook Link'),
    '#default_value' => theme_get_setting('facebook_url'),
  ];
  $form['drupal8_zymphonies_theme_settings']['social_icon']['twitter_url'] = [
    '#type' => 'textfield',
    '#title' => t('Twitter Link'),
    '#default_value' => theme_get_setting('twitter_url'),
  ];                // Use close Square brackets ( ] ) in place of close paranthiesis symbol ( ) )
  $form['drupal8_zymphonies_theme_settings']['social_icon']['linkedin_url'] = [
    '#type' => 'textfield',
    '#title' => t('Linkedin Link'),
    '#default_value' => theme_get_setting('linkedin_url'),
  ];
Anonymous’s picture

Title: Front Page is not openning due to .theme file » Front Page is not opening due to .theme file
parijke’s picture

patch created on Bmuskans directions

parijke’s picture

StatusFileSize
new565 bytes
avpaderno’s picture

Status: Active » Needs review
Issue tags: -.theme file
shyam_bhatt’s picture

Assigned: » Unassigned
Status: Needs review » Closed (duplicate)

This is the duplicate issue of #3295436: Theme installs with a "site .....unexpected error". Closing this issue.

avpaderno’s picture

avpaderno’s picture

Title: Front Page is not opening due to .theme file » The .theme file contains a systax error
Issue summary: View changes

I have updated the issue summary, which was essentially empty. Now it is clearer why the issue is a duplicate.

avpaderno’s picture

Title: The .theme file contains a systax error » The .theme file contains a syntax error