joshuag Posted November 4, 2009 Share Posted November 4, 2009 I know I need to close something somewhere but I'm just a newb code monkey and can't figure it out! Anyone with a keen eye for code that could offer a solution? Heres my 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" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php wp_title(' '); ?> <?php if(wp_title(' ', false)) { echo ' : '; } ?><?php bloginfo('name'); ?></title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <!--[if IE]> <style type="text/css">@import url('<?php bloginfo('template_directory'); ?>/ie.css');</style> <![endif]--> <?php wp_head(); ?> <meta name="google-site-verification" content="nktAdcdWBddL6dSTKuWFzHHCk6rIX1vpIg4W4Ok68bI" /> </head> <body> <div id="wrapper"> <div id="header"> <img align = "left" src="http://thefulltank.com/wp-content/themes/sandfish_v2/images/logo.gif"> <img align = "left" src ="http://thefulltank.com/images/spacer.jpg"> <?php if (!(current_user_can('level_0'))){ ?> <h4>Member Sign In</h4> <form action="<?php echo get_option('home'); ?>/wp-login.php" method="post"> <label for="log">User Name</label><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="10" /> <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label> <p><label for="pwd">Password </label><input type="password" name="pwd" id="pwd" size="10" /> <input type="submit" name="submit" value="Sign In!" class="button" /></p> <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" /> </form> <a href="<?php echo get_option('home'); ?>/wp-register.php"><i>Register</i></a> <a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword"> Recover password</a> <?php } else { ?> <a href="http://thefulltank.com/wp-admin/user.php">test</a> <p></p> <br clear="all"> <?php wp_css_dropdownmenu(); ?> Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/ Share on other sites More sharing options...
Mchl Posted November 4, 2009 Share Posted November 4, 2009 <?php } else { ?> <a href="http://thefulltank.com/wp-admin/user.php">test</a> <p></p> <br clear="all"> <?php wp_css_dropdownmenu(); ?> You're missing } somewhere here[/code] Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/#findComment-951326 Share on other sites More sharing options...
kenrbnsn Posted November 4, 2009 Share Posted November 4, 2009 You have an opening "{" here <?php } else { ?> but no closing "}". Ken Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/#findComment-951327 Share on other sites More sharing options...
joshuag Posted November 4, 2009 Author Share Posted November 4, 2009 Still the same error. I added the } as you can see in the code below. <?php } else { ?> <a href="http://thefulltank.com/wp-admin/user.php">test</a> } <p></p> <br clear="all"> <?php wp_css_dropdownmenu(); ?> Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/#findComment-951334 Share on other sites More sharing options...
gizmola Posted November 4, 2009 Share Posted November 4, 2009 Where is your closing '}'? Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/#findComment-951336 Share on other sites More sharing options...
ThunderLee09 Posted November 4, 2009 Share Posted November 4, 2009 You didn't specify the <?php tag before closing the else.. <?php } else { ?> <a href="http://thefulltank.com/wp-admin/user.php">test</a> <?php } ?> <p></p> <br clear="all"> <?php wp_css_dropdownmenu(); ?> Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/#findComment-951339 Share on other sites More sharing options...
joshuag Posted November 4, 2009 Author Share Posted November 4, 2009 That did it! Thanks, you guys are saints! PROBLEM SOLVED! Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/#findComment-951367 Share on other sites More sharing options...
ThunderLee09 Posted November 4, 2009 Share Posted November 4, 2009 No probs Link to comment https://forums.phpfreaks.com/topic/180339-solved-cant-find-cause-of-syntax-error-unexpected-end/#findComment-951368 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.