Reply to comment

Benutzeranmeldung - Fehlerhafter HTML-Code als Titel (Modul: Admin Menu)

Ich hatte leider das Problem, dass bei der Benutzeranmeldung (/user) immer ein falscher Titel ausgegeben wurde.

Anstatt der Überschrift "Benutzeranmeldung" stand hier ein HTML-Code (Bilder, ...) die nicht verarbeitet wurden (schätze aufgrund von php-htmlentities, ...)

Leider hat es mich einige Zeit gekostet, bis ich den Fehler finden konnte:
Es war das admin_menu - Modul!

Dieses hatte bei der Installation einen Hook auf den Titel der Seite gelegt und dort eine Ersetzungsvariable ("icon_users") erstellt.

Diesen Fehler zu beheben ist recht einfach:

  1. Modul kurz deinstallieren
  2. In der Datei admin_menu.inc die Zeilen:
    $links[] = array(
    'title' => 'icon_users',
    'path' => 'user',
    'weight' => -90,
    'parent_path' => '',
    'options' => array('extra class' => 'admin-menu-action admin-menu-icon admin-menu-users', 'html' => TRUE),
    );

    auskommentieren

  3. Neu installieren

Und schon läufts!

Übrigens trat dieser Fehler nur bei einer Drupal-Installation auf. Erklären kann ich es mir nicht wirklich, sieht jedenfalls hässlich aus und ich hoffe euch damit geholfen zu haben.

Trackback URL for this post:

http://julian.pustkuchen.com/en/trackback/84

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • Pairs of<blockquote> tags will be styled as a block that indicates a quotation.
  • You can enable syntax highlighting of source code with the following tags: <c>, <cpp>, <css>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <smarty>, <xml>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.