nicheteam Posted February 12, 2015 Share Posted February 12, 2015 een experiencing internal error message on my website for some time now. After being sent the error log, i got this; 20150210T084758: www.traditnow.com/index.php PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /hermes/bosoraweb136/b1865/ipg.traditnowcom/wp-content/themes/classipress/includes/functions.php on line 1079 I eventually found the line of code but could not figure out where the error is. echo $currentBefore . __( 'Ads tagged with', APP_TD ) . ' '' . single_tag_title('', false) . ''' . $currentAfter; please help me anybody. i wouldn't mind if someone will help rewrite it. Any one please... echo $currentBefore . __( 'Ads tagged with', APP_TD ) . ' '' . single_tag_title('', false) . ''' . $currentAfter; Thank you Link to comment https://forums.phpfreaks.com/topic/294545-php-parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting-or/ Share on other sites More sharing options...
GuitarGod Posted February 12, 2015 Share Posted February 12, 2015 Seems like too many singular quotes, should be: echo $currentBefore . __( 'Ads tagged with', APP_TD ) . ' ' . single_tag_title('', false) . ' ' . $currentAfter; Link to comment https://forums.phpfreaks.com/topic/294545-php-parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting-or/#findComment-1505517 Share on other sites More sharing options...
nicheteam Posted February 12, 2015 Author Share Posted February 12, 2015 Thanks i did replace the former with the corrected line of code and it worked. My site is back, just few css changes i need to correct. Am Grateful. Link to comment https://forums.phpfreaks.com/topic/294545-php-parse-error-syntax-error-unexpected-t_constant_encapsed_string-expecting-or/#findComment-1505522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.