• Resolved Sophie-P

    (@sophie-p)


    Dear all,

    I have a parse error occuring, this is the error message.

    Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /customers/5/9/f/anyidea.nl/httpd.www/wordpress/wp-content/themes/reactive1.2.4/theme-functions/thshpr_social_media.php on line 27

    The line of code that it is referring to is this one: if($GLOBALS['social_facebook'] ){ echo'<li><a href="'.$GLOBALS['social_facebook'] .'" target="_blank" class="social_link" id="facebook"> <img src="'.THSHPR_DIRECTORY.'/images/social/facebook.png" border="0" alt="facebook" class="a"/><img src="'.THSHPR_DIRECTORY.'/images/social/facebook_color.png" border="0" alt="facebook" class="b"/></a></li>';}

    It’s part of a built-in social media widget that I tried to fix. The other buttons for skype etc. have exactly the same code, and they work. So I don’t know where the requested , or ; needs to go. Any leads are much appreciated.

    Kind regards,

    Sophie

Viewing 2 replies - 1 through 2 (of 2 total)
  • vtxyzzy

    (@vtxyzzy)

    That line of code shows no errors. Chances are that the problem is on an earlier line of code but does not show up until that line is compiled. If you put the entire file in a pastebin and post a link to it here, someone might be able to help.

    Thread Starter Sophie-P

    (@sophie-p)

    Hi, you were right. I’ve worked through the entire code and found and resolved the error! Thank you for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error PHP’ is closed to new replies.