• Hello! I’m encountering a weird php error and I’m not familiar enough with php to fix it myself. The error is on lien 63, the last line of code. I also included everything above just in case.

    This is the error: Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /homepages/34/d363568816/htdocs/wp-content/themes/SST/header.php on line 63

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; dir=”ltr” lang=”en-US”>

    <head profile=”http://gmpg.org/xfn/11″&gt;

    <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />

    <title><?php wp_title(‘-‘, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
    <meta http-equiv=”keywords” content=”HDTV, LCD, Plasma, Monitor, Television, Theater, Home, Patio, Outdoor speakers, Installation, custom, entertainment, electronics” />
    <meta name=”description” content=”Smart Systems Technologies Inc. is a total low voltage integrator. By incorporating Intelligent High Speed Wiring and combining it with independent Smart Systems, we integrate a convenient technology life style. We will deliver this dream and 100% customer satisfaction with positive, optimistic, solution based employees. The strength of any organization is based on its Customer satisfaction and employee retention.” />

    <link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/style.css?ver=1.1″ type=”text/css” media=”screen” />
    <link href=”<?php bloginfo(‘template_url’); ?>/reset.css” type=”text/css” rel=”stylesheet” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <link rel=”shortcut icon” href=”<?php bloginfo(‘template_url’); ?>/images/favicon.ico” type=”image/x-icon” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/nivo-slider.css” type=”text/css” media=”screen” />

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/jquery-1.4.3.min.js”></script>
    <script src=”<?php bloginfo(‘template_url’); ?>/js/jcarousellite_1.0.1.pack.js” type=”text/javascript”></script>
    <script src=”<?php bloginfo(‘template_url’); ?>/js/jquery.lightbox-0.5.pack.js” type=”text/javascript”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/columnizer.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/columnize.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/validate.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/animatedcollapse.js”>

    /***********************************************
    * Animated Collapsible DIV v2.4- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
    ***********************************************/

    </script>

    <script type=”text/javascript”>

    animatedcollapse.addDiv(‘cat’, ‘fade=0,speed=400,group=topbar,hide=1’)
    animatedcollapse.addDiv(‘archives’, ‘fade=0,speed=400,group=topbar,hide=1’)
    animatedcollapse.addDiv(‘search’, ‘fade=0,speed=400,group=topbar,hide=1’)

    animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
    //$: Access to jQuery
    //divobj: DOM reference to DIV being expanded/ collapsed. Use “divobj.id” to get its ID
    //state: “block” or “none”, depending on state
    }

    animatedcollapse.init()

    </script>
    <script type=”text/javascript”>
    $(function() {
    $(‘.theContent ul li a’).lightBox({
    imageLoading: ‘<?php bloginfo(‘template_url’); ?>/images/loading.gif’,
    imageBtnClose: ‘<?php bloginfo(‘template_url’); ?>/images/close.gif’,
    imageBtnPrev: ‘<?php bloginfo(‘template_url’); ?>/images/prev.gif’,
    imageBtnNext: ‘<?php bloginfo(‘template_url’); ?>/images/next.gif’,
    imageBlank: ‘<?php bloginfo(‘template_url’); ?>/images/lightbox-blank.gif’
    });
    });
    </script>

    <?php wp_head(); ?>
    </head>
    <body id= “<?php echo($page) ?>” <?php if(in_array(get_page_template_slug(),array(‘page-services.php’))) echo “class=”servicePage””; ?>>

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    your SST theme seems to be the error.

    To confirm, try switching to the unedited default Theme (Twenty Seventeen, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins).

    If you don’t have access to your Dashboard’s Appearance page, access your server via FTP/ SFTP , or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding "-old" to the end of the folder name. Alternately, you can remove other themes except the default theme (Twenty Seventeen, etc.). That will force your site to use it.

    • This reply was modified 7 years, 10 months ago by t-p.

    On line no 63 add a semicolon.

    Thread Starter jordanonefirefly

    (@jordanonefirefly)

    Where should I add it? At the very end?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP error on header.php file’ is closed to new replies.