PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
Hilfe Wordpress wirft Parse Fehler aus
Beitrag
<blockquote data-quote="Vagant" data-source="post: 2172845" data-attributes="member: 412571"><p>Hallo, ich habe ein Wordpress Template installiert.</p><p>Nun wirft mir der Aufruf folgenden Fehler aus:</p><p></p><p><strong>Parse error</strong>: syntax error, unexpected ')' in <strong>/users/asel/www/wp-content/themes/Learning_Brown1/library/navigation.php</strong> on line <strong>271</strong></p><p><strong></strong></p><p><strong>Die Zeilen sehen so aus:</strong></p><p><strong></strong></p><p><strong></strong></p><p>[FONT=&quot]function theme_MenuItem($args = '') {[/FONT] [FONT=&quot] $args = wp_parse_args($args, [/FONT]</p><p> [FONT=&quot] array([/FONT]</p><p> [FONT=&quot] 'id' => '',[/FONT]</p><p> [FONT=&quot] 'active' => false,[/FONT]</p><p> [FONT=&quot]'parent' => 0,[/FONT]</p><p> [FONT=&quot] 'attr' => '',[/FONT]</p><p> [FONT=&quot]'title' => '',[/FONT]</p><p> [FONT=&quot] )[/FONT]</p><p> [FONT=&quot] );[/FONT]</p><p> [FONT=&quot] $this->id = $args['id'];[/FONT]</p><p> [FONT=&quot] $this->active = $args['active'];[/FONT]</p><p> [FONT=&quot] $this->parent = $args['parent'];[/FONT]</p><p> [FONT=&quot] $this->attr = $args['attr'];[/FONT]</p><p> [FONT=&quot] $this->title = $args['title'];[/FONT]</p><p> [FONT=&quot] }[/FONT]</p><p> </p><p> [FONT=&quot] function get_start($level){[/FONT]</p><p> [FONT=&quot] $class = ($this->active ? 'active' : '');[/FONT]</p><p> [FONT=&quot] $title = apply_filters('the_title', $this->title, $this->id);[/FONT]</p><p> [FONT=&quot] if (theme_get_option('theme_menu_trim_title')) {[/FONT]</p><p> [FONT=&quot] <span style="color: Red">$title = theme_trim_long_str($title, theme_get_option($level == 0 ? 'theme_menu_trim_len' : 'theme_submenu_trim_len'));</span>[/FONT]</p><p> [FONT=&quot] }[/FONT]</p><p> [FONT=&quot] return str_repeat("\t", $level+1) [/FONT]</p><p> [FONT=&quot] . '<li' . theme_prepare_attr(array('class' => $class)) . '>' [/FONT]</p><p> [FONT=&quot] . '<a' . theme_prepare_attr($this->attr) . '>' [/FONT]</p><p> [FONT=&quot] . ($level == 0 ? '<span class="l"> </span><span class="r"> </span><span class="t">' : '') [/FONT]</p><p> [FONT=&quot] . $title [/FONT]</p><p> [FONT=&quot] . ($level == 0 ? '</span>' : '')[/FONT]</p><p> [FONT=&quot] . '</a>'. "\n";[/FONT]</p><p> [FONT=&quot] }[/FONT]</p><p> </p><p> [FONT=&quot] function get_end($level){[/FONT]</p><p> [FONT=&quot] return str_repeat("\t", $level+1) . [/FONT][FONT=&quot]'</li>' . [/FONT][FONT=&quot]"\n";[/FONT]</p><p> [FONT=&quot] }[/FONT]</p><p> [FONT=&quot]}[/FONT]</p><p></p><p></p><p>[FONT=&quot]Die rot markierte Zeile ist die benannte Zeile 271[/FONT]</p><p></p><p></p><p>[FONT=&quot]Was genau habe ich denn falsch gemacht?</p><p></p><p>PS ich habe dies Doppelt gepostet weil ich es zuvor in ein Falsches Topic gesetzt habe. Vielleicht kann man das andere löschen?</p><p></p><p>[/FONT]</p></blockquote><p></p>
[QUOTE="Vagant, post: 2172845, member: 412571"] Hallo, ich habe ein Wordpress Template installiert. Nun wirft mir der Aufruf folgenden Fehler aus: [B]Parse error[/B]: syntax error, unexpected ')' in [B]/users/asel/www/wp-content/themes/Learning_Brown1/library/navigation.php[/B] on line [B]271 Die Zeilen sehen so aus: [/B] [FONT="]function theme_MenuItem($args = '') {[/FONT] [FONT="] $args = wp_parse_args($args, [/FONT] [FONT="] array([/FONT] [FONT="] 'id' => '',[/FONT] [FONT="] 'active' => false,[/FONT] [FONT="]'parent' => 0,[/FONT] [FONT="] 'attr' => '',[/FONT] [FONT="]'title' => '',[/FONT] [FONT="] )[/FONT] [FONT="] );[/FONT] [FONT="] $this->id = $args['id'];[/FONT] [FONT="] $this->active = $args['active'];[/FONT] [FONT="] $this->parent = $args['parent'];[/FONT] [FONT="] $this->attr = $args['attr'];[/FONT] [FONT="] $this->title = $args['title'];[/FONT] [FONT="] }[/FONT] [FONT="] function get_start($level){[/FONT] [FONT="] $class = ($this->active ? 'active' : '');[/FONT] [FONT="] $title = apply_filters('the_title', $this->title, $this->id);[/FONT] [FONT="] if (theme_get_option('theme_menu_trim_title')) {[/FONT] [FONT="] [COLOR=Red]$title = theme_trim_long_str($title, theme_get_option($level == 0 ? 'theme_menu_trim_len' : 'theme_submenu_trim_len'));[/COLOR][/FONT] [FONT="] }[/FONT] [FONT="] return str_repeat("\t", $level+1) [/FONT] [FONT="] . '<li' . theme_prepare_attr(array('class' => $class)) . '>' [/FONT] [FONT="] . '<a' . theme_prepare_attr($this->attr) . '>' [/FONT] [FONT="] . ($level == 0 ? '<span class="l"> </span><span class="r"> </span><span class="t">' : '') [/FONT] [FONT="] . $title [/FONT] [FONT="] . ($level == 0 ? '</span>' : '')[/FONT] [FONT="] . '</a>'. "\n";[/FONT] [FONT="] }[/FONT] [FONT="] function get_end($level){[/FONT] [FONT="] return str_repeat("\t", $level+1) . [/FONT][FONT="]'</li>' . [/FONT][FONT="]"\n";[/FONT] [FONT="] }[/FONT] [FONT="]}[/FONT] [FONT="]Die rot markierte Zeile ist die benannte Zeile 271[/FONT] [FONT="]Was genau habe ich denn falsch gemacht? PS ich habe dies Doppelt gepostet weil ich es zuvor in ein Falsches Topic gesetzt habe. Vielleicht kann man das andere löschen? [/FONT] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
Hilfe Wordpress wirft Parse Fehler aus
Oben