| | | | |
| | |
| Benutzer Registriert seit: 02.07.2008
Beiträge: 31
![]() | Hallo, bekomme im Header meiner Seite www.digitale-infoprodukte.de folgenden Fehler angezeigt, mit welchen ich als PHP-Einsteiger noch nicht so viel anfangen kann... Warning: Cannot use a scalar value as an array in /www/htdocs/w00b05be/wp-content/themes/wpremix/includes/header/header.php on line 42 Hier der Inhalt der header.php... HTML-Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php language_attributes(); ?> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php if ( is_single() ) { wp_title(''); echo (' - '); bloginfo('name'); } else if ( is_home() ) { bloginfo('name'); } else if ( is_page() || is_paged() ) { bloginfo('name'); wp_title(' - '); } else if ( is_archive() ) { bloginfo('name'); echo (' - Archive for '); wp_title(''); } else if ( is_search() ) { bloginfo('name'); echo (' - Search Results'); } else if ( is_404() ) { bloginfo('name'); echo (' - 404 Error (Page Not Found)'); } else wp_title('',true); ?></title> <meta name="description" content="<?php echo $description; ?>" /> <meta name="keywords" content="<?php echo $keywords; ?>" /> <link rel="shortcut icon" type="image/ico" href="<?php bloginfo('template_directory'); ?>/favicon.ico" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/print.css" type="text/css" media="print" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> </head> <body> > <?php if(get_option('wpr_seo_enable') && is_home()) { $description = get_settings('wpr_seo_home_desc'); $keywords = get_settings('wpr_seo_home_key'); } else { if(is_single()) { $description = trim(wp_title('', false)); $keywords = trim(wp_title('', false)); } else { $description = get_bloginfo('description'); $keywords = get_bloginfo('description'); } } ?> <script type="text/javascript" language="javascript" src="<?php bloginfo('template_directory'); ?>/js/hmenu.js"> </script><?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> <div id="wrapper" class="clearfix"><!--top header starts --> <div id="header" class="clearfix"> <div class="h_left"> <div class="logo"> <a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></div> <div class="description"><?php bloginfo('description'); ?></div> </div> <!--hleft end --> <div id="search"><?php get_search_form(); ?> </div> </div> <!--header end --><!--Dropdown navigation --> <div id="nav"> <ul id="navmenu-h"> <?php wp_list_pages('sort_column=menu_order&title_li='); // the following line will display category instead of pages in the main menu // wp_list_categories('title_li='); ?> </ul> <div class="rss"><a href="<?php bloginfo('rss2_url'); ?>">RSS FEED</a></div> </div> <!--Dropdown navigation #end --></div> </body> </html> Danke für jede Hilfe! Viele Grüße Tobias |
| |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | ||
| moderatives Dielektrikum Registriert seit: 21.05.2008
Beiträge: 35.989
PHP-Kenntnisse: Fortgeschritten ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Zitat:
__________________ -- One pixel is still too big. Please make it smaller. ASAP. Initiative Mittelstand. Die wichtigste Gestaltungsregel im Screendesign ist Pi mal Daumen des Arbeitgebers. -- | |
| |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [Erledigt] mod_rewrite, Datei Downloads und falsche Header | kip | Server, Hosting und Workstations | 1 | 16.09.2009 12:37 |
| header() ??? | TeazY | PHP Tipps 2008 | 9 | 11.01.2008 15:40 |
| fehler im IE (im header) im mozilla alles okay | Flecky | HTML, Usability und Barrierefreiheit | 2 | 18.12.2007 23:52 |
| Cannot modify header information | PHP-Fortgeschrittene | 13 | 24.10.2006 20:01 | |
| PHP weiterleitung mit header (FEHLER) | PHP Tipps 2006 | 9 | 13.02.2006 14:27 | |
| Fehler: Warning: Cannot modify header information - headers | PHP Tipps 2005-2 | 14 | 01.09.2005 15:02 | |
| header fehler | PHP Tipps 2005-2 | 1 | 16.06.2005 13:17 | |
| Header Fehler bei autoweiterleitung | Cyberbob_at_tot | PHP Tipps 2005-2 | 7 | 12.06.2005 16:58 |
| Problem: Cannot modify header information | Alpha Centauri | PHP Tipps 2005 | 11 | 25.04.2005 13:05 |
| [Erledigt] Fehler: header already sent by | PHP Tipps 2004-2 | 2 | 18.12.2004 15:00 | |
| [Erledigt] mysql fehler | PHP Tipps 2004 | 2 | 03.11.2004 00:32 | |
| Fehler??? | horvath-media | PHP Tipps 2004 | 10 | 01.11.2004 22:14 |
| Warning: Cannot modify header... einbinden nicht möglich? | PHP Tipps 2004 | 2 | 07.08.2004 15:06 | |
| header fehler.. | PHP Tipps 2004 | 6 | 23.07.2004 13:04 | |
| mysql_real_escape_string - Fehler | Schaelle | Datenbanken | 0 | 03.07.2004 23:32 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| <?php bloginfo(\'description\'); ?>, php echo header html fehler, wp_list_pages zählen, div class=\h_left\, php header fehler <meta name=\keywords\, <?php if ($keywords) { ?><link name=\keywords\ content=\<?php echo $keywords ?>\><?php } ?>, php header id, php header keywords, header falsch. lösung, wp_title auf home anzeigen, wp_list_pages durchzählen, wordpress cannot use a scalar value as an array in, bloginfo(\'rss2_url\'), if ( is_singular() ) wp_enqueue_script( \'comment-reply\' );, wpr_seo_home_key |