garywhite855
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: No RSS – XML parsing errorI see I missed your post about re-uploading fresh copies of the wp-admin and wp-includes folders plus all files in the WP root folder. We posted at nearly the same time. So for the record that didn’t get tried.
I did upgrade to 2.8 thinking that would give fresh versions of some files but it didn’t solve the issue – unless a cache issue was at play.
Forum: Fixing WordPress
In reply to: No RSS – XML parsing errorI never found it. That is I found some and corrected them to no avail.
This plugin:
https://www.ads-software.com/extend/plugins/fix-rss-feed/
(that checks) said there were none – after it fixed them – but it still didn’t work.What worked for me:
https://wejn.org/stuff/wejnswpwhitespacefix.php.html
seems to strip out white space? You could probably tell by looking at it (it’s a small bit of code). So it might still be being generated and then removed.There is always a possibility that there was a cache issue also. I was clearing the cache (firefox/tools/privacy/etc) and trying other browsers but who knows?
I did fix a typo in the blog before I saw results, so maybe the RSS needed to regenerate in some way? I’m still pretty new to wordpress – <2-months so…
Thanks for the help, hope this exchange helps someone else too.
Forum: Fixing WordPress
In reply to: No RSS – XML parsing errorI got it fixed.
I used this
https://wejn.org/stuff/wejnswpwhitespacefix.php.html
Alternatively this may work for some:
https://www.w3it.org/blog/wordpress-feed-error-output-solution-how-to/
Thanks to all who helped out.
Gary
Forum: Fixing WordPress
In reply to: No RSS – XML parsing errorYes Both. The fix-rss-feed plugin said that it found white space in a bunch of files and removed it. I re-ran it and it found none.
I tried switching to the WP default theme and had the same error (No plugins and default theme)
I think I’ll try to do the upgrade to 2.8 and see if that helps. Don’t know what else to try.
Forum: Fixing WordPress
In reply to: No RSS – XML parsing errorI have looked at all my xxxx.php files for white space and I have used the plugin here that is often recommended on this forum
https://www.ads-software.com/extend/plugins/fix-rss-feed/The plugin found and reportedly fixed the white space problems – running it a second time found no errors.
I deactivated all of my plugins and still get the error.
What should I try next? Most of the posts on this forum indicate white space as the usual culpprit. Is there another way to check for it?
Thanks
Forum: Fixing WordPress
In reply to: No RSS – XML parsing errorI have removed blank lines from post & pages and from all of the xxx.php files in the Appearance editor.
It is the Amazing Grace Theme if that has any relevance.
There is still a blank line as the first line of the RSS feed and I get the following error message
XML Parsing Error: XML or text declaration not at start of entity Location: https://www.running-contacts.com/rcblog/feed/ Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?> ^
Forum: Fixing WordPress
In reply to: No RSS – XML parsing errorThanks,
I have checked the Theme files header.php functions.php etc and removed blank line top and bottom but no change.
I’ll look at posts and pages next. Anywhere else?
When I view page source the first section is:
____________________________<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" >
______________________
First line being blankGary
Forum: Fixing WordPress
In reply to: Commentors emails displayedAwesome!
Thanks t31os and cais that’s perfect. You guys rock!
marking as resolved
gary
Forum: Fixing WordPress
In reply to: Commentors emails displayedThanks so much,
I’ve tried inserting the code and I get an error message
Parse error: syntax error, unexpected ‘<‘ ….. line 27
I inserted at the top as recommended. In my editor window line 27 is the </div> after the near the bottom
ie here:</div>
<?php comment_text() ?>
<div class=”reply”>
<?php comment_reply_link(array_merge( $args, array(‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’]))) ?>
</div>
</div>
<?php
}In your text above line 27 is the final <?PHP
Am I doing something wrong or is there a typo somewhere?
appreciate the help!
gary
Forum: Fixing WordPress
In reply to: Spam link in Footer! Not the usual credit linksWhat’s the best way to check that or set them correctly? Or is that a big question? Looking with Filezilla the folder that the conatains the blog has permissions as drwxrwsr-x Inside of that the 3 WP folders (admin, content, includes) are the same drwxrwsr-x
.htacccess is -rw-r–r–
most of the others are -rw-rw-r–
wp-config-sample.php is -rw-r–r–Themes folder is drwxrwsr-x
amazing-grace folder is also drwxrwsr-xwithin that folder the php files are all -rw-rw-r–
Is that correct or a problem? Thanks
Forum: Fixing WordPress
In reply to: Spam link in Footer! Not the usual credit linksI have unzipped the original theme and checked against the current files. So far…
theme_license.php isn’t part of the original theme at all
It is a now long string of code like this:
<?/* asdklnasdfknasdf923rjpidnf…..etcstart_template.php also isn’t part of the theme and is also code:
$start = ‘Wm5WdVkzUnBiMjRnYzNSaGNuUmZkR1Z0Y0d4aGRH…..etcfunctions.php and sidebar.php have been changed and include
base64_decodefooter.php has been changed also
I guess I’ll check them all and upload th correct versions.
Forum: Fixing WordPress
In reply to: Spam link in Footer! Not the usual credit linksI did a file compare of functions.php
The original had (just a comment?):
// register widgetized sidebarsNow replaced with:
require_once(“theme_licence.php”); add_action(‘wp_footer’,’print_footer’);and also added was:
function decode_it($code) { return base64_decode(base64_decode($code)); } require_once(pathinfo(__FILE__,PATHINFO_DIRNAME).”/start_template.php”);I don’t know what any of that means but that seems suspicious. I’ll check some of the other files….
Forum: Fixing WordPress
In reply to: Spam link in Footer! Not the usual credit linksThanks for your reply,
It wasn’t there before. This is the Amazing Grace theme. It’s used a lot and there aren’t usually links like this with this theme.
The URL is https://www.running-contacts.com/rcblog/
I looked in footer.php the URL seems to appear where there is
and <?php wp_footer(); ?> I don’t think that’s original.
See below Footer.php
<?php get_sidebar(); ?>
</div><div id=”footer”>
<div id=”credits”>
<div id=”ftnav”>
<span class=”rss”>” title=”<?php _e(‘Subscribe to RSS’); ?>”><?php _e(‘<abbr title=”Subscribe to RSS”>RSS</abbr>’); ?></span>
</div>
<small>Copyright © 2008 All rights reserved. <?php bloginfo(‘name’); ?> design by Vladimir Prelovac and <?php wp_footer(); ?>.</small>
</div>
</div></body>
</html>