Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Michelle Regla
    New Member
    • Nov 2010
    • 2

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'

    I try to change my heather image and i make a mistake, but i don't know what i did. Yhis is what i see:

    Parse error: syntax error, unexpected T_CONSTANT_ENCA PSED_STRING, expecting ')' in /homepages/13/d318063066/htdocs/es/wp-content/themes/twentyten/functions.php on line 176

    Code:
    // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
    	register_default_headers( array(
    	'berries' => array(
    	  'url' => '%s/images/headers    /berries.jpg',
    	     'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Berries', 'twentyten' )
    		),
    		'cherryblossom' => array(
    			'url' => '%s/images/headers/cherryblossoms.jpg',
    			'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Cherry Blossoms', 'twentyten' )
    		),
    		'concave' => array(
    			'url' => '%s/images/headers/concave.jpg',
    			'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Concave', 'twentyten' )
    		),
    		'fern' => array(
    			'url' => '%s/images/headers/fern.jpg',
    			'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Fern', 'twentyten' )
    		),
    		'forestfloor' => array(
    			'url' => '%s/images/headers/forestfloor.jpg',
    			'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Forest Floor', 'twentyten' )
    		),
    		'inkwell' => array(
    			'url' => '%s/images/headers/inkwell.jpg',
    			'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Inkwell', 'twentyten' )
    		),
    		'path' => array(
    			'url' => '%s/images/headers/path.jpg',
    			'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Path', 'twentyten' )
    		),
    		'sunset' => array(
    			'url' => '%s/images/headers/sunset.jpg',
    			'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
    			/* translators: header image description */
    			'description' => __( 'Sunset', 'twentyten' )
    	       )
    	  ) );
    }
    endif;
    Last edited by Dormilich; Nov 24 '10, 06:17 AM. Reason: please use [CODE] [/CODE] tags when posting code
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    Its really hard to read your code if you dont use
    code tag

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      which is line 176?

      Comment

      • Michelle Regla
        New Member
        • Nov 2010
        • 2

        #4
        Sorry, i don't know nothing about programming, than'k for your help, the problem is in line 47 :p

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          must be somewhere different, no errors up to line 51.

          Comment

          • JKing
            Recognized Expert Top Contributor
            • Jun 2007
            • 1206

            #6
            Are you posting the code from functions.php or another page that called functions.php and had an error?

            Comment

            • Curtis Mattoon
              New Member
              • Nov 2010
              • 7

              #7
              Without going over all your code, that error usually comes up when you're missing a close-parentheses ")". Check the end of your script to make sure that each opening one has a closing one.

              Comment

              Working...