WordPress.org

Ready to get started?Download WordPress

Forums

help error (4 posts)

  1. trinityblacio
    Member
    Posted 1 year ago #

    Parse error: syntax error, unexpected '<' in /home/content/37/6711737/html/trin/wp-content/themes/trinity225/header.php on line 26

    I am getting this error when I visit my site. I know nothing about how to fix this can someone please help me. I can get into my dashboard find, but not my site.

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    the error is in header.php of your theme 'trinity225'

    can you go to dashboard - appearance - themes, and activate the default theme Twenty Twelve?

    this should get you back into your site.

    then, you could try to access the dashboard - appearance - editor , select the 'trinity225' theme, and edit header.php.

    or post the full code of theader.php here so somebody can check where the error in line 26 is coming from.

  3. trinityblacio
    Member
    Posted 1 year ago #

    thank you so much I have my site back. :)
    here is what it says below:

    No I don't understand any of it. :)

    <!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="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
    <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie7.css" type="text/css" media="screen" /><![endif]-->
    <?php if(WP_VERSION < 3.0): ?>
    <link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', THEME_NS), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', THEME_NS), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" />
    <?php endif; ?>
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php if (is_file(TEMPLATEPATH .'/favicon.ico')):?>
    <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
    <?php endif; ?>
    <?php wp_head(); ?>
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/script.js"></script>
    </head>
    
    [ Massive spam payload and hack moderated ]

Topic Closed

This topic has been closed to new replies.

About this Topic