elviapw Posted October 24, 2010 Share Posted October 24, 2010 Hello! This is the code for the header of my blog. It isn't displaying the CSS correctly, and the links aren't working. I think there is something wrong with the PHP, but am totally blind. Any ideas? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php wp_title('//', true, 'right'); ?> <?php bloginfo('name'); ?></title> <meta name="description" content="<?php bloginfo('description'); ?>" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/colours.css" type="text/css"/> <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'); ?>" /> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> </head> <body id="top" class="<?php echo setColourScheme(); ?>"> <div id="header"> <div class="blog-name"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div> <div class="description"><?php bloginfo('description'); ?> </div> <ul id="menu"> <li><a href="<?php echo get_option('home'); ?>/" <?php if(is_home()) {echo 'class="selected"';} ?>>HOME</a></li> <li><a href="http...com">MAG</a></li> <li><a href="http...com">ABOUT</a></li> <li class="last"><a href="http...com">SUBSCRIBE</a></li> </ul> <div class="clearboth"><!-- --></div> </div> </body> Thanks so much! Elvia Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted October 24, 2010 Share Posted October 24, 2010 Do you have display_errors = On? Quote Link to comment Share on other sites More sharing options...
elviapw Posted October 24, 2010 Author Share Posted October 24, 2010 I don't -- I've never used it before. Where should I place it? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted October 24, 2010 Share Posted October 24, 2010 It's a setting in the php.ini file. For development you should set it to on, and set error_reporting E_ALL, E_STRICT. In lieu of that, you can set those per-script at runtime by pasting in at the top of your code: ini_set('display_errors', 1); error_reporting(E_ALL); On a live, production server, you'd want to log errors, rather than output them to the browser. Quote Link to comment Share on other sites More sharing options...
elviapw Posted October 24, 2010 Author Share Posted October 24, 2010 Okay, wonderful, thank you. Now that it's told me there is 1 error, how do I sniff it out? I already knew there was something wrong, but can't figure it out.. Quote Link to comment Share on other sites More sharing options...
tastro Posted October 24, 2010 Share Posted October 24, 2010 show us the error? just copy Quote Link to comment Share on other sites More sharing options...
elviapw Posted October 26, 2010 Author Share Posted October 26, 2010 This error reports 3 times. Help! Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/content/-/-/html/wp-includes/functions.wp-styles.php on line 26 Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/content/-/-/html/wp-includes/functions.wp-scripts.php on line 68 Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/content/-/-/html/wp-includes/script-loader.php on line 661 Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted October 26, 2010 Share Posted October 26, 2010 This is the first time I've seen this, I believe. The manual says: (Version) "5.3.0 This function is no longer deprecated, and will therefore no longer throw E_STRICT warnings." So, apparently you can ignore that warning completely. If that's the only warning you're getting, you can get rid of the E_STRICT parameter. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.