Title: parse error
Last modified: August 22, 2016

---

# parse error

 *  [ouzifeng](https://wordpress.org/support/users/ouzifeng/)
 * (@ouzifeng)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/)
 * Hi Guys,
 * Newbie here, having problems with parse error:
 *  Parse error: syntax error, unexpected ‘www’ (T_STRING), expecting ‘,’ or ‘;’
   in D:\home\site\wwwroot\articles\wp-content\themes\atahualpa\functions\bfa_header_config.
   php on line 163
 * Below is the code:
 * echo ‘<td ‘ . $header_rowspan . ‘valign=”middle” class=”logoarea-logo”>[‘;
    echo ‘<
   img class=”logo” src=”‘.$logo . ‘” alt=”‘; bloginfo(‘name’); echo ‘” /></td>’;}
 * Could anyone tell me what is incorrect?
 * thanks

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

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812084)
 * What you have there can’t be where the error is. The error says
 * > unexpected ‘www’ (T_STRING),
 * There’s no “www” anywhere in the code that you’ve shown us there.
 * But…
 * Having looed at that, it’s really not done the right way. It should be something
   more like this:
 *     ```
       echo '<td ' . $header_rowspan . 'valign="middle" class="logoarea-logo">';
       echo '<img class="logo" src="' .$logo . '" alt="' . get_bloginfo('name')  .'" /></td>';
       }
       ```
   
 *  Thread Starter [ouzifeng](https://wordpress.org/support/users/ouzifeng/)
 * (@ouzifeng)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812086)
 * 162 echo ‘<td ‘ . $header_rowspan . ‘valign=”middle” class=”logoarea-logo”>’;
   
   163 echo ‘<img class=”logo” src=”‘ .$logo . ‘” alt=”‘ . get_bloginfo(‘name’) .'”/
   ></td>’; 164 }
 * Now looks like this but still getting same error at:
 * [http://www.roburir.com/articles/wp-admin/](http://www.roburir.com/articles/wp-admin/)
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812087)
 * There’s something strange going on. As I said before, your code doesn’t have “
   www” anywhere, and that’s what the error says is breaking it. Most times when
   I’ve seen this it’s been because the file is formated a little differently, or
   the old version of the file is still on the server.
 * Can you post the entire file to [pastbin](http://pastebin.com/) so we can see
   exactly what’s happening with it? (of course, remove any sensative info before
   you do)
 *  Thread Starter [ouzifeng](https://wordpress.org/support/users/ouzifeng/)
 * (@ouzifeng)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812088)
 * Hey Cat,
 * Thanks for taking the time to look at this,
 * have copied the full header_config file to:
 * [http://pastebin.com/ANFzhT1e](http://pastebin.com/ANFzhT1e)
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812091)
 * The error is on line 208. No idea why your server is reporting the wrong line–
   but it looks like you haven’t got the latest file uploaded to the server.
 * This is line 208. Notice thw ‘www’ in there, and look just before it…
 *     ```
       echo 'href="http://' . ($bfa_ata['feedburner_old_new'] == 'New - at feedburner.google.com' ?
                                       'feedburner.google.com/fb/a/mailverify?uri=' : 'www.feedburner.com/fb/a/emailverifySubmit?feedId=') .
                                       $bfa_ata['feedburner_email_id'] . '&loc=' . get_locale() . '" title="' .
                                       $bfa_ata['email_subscribe_link_title'] . '">' . $bfa_ata['email_subscribe_link'] . '</a>';
       ```
   
 * You can’t join string using a semi-colan, so that’s where your error is.
 *  Thread Starter [ouzifeng](https://wordpress.org/support/users/ouzifeng/)
 * (@ouzifeng)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812092)
 * great, so how should that read for the page to work again?
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812094)
 * It should be a full-stop, not a semi-colan. Like the rest of the string joins
   in that same bit of code.
 *  Thread Starter [ouzifeng](https://wordpress.org/support/users/ouzifeng/)
 * (@ouzifeng)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812097)
 * echo ‘href=”[http://&#8217](http://&#8217); . ($bfa_ata[‘feedburner_old_new’]
   == ‘New – at feedburner.google.com’ ?
    ‘feedburner.google.com/fb/a/mailverify?
   uri=’ . ‘www.feedburner.com/fb/a/emailverifySubmit?feedId=’) . $bfa_ata[‘feedburner_email_id’].‘&
   loc=’ . get_locale() . ‘” title=”‘ . $bfa_ata[’email_subscribe_link_title’] .‘”
   >’ . $bfa_ata[’email_subscribe_link’] . ”; }
 * have changed the full colon to full stop but still having same issue
 *  [bernbe01](https://wordpress.org/support/users/bernbe01/)
 * (@bernbe01)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812100)
 * it’s the $logo variable on line 163 as the error implies
 * unexpected t_string can be a wrong var type
 * it’s currently defined on line 160:
 * `$logo = $imgdir.$bfa_ata['logo'];`
 * try echoing that variable out, if you find out it’s an array print_r it to see
   whats in it
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812101)
 * Wherever that code came from, it’s really terrible, and it looks like it doesn’t
   do what it’s meant to.
 * I’m guessing that’s from a theme that you’ve purchased somewhere? Just a quick
   search for the header function name brings up a commercial organisation that 
   does “hands-free” theme coding… I hate to say it, but this is why I don’t use
   services like that. They never work quite as well as they are meant to. You should
   contact them to get support for this as if it really is a problem like this, 
   then they’ll need to know about it to fix stuff for anyone else that uses this.
 *  Thread Starter [ouzifeng](https://wordpress.org/support/users/ouzifeng/)
 * (@ouzifeng)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812103)
 * Hi Bernbe01
 * Thanks for isolating the problem, not sure what echoing the variable out means
 *  [bernbe01](https://wordpress.org/support/users/bernbe01/)
 * (@bernbe01)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812106)
 * on line 161 put:
 *     ```
       echo "Echoed var: " . $logo;
       echo "<pre>";
       print_r($logo);
       echo "</pre>";
       ```
   
 * if you still can’t find the proper var name, try doing the same code changes 
   for the $imgdir and $bfa_ata vars
 * i agree with catacaustic that if this is not a customization you are applying
   to the theme it needs the theme devs to fix this for you
 *  Thread Starter [ouzifeng](https://wordpress.org/support/users/ouzifeng/)
 * (@ouzifeng)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812111)
 * yeah I have no idea what that means, I added it to 161 but no change
 *  [bernbe01](https://wordpress.org/support/users/bernbe01/)
 * (@bernbe01)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812114)
 * Probably should get a coder to help you if you don’t want to contact the devs
 * The jobs forum would be a great resource for this
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812118)
 * Here’s the developer’s site for that theme:
 * [http://forum.bytesforall.com/forumdisplay.php?f=38](http://forum.bytesforall.com/forumdisplay.php?f=38)
 * Or just download a new copy of it here:
 * [https://wordpress.org/themes/atahualpa](https://wordpress.org/themes/atahualpa)

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

The topic ‘parse error’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 4 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-304/#post-5812118)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
