Title: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting &#039;,&#039;
Last modified: August 20, 2016

---

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

 *  [eckick](https://wordpress.org/support/users/eckick/)
 * (@eckick)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting/)
 * Hi,
 * I’d be grateful for any help on the below error message as i’m new to all this:
 * Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’
   or ‘;’ in /home/escortd3/public_html/wp-content/themes/directorypress/template_directorypress/
   _single.php on line 68
 *     ```
       <?php
   
       /**************** CLAIM LISTING RESULTS *******************/
       $GLOBALS['user_info'] 		= get_userdata($post->post_author);
       $GLOBALS['claim_email'] 	= get_post_meta($post->ID, 'email', true);
       /**************** CLAIM LISTING RESULTS *******************/
   
       // SETUP GLOBAL VALUES FROM CUSTOM DATA
       $PostMetaArray = array("images","tagline");
       foreach($PostMetaArray as $value){
       $GLOBALS[$value] 			= get_post_meta($post->ID, $value, true);
       }
   
       // GET CUSTOM FIELD DATA
       $CustomFields 	= get_option("customfielddata");
   
       // CHECK FOR THE WEBSITE LINK
       $link = premiumpress_link($post->ID);	
   
       // REGISTER COLOURBOX
       wp_register_script( 'colorbox',  get_template_directory_uri() .'/PPT/js/jquery.colorbox-min.js');
       wp_enqueue_script( 'colorbox' );
   
       wp_register_style( 'colorbox',  get_template_directory_uri() .'/PPT/css/css.colorbox.css');
       wp_enqueue_style( 'colorbox' );
   
       // START OUTPUT
       get_header(); ?>
   
       <div id="AJAXRESULTS"></div><!-- AJAX RESULTS -do not delete- -->
   
       <?php if (have_posts()) : while (have_posts()) : the_post();  
   
       	// TOOLBOX FOR POST AUTHOR
       	if($post->post_author == $userdata->ID ){ ?>
   
           <div class="green_box"><div class="green_box_content"> 
   
           <h3 class="left" style="margin:0px; padding:0px; line-height:20px; width:200px"><img src="<?php echo get_template_directory_uri(); ?>/PPT/img/v7/icons/toolbox.png" align="absmiddle" style="padding-right:10px;" />
       	<?php echo $PPT->_e(array('title','15')); ?>
           </h3>        
   
           <div class="right">
   
       	<a>?eid=<?php echo $post->ID; ?>" class="button green" rel="nofollow"><?php echo $PPT->_e(array('button','2')); ?></a> |
           <a>?eid=<?php echo $post->ID; ?>&dd=1" onclick="return ppt_confirm('<?php echo $PPT->_e(array('validate','5')); ?>');" class="button green" rel="nofollow"><?php echo $PPT->_e(array('button','3')); ?></a>   
   
           </div>
           <div class="clearfix"></div>
   
           </div>
           </div> 
   
           <?php } ?>
   
           <?php 
   
       	// CLAMIN LISTING BOX
   
       	if(isset($GLOBALS['claim_email']) && $GLOBALS['claim_email'] !="" && $post->post_author == 1){ ?>
   
           <div class="green_box"><div class="green_box_content">
   
           <div class="right">
       	<a href="void(0);">ID ){ echo 'onclick="document.ClaimListing.submit();"'; }else{ echo 'onclick="alert(''.SPEC($GLOBALS['_LANG']['_side10']).'');";'; } ?> class="button green" rel="nofollow"><?php echo $PPT->_e(array('membership','8')); ?></a>
           </div>
           <img src="<?php echo get_template_directory_uri(); ?>/template_directorypress/images/claimlisting.png" align="absmiddle" style="padding-right:10px;float:left;" />
           <div class="left">
           <div style="max-width:400px;">
           <h3><?php echo $PPT->_e(array('membership','6')); ?></h3>
           <p class="noMargin"><?php echo $PPT->_e(array('membership','7')); ?></p>
           </div>
          	</div>
   
           <div class="clearfix"></div>
           </div>
           </div>
           <form action="" method="post" name="ClaimListing" id="ClaimListing"><input type="hidden" name="action" value="claimlisting" /></form>
   
       	<?php } ?>
   
       <div class="itembox">
   
       	<?php
           // FEATURED GRAPHIC
           if(get_post_meta($post->ID, "featured", true) == "yes" && strlen(get_post_meta($post->ID, "featured_text", true)) > 1){ ?>
           <div class="group corner" style="margin-right:-2px;margin-top:-2px;">
           <div class="wrap-ribbon right-corner strip lgreen"><span><?php echo get_post_meta($post->ID, "featured_text", true); ?></span></div>
           </div>
           <?php } ?> 
   
       	<div class="itemboxinner ">
   
           <div id="begin" class="inner">
   
           <div class="right">  
   
       <h2>Call Me:&nbsp<?php echo get_post_meta($post->ID,'ContactTelephoneNumber',true); ?>&nbsp &nbsp</h2>
   
           </div>
   
               <h3><?php the_title(); ?></h3>
   
               <?php if(strlen($GLOBALS['tagline']) > 1){ ?><p class="tagline"><?php echo $GLOBALS['tagline'] ; ?></p><?php }else{ ?><?php } ?>
   
               <ol class="page_tabs">
   
       <li><a href="#tab1"><?php echo $PPT->_e(array('title','17')); ?></a></li>
                   <?php if(strlen($GLOBALS['images']) > 4){ ?>
       <li><a href="#tab2"><?php echo $PPT->_e(array('title','16')); ?></a></li>
       <?php } ?>
   
           </div>
   
       	<div class="page_container">
   
       		<div id="tab1" class="page_content nopadding">
   
                	<h3 class="texttitle"><?php echo $PPT->_e(array('title','19')); ?></h3>
   
                   <hr style="margin-top:0px;" />
   
                   <div class="entry article"><?php the_content(); ?></div>
   
                   <hr />    
   
                   <div class="buttonbox">
   
                       <?php if(strlen($link) > 2){ ?>
   
                           <a>" target="_blank" <?php if($GLOBALS['premiumpress']['nofollow'] =="yes"){ ?>rel="nofollow"<?php } ?> title="<?php the_title(); ?>">
   
                            <?php echo $PPT->_e(array('button','12')); ?>
   
                           </a>        
   
                       <?php } ?>
   
                       <?php if(get_option("display_contactform") =="yes"){ ?>
   
                       <a href="#contactForm" rel="nofollow"><?php echo $PPT->_e(array('button','14')); ?></a>
   
       				<?php } ?>
   
                       <?php if(get_option("display_social") =="yes"){ ?> 
   
                       	<a>" title="<?php the_title(); ?>" rel="nofollow">
   
                       		<?php echo $PPT->_e(array('button','15')); ?>
   
               			</a>
   
                        <?php } ?>
   
                   </div>
   
                   <hr />
   
                   <div class="clearfix"></div>
       ```
   
 * Thanks in advance
 * Joe

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting/#post-2800865)
 * See your earlier post.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting','’
is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting/#post-2800865)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
