The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Oct 24, 2006 11:58 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
It seems that, on my install of Joomla (1.0.11 stable,) that Joomla adds an extra blank line to the top of any XML file that it creates.  This causes the following error in any RSS file that I create, or in my Joomap sitemap file, + others.

XML Parsing Error: xml declaration not at start of external entity
Location: http://www.insidecoinop.com/index.php?o ... iew=google
Line Number 2, Column 1:
^

Any ideas what file actually creates this stuff?  Maybe I can figure out what's causing the error.

Jim


Top
 Profile  
 
PostPosted: Fri Nov 03, 2006 3:28 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed Feb 22, 2006 9:51 pm
Posts: 322
Location: Illinois
I just started using this function today and I'm getting the same message... did you solve it?  ???

_________________
Gretchen
http://www.GirlsCantWhat.com


Top
 Profile  
 
PostPosted: Fri Nov 03, 2006 3:31 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Not yet.  It's driving me crazy!


Top
 Profile  
 
PostPosted: Fri Nov 03, 2006 11:20 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
I had that when I was using .htaccess to prepend ob gzhandler before all php files.

If so, edit your .htaccess and make sure there are no blank lines using a proper text editor (not notepad). This is what seems to cause this problem.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Fri Nov 03, 2006 1:28 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed Feb 22, 2006 9:51 pm
Posts: 322
Location: Illinois
I just checked .htaccess, removed blank lines, but it didn't change anything.  Same error message.  :(

_________________
Gretchen
http://www.GirlsCantWhat.com


Top
 Profile  
 
PostPosted: Fri Nov 03, 2006 4:10 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
Send me your .htaccess by email and I will see if I can help you out.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 3:02 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
I too, removed EVERY blank space from .htaccess

It didn't help.  Any other suggestions?  Would love to get this fixed.  It's the only thing on my site that's not working properly.. so I have disabled all RSS feeds, which I really don't like to do.

Thanks in advance for any ideas.

Jim


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 5:13 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Here's an update...

I cleared out my cache file and then clicked on my RSS2.0 button to generate an RSS2.0 feed.  It caused the error when trying to view the feed in my browser. It causes an error in ALL browsers. I view the source in my browser and see that there is an extra line at the top of the file which is causing this parser error.

However, when I look at the rss20.xml file in my cache, there is no extra line in the top of the file. If I save that file to my desktop and load it into my browser, it works fine.

It seems that SOMETHING is causing an extra line to be added to the file when viewed  in the browser via any RSS related function in joomla itself.

Now, any ideas?

Jim


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 7:55 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:
I too, removed EVERY blank space from .htaccess

It didn't help.  Any other suggestions?  Would love to get this fixed.  It's the only thing on my site that's not working properly.. so I have disabled all RSS feeds, which I really don't like to do.

Thanks in advance for any ideas.

Jim


It's not about removing blank lines from just .htaccess files. It's about removing blank lines from files which are PREPENDED on php files from some operation, either through .htaccess or some other way. A php file generates the XML and something within your installation is causing an extra line to be added.

One more thing you guys can try is the RD-RSS component from Run Digital. http://www.run-digital.com/. If you get the same problem with RSS feeds from this component as well, then it is clearly something within your installation that needs investigation. In my case, I had an extra line in a handler file which was referenced in my .htaccess. I removed the line and the problem went away.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 8:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
OK. I downloaded their RSS Component. Same problem.

Must be somewhere in a core Joomla file.


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 8:37 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:
OK. I downloaded their RSS Component. Same problem.

Must be somewhere in a core Joomla file.


No.

Because that component uses it's own php file. I am using both the original Joomla syndicate file and the run-digital one with no problems whatsoever.

Both rely on ./includes/feedcreator.class.php file. Try this. Rename your .htaccess to temp.htaccess. Then go to http://feedvalidator.org/ and put in the url of your feed. See if it validates or still pushes the declaration one line down.

That should tell you straight away where the problem lies.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 8:48 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
OK. Did that. It still pushes it down one line.  Here's the error:

line 2, column 0: XML parsing error: :2:0: xml declaration not at start of external entity


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 9:23 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:
OK. Did that. It still pushes it down one line.  Here's the error:

line 2, column 0: XML parsing error: :2:0: xml declaration not at start of external entity


What is the URL of your feed and your website? That would be a start.

Did you clear the rss cache out after the htaccess changes and before you validated?

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Last edited by Radsan on Sat Nov 04, 2006 9:25 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 9:42 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
No, I didn't.

But I did now...

Anyway, here's my RSS feed address:

http://www.insidecoinop.com/component/o ... no_html,1/

If I:

1. rename .htaccess to temp.htaccess
2. clear out all files in the cache directory
3. past the RSS feed into Feed Validator,

I get the following error:

Sorry

An error occurred while trying to validate this feed.

Possible causes:

  1. The address may be incorrect. Make sure the address is spelled correctly. Try loading the feed directly in your browser to make sure a feed exists at that address.
  2. The feed may be temporarily unavailable. The server may be down, or too slow. Try again later.
  3. The validator may be busted. If the feed exists, the server is fine, and the problem is reproducible, let us know on the feedvalidator-users mailing list.

Basically, the site doesn't work without .htaccess

Check the cache directory. No rss20.xml file is created. Directory is still empty.


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 9:46 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Also, like I said before, when I click on the RSS button, it creates a well formed xml file, with NO blank first line, in the cache directory.

It just adds the blank line when trying to display it in the browser.


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 10:02 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:
Also, like I said before, when I click on the RSS button, it creates a well formed xml file, with NO blank first line, in the cache directory.

It just adds the blank line when trying to display it in the browser.


It may look like that. But it ain't properly formed.

http://feedvalidator.org/check.cgi?url= ... tml%2C1%2F

Looks like you are using Open or Artio SEF. The only way to narrow down the problem will be to disable the SEF, then disable your .htaccess by renaming it to temp.htaccess and then checking the rss feed. If RSS feed works without SEF then you'll have to look up the documentation for that component or disable SEF for the RSS component.

If you don't do that you'll never narrow down the problem area. It's upto you.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 10:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
OK. Did all that. It still doesn't work. Same error.

However, if I look at the file that was written in the cache, and then point the browser directly to THAT file, it works. Of course, that always worked.

I'm not using Open SEF, or any other SEF other than the standard Joomla SEF mambot. I did unpublish it for this test. Also disabled SEO in the Site Configuration.

There must be SOME file that is called to display the RSS feed in the browser. If I could find that, I could work backwards to see where it's getting its output.


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 10:21 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Try validating with that same feed address now that I've put the site back to normal. You'll see a well-formed feed, except that it has an extra line before and after the code.


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:12 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:
Try validating with that same feed address now that I've put the site back to normal. You'll see a well-formed feed, except that it has an extra line before and after the code.


What feed at what URL? All I can see at that URL now is some other webpage.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:18 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Right. Sorry.

Here:

http://www.insidecoinop.com/component/o ... no_html,1/


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:25 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:


Can you publish the same feed with rd-rss and give me the url for that, please?

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:38 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Well, it's not the same feed because I don't use a frontpage, per se. And the original mod_rssfeed only pulls from the frontpage. That's why there are no items in the last one I gave you.

This feed is directed to a category that has items.  What I don't understand is, when I put this feed into Feed Validator, it 'changes' to the old feed.  Do I need to unpublish mod_rssfeed in order to make this stay focused and not redirect? When I do, it then points to an html page... the one you saw before.

By the way, I really do appreciate this help. Most kind of you.

Jim

http://www.insidecoinop.com/index.php?o ... d_rss&id=1


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:39 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Whoops! Forgot to give you the feed address:

http://www.insidecoinop.com/index.php?o ... d_rss&id=1


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:44 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:
Whoops! Forgot to give you the feed address:

http://www.insidecoinop.com/index.php?o ... d_rss&id=1


You need to publish mod_rss feed for me to even view that feed. If you do not want it visible, publish the module to a template location that does not exist on your template. It will still work.

By the way, after you disabled SEO, did you recomment the lines mod rewrite lines in .htaccess? Or have you completely removed it?

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:51 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
OK. It's published.

After I disabled SEO, I did recomment the lines. Now that I've enabled it again, I've uncommented them.


Top
 Profile  
 
PostPosted: Sat Nov 04, 2006 11:55 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
jpietrangelo wrote:
OK. It's published.

After I disabled SEO, I did recomment the lines. Now that I've enabled it again, I've uncommented them.



Nope, still cannot view the feed. Just takes me to a blank page with a "not authorised to view" comment.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sun Nov 05, 2006 12:09 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
Also if you keep enabling and disabling .htaccess and SEO in between troubleshooting, you'll never get to the bottom of this.

Keep SEO disabled and .htaccess renamed to tmp.htaccess or something. Then clear out the RSS cache from the cache directory.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
PostPosted: Sun Nov 05, 2006 12:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
OK. Just go to http://www.insidecoinop.com and click on the RSS menu item.


Top
 Profile  
 
PostPosted: Sun Nov 05, 2006 12:13 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 29, 2005 10:17 pm
Posts: 25
Just saw your last post. OK. SEO is disabled. .htaccess is renamed. cleared out cache.


Top
 Profile  
 
PostPosted: Sun Nov 05, 2006 12:43 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 25, 2006 7:55 pm
Posts: 24
Certainly is a very strange problem.

Here is my rss feed from rd-rss

http://f1net.smartlivin.net/index.php?o ... d_rss&id=1

and here is yours.

http://www.insidecoinop.com/index.php?o ... d_rss&id=1

Looks the same when opened in a browser. But when validated mine validates with just a couple of minor errors

http://feedvalidator.org/check.cgi?url= ... s%26id%3D1

while yours is malformed.

http://feedvalidator.org/check.cgi?url= ... s%26id%3D1

The file that is used to generate the XML is ./includes/feedcreator.class.php.  But the xml files in your cache diectory are perfect and validate correctly. So I don't know what to suggest really.  ???

Add a content item and revalidate your feed again. Maybe there is another cache that I don't know about. Or maybe one of the other components, which I do not have is interfering with this. Atleast we have established that it is not any files called up from root .htaccess, that is causing this.

Best of luck, I ve gone as far as my limited knowledge permits me.

_________________
A formula 1 fans community @ http://f1net.sportgrids.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group