Hi

Drupal started throwing up an error as in the title:

Notice: Undefined index: title in zentropy_links() (line 891 of /var/www/dev/cccj/sites/all/themes/zentropy/template.php).

I found the line in the template which is trying to find a title key whilst going over menu items, and looks like it can't find the key.
I just did something below, to check if the key exists and if not add nothing which made the error go away.
Perhaps you'll be able to put in something better written to accomodate this issue.

 $custom_class = "";
       if (isset($link['title'])) {
        $custom_class = drupal_html_class($link['title']);
       }
       // Add extra class to menu items.
      //$custom_class = drupal_html_class($link['title']);
      $class[] = $custom_class;
      $output .= '<li' . drupal_attributes(array('class' => $class)) . '>';

Comments

creaoy’s picture

Status: Active » Postponed (maintainer needs more info)

It is strange behavior when $link array doesn't have title index.
I guess somewhere in code you have something like unset($link['title']);

creaoy’s picture

It is strange behavior when $link array doesn't have title index.
I guess somewhere in code you have something like unset($link['title']);

davidneedham’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Indeed, seems to me like this is something in your own code as suggested by @creaoy.

davidneedham’s picture

Issue summary: View changes

Wrong line number in content as I had changed the original code.