WordPress.org

Support

Support » Themes and Templates » Suffusion » [Resolved] Parse Error: syntax error

[Resolved] Parse Error: syntax error

  • I got this message when I enter the url

    Parse error: syntax error, unexpected ‘<‘ in /home/public_html/realestateinformationcentral.com/wp-content/themes/suffusion/header.php on line 53

    The theme editor has no line counter, so I don’t know how to find line 53. I have no HTML expert, but I don’t see the “<” that is unexpected in the code.

    The code is just underneath in case somebody wants to have a look at it. Any help would be gratefully appreciated.

    Thanks,
    Jim

    ?php
    /**
    * Core header file, invoked by the get_header() function
    *
    * @package Suffusion
    * @subpackage Templates
    */
    global $suffusion_unified_options, $suffusion_interactive_text_fields, $suffusion_translatable_fields, $suffusion_skin_dependence, $suf_color_scheme;

    if (function_exists(‘icl_t’)) {
    foreach ($suffusion_unified_options as $id => $value) {
    /**
    * Some strings are set interactively in the admin screens of Suffusion. If you have WPML installed, then there may be translations of such strings.
    * This code ensures that such translations are picked up, then the unified options array is rewritten so that subsequent calls can pick it up.
    */
    if (function_exists(‘icl_t’) && in_array($id, $suffusion_translatable_fields) && isset($suffusion_interactive_text_fields[$id])) {
    $value = wpml_t(‘suffusion-interactive’, $suffusion_interactive_text_fields[$id].”|”.$id, $value);
    }
    global $$id;
    $$id = $value;
    $suffusion_unified_options[$id] = $value;
    }
    }
    ?>
    <!DOCTYPE html>
    <!–[if IE 6]> <html id=”ie6″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if IE 7]> <html id=”ie7″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if IE 8]> <html id=”ie8″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if !(IE 6) | !(IE 7) | !(IE 8)]><!–> <html <?php language_attributes(); ?>> <!–<![endif]–>

    <head>
    <meta charset=”<?php bloginfo(‘charset’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php
    suffusion_document_header();
    if (is_singular()) {
    wp_enqueue_script(‘comment-reply’);
    }
    ?>
    <!–[if lt IE 9]>
    <script src=”<?php echo get_template_directory_uri(); ?>/scripts/html5.js” type=”text/javascript”></script>
    <![endif]–>
    <?php
    global $suf_cpt_layouts, $suffusion_cpt_layouts;
    if (isset($suf_cpt_layouts)) {
    $suffusion_cpt_layouts = suffusion_get_associative_array($suf_cpt_layouts);

    wp_head();
    }

    </head>

    <body ?php body_class(); ?>>
    <?php suffusion_before_page(); ?>
    <?php
    suffusion_before_begin_wrapper();
    ?>
    <div id=”wrapper” class=”fix”>
    <?php
    suffusion_after_begin_wrapper();
    ?>
    <div id=”container” class=”fix”>
    <?php
    suffusion_after_begin_container();
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    Are you sure that’s all of the code?

    It must not have been. After writing the post, I had a bit of an inspiration about how to resolve this. I installed the theme on another domain and copied the code into the site that was showing the problem.

    Problem solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Parse Error: syntax error’ is closed to new replies.
Skip to toolbar