Title: RSS not working &#8211; parse error
Last modified: August 18, 2016

---

# RSS not working – parse error

 *  [waterdown](https://wordpress.org/support/users/waterdown/)
 * (@waterdown)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/)
 * I’ve just installed WordPress and while everything else is working well, when
   I attempt to use RSS, I get this error message.
 * “Parse error: parse error, unexpected $ in /virtual/users/e13071-12435/web/blog/
   wp-feed.php on line 33”
 * I’m a newbie, but as far as I can tell, there are only 32 lines in this code –
   I’m totally lost. Any help would be appreciate.
 * Cheers!
 * <?php
 * if (empty($doing_rss)) {
    $doing_rss = 1; require(dirname(__FILE__) . ‘/wp-blog-
   header.php’); }
 * // Remove the pad, if present.
    $feed = preg_replace(‘/^_+/’, ”, $feed);
 * if ($feed == ” || $feed == ‘feed’) {
    $feed = ‘rss2’; }
 * if ( is_single() || ($withcomments == 1) ) {
    require(ABSPATH . ‘wp-commentsrss2.
   php’); } else { switch ($feed) { case ‘atom’: require(ABSPATH . ‘wp-atom.php’);
   break; case ‘rdf’: require(ABSPATH . ‘wp-rdf.php’); break; case ‘rss’: require(
   ABSPATH . ‘wp-rss.php’); break; case ‘rss2’: require(ABSPATH . ‘wp-rss2.php’);
   break; case ‘comments-rss2’: require(ABSPATH . ‘wp-commentsrss2.php’);

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

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497044)
 * A link to where we could see this happen would be useful.
 * Which feed were you going after? Have you tried re-uploading a fresh/clean copy
   to the server of the applicable file required for that feed?
 *  Thread Starter [waterdown](https://wordpress.org/support/users/waterdown/)
 * (@waterdown)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497047)
 * Thank you for the help!
 * [http://www.waterdownlabradors.com/blog](http://www.waterdownlabradors.com/blog)
 * I’ve uploaded a clean copy of the wp-feed.php file – I assume that’s the file
   needed.
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497053)
 * Well, the good news is that this work-around works: [http://waterdownlabradors.com/blog/wp-rss2.php](http://waterdownlabradors.com/blog/wp-rss2.php)
 * What’s odd about the error you’re getting is that line 32 refers to wp-commentsrss2.
   php. Which baffles me as that’s not what it should be looking for…
 * But for grins, try uploading a fresh copy of that one as well?
 *  Thread Starter [waterdown](https://wordpress.org/support/users/waterdown/)
 * (@waterdown)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497055)
 * Thank you again – I very much appreciate the help. Tried uploading a new copy
   and still no luck. Is there somewhere that tells me how to flip the RSS feed 
   to the new URL?
 * Cheers!
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497061)
 * Out of curiosity, does the problem persist if you switch themes? Perhaps to classic
   or default?
 *  Thread Starter [waterdown](https://wordpress.org/support/users/waterdown/)
 * (@waterdown)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497157)
 * Thanks for another great idea. Unfortunately, yes, it does. I tried 3 different
   themes with no luck. Ah well – sometimes things just aren’t meant to work 😉
 * Happy New Year!
 *  [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497158)
 * Try to overwrite wp-rss2.php from the original zip of wordpress…
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497159)
 * If I had to guess, I’d say there’s definitely a “corrupted” file somewhere in
   your install.
 * One option would be to re-upload the files in the blog root directory. Make sure
   your ftp client is in text or ascii mode.
 * Another option would be to modify your theme file to hard code in the known/working
   feed link. I’m not all that familiar with your theme, but I imagine that if you
   peeked in your sidebar.php, in the “meta” section towards the bottom, you’d find
   a line something like:
 * `<a href="<?php bloginfo('rss2_url'); ?>">Entries RSS</a>`
 * replace it with
 * `<a href="http://waterdownlabradors.com/blog/wp-rss2.php">Entries RSS</a>`
 * maybe?
 *  Thread Starter [waterdown](https://wordpress.org/support/users/waterdown/)
 * (@waterdown)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497161)
 * Thank you both for your ideas. I tried downloading an entire new script from 
   the wordpress website and uploading again, with still no luck.
 * With Handysolo’s instructions, I was able to go in and modify the links and I’m
   now away to the races. Your instructions were great – I was even able to figure
   out myself how to fix the rsscomments link from them 😉
 * Thank you very much. Your help was fantastic.
 * Cheers!

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

The topic ‘RSS not working – parse error’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [waterdown](https://wordpress.org/support/users/waterdown/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/rss-not-working-parse-error/#post-497161)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
